summaryrefslogtreecommitdiff
path: root/src/com/android/dialer/dialpad/DialpadFragment.java
AgeCommit message (Collapse)Author
2017-03-01Update dialer sources.Eric Erfanian
Test: Built package and system image. This change clobbers the old source, and is an export from an internal Google repository. The internal repository was forked form Android in March, and this change includes modifications since then, to near the v8 release. Since the fork, we've moved code from monolithic to independent modules. In addition, we've switched to Blaze/Bazel as the build sysetm. This export, however, still uses make. New dependencies have been added: - Dagger - Auto-Value - Glide - Libshortcutbadger Going forward, development will still be in Google3, and the Gerrit release will become an automated export, with the next drop happening in ~ two weeks. Android.mk includes local modifications from ToT. Abridged changelog: Bug fixes ● Not able to mute, add a call when using Phone app in multiwindow mode ● Double tap on keypad triggering multiple key and tones ● Reported spam numbers not showing as spam in the call log ● Crash when user tries to block number while Phone app is not set as default ● Crash when user picks a number from search auto-complete list Visual Voicemail (VVM) improvements ● Share Voicemail audio via standard exporting mechanisms that support file attachment (email, MMS, etc.) ● Make phone number, email and web sites in VVM transcript clickable ● Set PIN before declining VVM Terms of Service {Carrier} ● Set client type for outbound visual voicemail SMS {Carrier} New incoming call and incall UI on older devices (Android M) ● Updated Phone app icon ● New incall UI (large buttons, button labels) ● New and animated Answer/Reject gestures Accessibility ● Add custom answer/decline call buttons on answer screen for touch exploration accessibility services ● Increase size of touch target ● Add verbal feedback when a Voicemail fails to load ● Fix pressing of Phone buttons while in a phone call using Switch Access ● Fix selecting and opening contacts in talkback mode ● Split focus for ‘Learn More’ link in caller id & spam to help distinguish similar text Other ● Backup & Restore for App Preferences ● Prompt user to enable Wi-Fi calling if the call ends due to out of service and Wi-Fi is connected ● Rename “Dialpad” to “Keypad” ● Show "Private number" for restricted calls ● Delete unused items (vcard, add contact, call history) from Phone menu Change-Id: I2a7e53532a24c21bf308bf0a6d178d7ddbca4958
2016-02-22[Gradle] Allow dialer to be compiled as a librarySailesh Nepal
This CL adds a new build-library.gradle file for AOSP dialer. This allows the dialer to be built as a library that can be included from GoogleDialer. Switching to a library project meant making two other changes: - changed all switch statements that used resources to if statements. This was required because resource IDs are not final in library projects. - changed InCalUI code to import com.android.dialer.R instead of com.android.incallui.R. See http://b.android.com/82743 for more info on why this is required. src-N isn't supported yet. Also, this isn't the ideal project layout. In the future we should consider switching to the following layout: - dialer/incallui/ <- incall UI as an independent library project - dialer/dialerlib/ <- dialer code as an independent library project - dialer/app <- skelent app that builds a standalone dialer AOSP app Bug: 26676586 Change-Id: I07fbee4d33cc683539e4f8b3953c93f1427af9d7
2015-11-18getContext() -> getActivity() in fragments for backwards compatibility.Nancy Chen
getContext() did not exist prior to API level 23, so override getContext() to return the activity in dialer code. Bug: 25776171 Change-Id: I817a1ba2ef29c032065b1e7eee6c033b050fb61d
2015-11-03DiatactsActivity title indicate dialpad status, removed excessive "showing item"Ta-wei Yen
messages. + DiatactsActivity set its' title to "Phone Dialpad" or just "Phone", so user using Talkback can know the state of the activity when it is launched + SpeedDialFragment and SearchFragment no longer send accessibility events when its' content is changed. + Add AccessibilityDelegate ContentChangedFilter to filter out TYPE_WINDOW_CONTENT_CHANGED event for View. Bug:25190037 Change-Id: If1fa34cc9a5d24dec3fe261da9c071bb5388ec58
2015-10-26Fix issue with entering '+' with switch accessYorke Lee
Distinguish between a manual long press and system long press (via accessibility) when modifying the current dial string. Bug: 23554996 Change-Id: I3fc610c8e24bdb39729b827715e08a3e7d73ba1f
2015-09-22Protect against more Telecom privileged operationsYorke Lee
Make sure that all invocations of TelecomManager methods that could possibly require a permission are protected by a permission check. Some of these are overcautious - for example, the UI should never show the option to return to a call (READ_PHONE_STATE) if we didn't detect an active call (READ_PHONE_STATE) in the first place, so it is not strictly necessary to protect against the former. But not crashing is the most preferable of all options. Bug: 20266292 Change-Id: Id91dd16e34320a5e607f91dbce9a4296025eeaaf
2015-09-17Wrap some privileged Telecom operations with permission checksYorke Lee
If the Dialer is not the default dialer and does not have the CALL_PHONE permission, don't call TelecomManager methods that will cause SecurityExceptions. Bug: 20266292 Change-Id: I229dd045269a262632c4a911e2321203443de684
2015-09-16Log various call initiation entry pointsYorke Lee
Speed dial (PhoneNumberPickerInteraction, SpeedDialFragment) Regular search (RegularSearchFragment) Remote Directory (RegularSearchFragment) Call Log (CallLogAdapter) Smart Dial Search (SmartDialSearchFragment) Dialpad (DialpadFragment) Bug: 23164804 Change-Id: I7cc881ac655fca6d4f365b5de36a4087c4f17700
2015-09-14Refactor IntentUtil.getCallIntent variants to use builderYorke Lee
Use the builder pattern to create a Call intent to replace the numerous variants of getCallIntent. This will facilitate the addition of future extras to the created call intent. Bug: 23164804 Change-Id: Ibab8473274de8e423f621ae6fbb9685eeb2a7cab
2015-09-11Remove EXTRA_CALL_ORIGIN from DialerYorke Lee
This is legacy code from the PhoneApp days and no longer does anything. The method signatures in IntentUtils were kept unchanged to reduce code churn since they will be modified in a later CL. Change-Id: I76bcdd9b1302eed701e3d1cb5027a937ab2234c4
2015-09-02Don't show dialpad when adding a callYorke Lee
When receiving a DIAL intent with the "add_call_mode" extra set, don't show the dialpad when DialtactsActivity is launched. Bug: 23519909 Change-Id: I5e8d462b3e75a12a5ccd38cfb8871b9626f2e9bb
2015-08-31Don't strip post dial string when handling DIAL intentYorke Lee
Also add tests and update test APK manifest to allow it to be installed. Bug: 22007312 Change-Id: Ibc71d9efd8666c38b0d879a27dae3f5642ce383c
2015-08-26Use View.performHapticFeedback for haptic vibrationYorke Lee
This ensures that haptic feedback always behaves similarly to other system widgets regardless of device. Bug: 23523043 Change-Id: Ic1cac22ef87dcaf92a1ac8e11f82956f90e99f99
2015-08-05Add "Call with Note" from dialpad.Tyler Gunn
Bug: 22685114 Change-Id: Id7d16634a0baad03b28b509b62315f43fa022ee4
2015-07-17Add permission prompts for contacts and dialpad searchYorke Lee
Update the following fragments to handle denied permissions -Contacts Search (Contacts and Location) -Dialpad Search (Phone) Tweak and remove some of the onTouch listener logic as they are no longer valid with the new UI. Instead of intercepting the touches when the query is empty and returning to the main dialer activity, allow the fragments to remain on screen if the permission request UI is showing. Modify signature of onEmptyViewActionButtonClicked to remove unused permissions parameter. Bug: 22174668 Change-Id: I96d00f2ab45df936dca602ac025f723638ac02c4
2015-06-29Accessibility fix for Dialer search resultsYorke Lee
In portrait mode, resize the listview to fit above the dialpad, so that accessibility services can correctly traverse the view hierarchy. Bug: 20172384 Change-Id: I35fb49be7bea5d13d951c4d954ddaf9d8d12780e
2015-06-19Set FAB to invisible on hide if no animation.Andrew Lee
ScaleIn animation will not trigger if FAB is already visible, so if we don't scaleOut, set the visibility of the FAB to GONE. Bug: 21903907 Change-Id: I25ef78ca4e042665d62c40b791d7217310515597
2015-06-11"Emergency" dialpad behavior.Santos Cordon
Change-Id: I132a119238c8de7249a4944e6dda472b3851637e
2015-05-22Handle runtime phone permissionYorke Lee
We don't have access to the call log without the phone permission, so disable the following functionality: 1) Call log display 2) Show call history overflow menu option 3) Last number dialed functionality Bug: 20266292 Change-Id: I2f1d4b8b5f747d2fa04c3a9c291f9cf5147646b7
2015-05-22Handle runtime permissions in DialerYorke Lee
Conditionally disable the following features if the required permissions are not available: 1) Display of all contacts 2) Display of speed dial 3) Caller ID in call log 4) Import/export contacts 5) Conversion of People.CONTENT_ITEM_TYPE and Phones.CONTENT_ITEM_TYPE into a phone number (via DIAL intent) 6) UndemoteOutgoingCallReceiver 7) Contact Search 8) Contact lookup in call detail activity 9) Nearby places search Bug: 20266292 Change-Id: I6d26902acb0eac407ae7bc18c11aa6ec57299506
2015-05-15Fix potential Dialer NPEsYorke Lee
Fix NPEs encountered during monkey tests Bug: 21167534 Change-Id: I98b6f675adfd233d3583c363f7daeca1bc14d8b7
2015-05-13Merge "Fix NPE in keyPressed when getView is null" into mnc-devJay Shrauner
2015-05-13Fix NPE in keyPressed when getView is nullJay Shrauner
Bug:21120753 Change-Id: I2e82e4a8e7b8226a2d74753d37ff36d1d3ab367e
2015-05-13Reorganize Intent utilities, add send SMS intent.Andrew Lee
+ Rename CallIntentUtils.java to IntentUtil.java. + Consolidate various intent creation methods to new file, and update referenes throughout the application. Bug: 20433758 Change-Id: Iee9e37985217c38c816124d0e74dff40a2871680
2015-05-05Change FAB icon and behavior for contacts tab.Andrew Lee
+ Change the icon/behavior depending on the tab position. + Move current tab position logic from DialtactsActivity into the lists fragment. - Delete unused method, shift some helpers around. Bug: 19366434 Change-Id: I6da767300907b3afd006248afb882bebde7bdfe6
2015-04-23Use TelecomManager.placeCall APIYorke Lee
Bug: 20348183 Change-Id: If1b193f933b4a7b2b322784b0cbbc66c210b25df
2015-04-16Change hasVoicemailNumber to getVoicemailNumberYorke Lee
Bug: 20223485 Change-Id: Iaa8f140746d1266febfcacf0f007ef2b4ebba968
2015-04-15Use TelecommManager.getDefaultOutgoingPhoneAccountYorke Lee
Bug: 20224972 Change-Id: If7f1bde0229044f60bc889b380bc3e49e043e3ff
2015-03-19Remove extra options from dialpad menu.Andrew Lee
These are now exposed as shortcuts in the search fragment. Bug: 19372539 Change-Id: I526570cf8326dbfac1770c0f3c06b72ee1166cc8
2015-02-04Merge "Move CallUtil into Dialer. P1/3"Brian Attwell
2015-02-03Move CallUtil into Dialer. P1/3Brian Attwell
CallUtil relies on the a priviliged intent that should only be used by system apps. Therefore, it shouldn't be used by an unbundled Contacts app. I'm leaving one (isVideoEnabled) method from CallUtil inside ContactsCommon. This way, when the changes that Tyler made inside m-wireless-telephony-shamu-dev (b/19062133) get merged back into master both ContactsCommon and Dialer will be updated. Bug: 18777272 Change-Id: I49c9cc714ded01d523ed770a5bf62cf92c378e2f
2015-02-02Add DialpadFragment on-demand instead at on startupYorke Lee
Add the DialpadFragment dynamically instead of everything at startup. Once added, it is then shown/hidden instead of removed for performance reasons. Reduces startup time on a N5 from 603ms to 440ms. Bug: 18431193 Change-Id: I0482bd8277896ed8a6956fc03b6afaf44b442eb3
2015-01-28Add systrace events to track Dialer startup performanceYorke Lee
Bug: 18431193 Change-Id: I92db4ae61405d8d8445b72e7ac0daa0794af8335
2015-01-16When dialing voicemail, check voicemail number of correct default SIM.Nancy Chen
Before dialing voicemail when a default SIM is set, Dialer checks first if it has a valid voicemail number. However, the previous code was checking the voicemail number of the first SIM as opposed to the default SIM. This change corrects the logic. Bug: 18938231 Change-Id: Ia83aa44bc773e99aabbe7474439d22eb1c4e6fd9
2014-12-08Use a BroadcastReceiver for Dialpad behavior upon call hangup.Nancy Chen
The case handled here is when a user is in the Dialer app while there is a call in progress and then the call ends, the Dialpad should revert to its "normal" mode, i.e. digits. The previous approach, using PhoneStateListener, was safe for single SIM phones, but no longer works on Multi-SIM phones because a PhoneStateListener only listens to state changes from a single subscription (e.g. SIM). A more robust way of knowing when a call hass ended is to receive a TelephonyManager.ACTION_PHONE_STATE_CHANGED broadcast. Bug: 18269410 Change-Id: I9b0578d4281bc75d0f804dc695f4bd1a9c02f2cd
2014-12-04Bypass Dialpad code and allow InCallUI check voicemail number for MSIM.Nancy Chen
Since user needs to select a subscription before Dialer can check whether a voicemail number is set up for a certain subscription, go directly to calling voicemail when the user dials '1' on a MSIM phone where 'Ask first' is set. Bug:18233678 Change-Id: I10dd56c14bfb98e4f8410e2de400da44e328682f
2014-11-14Move ToneGenerator recreation/release to onStart/onStopYorke Lee
There is no reason to do the costly ToneGenerator initialization inside onResume, which gets called during the Dialer -> InCallUI transition. Move it to onStart/onStop so it only happens when Dialer is actually in the background. Measurement of time taken for InCallActivity start -> onResumed, 10 runs Before: Average 541.9ms SD: 152.4ms After: Average 350.5ms SD: 81.1ms Bug: 18373617 Change-Id: I192e2bcc9fd4b7d423d804f333d8d32bff3f58c1
2014-11-08Allow ILD information to be populatedEvan Charlton
Expose the dialpad's ILD (international / long distance) fields to be populated by the dialer. Bug: 13334252 Change-Id: Ia366148ef1318a2dacc4971d51a3bd34ec3c39de
2014-11-03Adn queries for multi-SIM. (1/3)Nancy Chen
Bring up a dialog if no default subscription account is set by the user when handling ADN queries. Bug: 17917937 Change-Id: Icd6a6dc2843463ba68d281a24e00fdba1880adf4
2014-10-31Merge "Use improved analytics in Dialer" into lmp-mr1-devBrian Attwell
2014-10-30Use improved analytics in DialerBrian Attwell
Remove dependencies on old analytics code. Initialize analytics inside DialerApplication. Improving analytics CL #4/4 Bug: 18039620 Change-Id: I52f68e50297db2aae61d67d9bdbe66cb1d75aafc
2014-10-28Remove "Dial to add call" text in DialpadYorke Lee
Also remove some unnecessary strings Bug: 17647791 Change-Id: I0e5797b3aad35dd37607fde944c1329fbeffbe88
2014-10-23Delete duplicated classBrian Attwell
Also renamed dialerbind package Analytics CL #2/5 Bug: 18039620 Change-Id: I45722015978038cdccb6a848c28e4b6c90d5aa4f
2014-10-17Make a general call to voicemail when calling back from call log.Nancy Chen
A voicemail call log entry is saved with the number of the voicemail that was called. In the multi-sim case, however, we don't want to call back to the voicemail number of the original call because it might be the number of a different phone account. Bug: 17925501 Change-Id: I528c4039cc227608e040ae71b6b10488376fb357
2014-09-23Merge "Hide the FAB if the dialpad chooser is shown." into lmp-devAndrew Lee
2014-09-22Hide the FAB if the dialpad chooser is shown.Andrew Lee
This bug was happening because in onHiddenChanged, the dialpad button was being made to be shown. Now, only reveal the fab at that point if the dialpad chooser is not visible. There is some slight quirk... I would have thought that checking !mDialpadChooser.isShown() should have been sufficient, but it returns false at that point. The isDialpadChooserVisible check works fine. Bug: 17609779 Change-Id: I11eb3dc81a2849874202a3ea06e40c097b50ac9a
2014-09-22Fix for janky dialpad ripplesYorke Lee
Bug: 17611750 Change-Id: Ica20f1bd060e30280f3f4540ac03db99ec817308
2014-09-12Renaming Telecomm to Telecom.Tyler Gunn
- Changing package from android.telecomm to android.telecom - Changing package from com.android.telecomm to com.android.server.telecomm. - Renaming TelecommManager to TelecomManager. Bug: 17364651 Change-Id: I44d6d6546cac53232e4e2be0ebe0391d02411309
2014-09-09Set the visibility of the FAB correctly even if mAnimate is falseYorke Lee
When launching directly into the dialpad from a dial intent, the FAB wasn't getting shown sometimes due to animation being skipped. Make sure to force it to appear regardless of whether animation is required. Bug: 17443578 Change-Id: Ic53628b9792038cda0e3e447e5268e8e6fd22190
2014-09-06Use framework scheme definitionsJay Shrauner
Use PhoneAccount defined values for SCHEME_{TEL, SIP, VOICEMAIL}. Bug:17398074 Change-Id: I77dfa539646b9c5ae5dca220bbc906048a17b383
2014-09-03Merge "Use different FAB for dialpad, and use new animations." into lmp-devAndrew Lee
2014-09-02Use different FAB for dialpad, and use new animations.Andrew Lee
+ Use scaleIn/scaleOut for FABs in the Dialer application. + Add assets for green fab. + Update dialpad fragment, both the Java and layouts, to have their own FAB containers and FABs. + Change DialpadSlidingLinearLayout into DialpadSlidingRelativeLayout. - Removed or relocated dial some FAB handling, visibility, and translation functions. Now that the FABs in the dialpad fragment and DialtactsActivity are distinct, the logic can be scoped more precisely to a particular fragment/view. Bug: 16399233 Change-Id: I86f9f0053dc3c50fe0d5046389632af7ddff9f67
2014-09-02Fix NPE when activity is nullJay Shrauner
Bug:17360566 Change-Id: I20f3b0843bc8766ea1ded91b30c2662ea08cf7df
2014-08-22API Review PhoneManager -> TelecommManager. Rename methods (1/6)Nancy Chen
PhoneManager - handlePinMMI docs should explain what a Pin is and what MMI is - rename isInAPhoneCall to isInCall - rename showCallScreen to showInCallScreen - merge this class into TelecommManager, we don't need both Bug: 16960458 Change-Id: I6d1939175c0292641f6ece0b630db8a864871d7e
2014-08-20Fix for overflow menu disappearing during rotationYorke Lee
Bug: 17146511 Change-Id: I101b9839a0626dea8ba89d82e3487f8c4654723d
2014-08-07Remove ldaps from AOSP code.Santos Cordon
Bug: 16327484 Change-Id: I1331cc2ac865972ce9bd096fda9f168e73a36d9f
2014-07-24Merge "Changing Dialer Fragments to implement Analytics." into lmp-devSai Cheemalapati
2014-07-30Changing Dialer Fragments to implement Analytics.Sai Cheemalapati
Dialer's Fragments now implement AnalyticsFragment. All Fragments now have access to sendHitEvent, which is a no op in AOSP Dialer. Change-Id: Ife6ab7d5369a1c96caaedbe1c59e6d07a0adae87
2014-07-30Minor style change in dialpadNancy Chen
Forgot to upload this change to 513750 after fixing. Bug: 15697565 Change-Id: I58d55d0a1844dffed3de31ab61a120323e8a56d7
2014-07-29Fade menu overflow icon in and out for dialpadNancy Chen
When there are no digits, the menu overflow icon should be invisible and all options disabled. Fade in when a digit is typed and fade out when there are no longer any digits. Bug: 15697565 Change-Id: I86540e0b2e456b18686e19ae4a0ab4f751407cfc
2014-07-09Remove SelectAccountDialogFragment for PhoneAccount on Dialer app (1/2)Nancy Chen
One-time select will no longer be available within the dialer app so the fragment and menu item have been removed. Bug: 15473965 Change-Id: I13410b328f5b5ce887b8f3a9ba2c734d58008c56
2014-07-08Update showCallScreen & isInAPhoneCall to use PhoneManager.Santos Cordon
Change-Id: Ibe6900a0560611346d4ec8e109349b0c82c8a463
2014-07-02Rename Telecomm "Subscription" to "Account" (3/7)Ihab Awad
Change-Id: I866e9d4f629a2b23acb3d3d3f2baeb0a674522f7
2014-07-01Move call-related SystemAPIs to TelecommManager. (3/3)Santos Cordon
Bug: 15672803 Change-Id: I46e448fe93a9c5b4ae013e8b2fd6f0ce89b94e69
2014-06-26Add icon indicating subscription in call log/call historyNancy Chen
Display an icon in the call details showing which connection provider (subscription) is responsible for the call. Bug: 15473965 Change-Id: I0c6755864083799b8bafe20c3692b0d943beeee3
2014-06-24Fixed bug with selecting "Send Text Message"Nancy Chen
Bug: 15847101 Change-Id: Ifa0ff4130e9cb48eb5a894fa8087dae77359d59f
2014-06-20Update Emergency Dialer to match Dialer (3/7).Sai Cheemalapati
Emergency dialer style updated to match style in Dialer and InCallUI. Moved all dialpad resources to PhoneCommon. Change-Id: I86747a58b196209a4543448ab939236eace7c52a
2014-06-20Revert "Update Emergency Dialer to match Dialer (2/5)."Yorke Lee
This reverts commit 9598b51d20cb27acb8dfd47abf2accb612cddb3c. Change-Id: I7c2d2b95740888af25b5b257572476b0f20900e3
2014-06-20Update Emergency Dialer to match Dialer (2/5).Sai Cheemalapati
Emergency dialer style updated to match style in Dialer and InCallUI. Moved all dialpad resources to PhoneCommon. Change-Id: I69ee95b20b9a6a7007288a754e12ea20763c3842
2014-06-20Merge "Fix Dialer tests"Yorke Lee
2014-06-19Fix Dialer testsYorke Lee
Fix Dialer tests and also wrap all startActivity calls that have the potential to fail with a catch block for ActivityNotFoundException Change-Id: I02ce4b985eeb0e3e607b8008a333e02168acd378
2014-06-19Add reference to TelephonyManager, renaming, remove checkbox (1/2)Nancy Chen
Incorporating API calls to TelephonyManager.getSubscriptions. Added new SubscriptionManager class to wrap data about subscriptions for the purpose of passing between Dialer and its fragments. * This particular CL deals with the renaming of the menu strings and the * passing of data between the Dialer and its fragments. Bug: 15473965 Change-Id: Id52b925c618952bd77970c157fa63e665203b04c
2014-06-16Add select sim dialog for dialpad menuNancy Chen
Also handles passing sim card information set in dialer menu to the dialpad fragment. Bug: 15473965 Change-Id: I075bf727402ba315c035eb741c563aafe67d60f6
2014-06-06Always show options menu in Dialer dialpad.Andrew Lee
We disable options if there are no digits in the text field. The PopUpMenu does not reflect this visually right now though. This also fixes bad centering of the "dial to add call" text, because now the text field will have equal left/right margins from the edges of the screen.. Bug: 15453278 Change-Id: I6f4a7a597ed289fb1b59c9fcac261d151144b642
2014-05-30Update showCallScreen to use Telecomm (5/6)Santos Cordon
Use TelephonyManager#showCallScreen instead of referencing ITelephony directly. This way TelephonyManager can accurately route the calls to Telecomm instead. Bug: 15008165 Change-Id: Ib674e2e48efaa1cc97d1513dc2c2b27fdb343657
2014-05-18Add send message option to dialpadYorke Lee
Bug: 14052383 Change-Id: I45e9ffc829664af0010eb99be453160bcab2ac3d
2014-05-15Cleanup dialpad show/hide logic.Andrew Lee
This is the first step in cleaning up the DialtactsActivity logic to make it easier to transition between different states, and handle the states in between (hopefully). Originally, I thought to also block show/hide actions if there was already a dialpad transition in progress, but in the end I did not do this because it made the UI seem unresponsive. - Delete custom predraw listener in DialpadFragment; it doesn't appear to be used (?) and made the animation logic more confusing. - Replace the fragment custom animations with our own animations, which seem to perform better. - Changed the animation xmls from objectAnimators to translates. - Replaced isDialpadShowing with uses of mIsDialpadShown. - Reorder show/hide logic. Now it is less parallel, but better reflects the ordering/nature of fragment transactions. - Reorder some methods to group them more logically. - Pull out a helper method for updating the search fragment's yTranslation. - Pull out a helper method for updating the floating action bar. - Delete predraw method in DialpadFragment; doesn't appear to be used and caused. Bug: 14900155 Change-Id: I768324b2293622ea43974f7f566eec9b11fb0d4e
2014-05-13Use one ImageButton for the floating action button.Andrew Lee
This means that the touch feedback transition can continue to propagate, even while we're switching the icons. Change-Id: Ia0c4e7bb4556c84cabccbda5f4c5861e25e2928f
2014-05-08Remove animate hide.Andrew Lee
No longer do opacity transition on hide; slide out animation for the Y translation will still apply. Bug: 14471388 Change-Id: Ib1f900b248bd422600d318c82c666f8e94a349c8
2014-05-08Move overflow menu and remove add contact button.Andrew Lee
Add contact is now included as an item on the overflow menu.. Bug: 14471388 Change-Id: I4078b6f2b653dca5e42fb6088659ca059046c85c
2014-05-07Adjust dialpad slide out animation.Andrew Lee
Bug: 14471388 Change-Id: I6f12ea8e472e54c4d5c8c4175166da48028116ac
2014-05-06Modify the calls in Dialer to animate the dialpad in.Andrew Lee
Bug: 14471388 Change-Id: I7b8b59ffd49f3e5512798cd6d9e86f2f9d0417d6
2014-05-05Fix missing add to contacts buttonYorke Lee
Change-Id: Ia174eac37dbea09dde546f09784e8b3d6bf82258
2014-05-05Move more Dialpad resources to ContactsCommonYorke Lee
Change-Id: Ifc0c2d9cbccc0e972a23edc045fef57c63c9723b
2014-05-05Allow configuration of dialpad buttons visibilityYorke Lee
The overflow menu/add contact buttons should have their visibility toggled based on whether or not the digits can be edited. For InCallUI, since the digits are not editable, none of these action buttons should ever show up. Change-Id: I2ce982fb0e2f5993f291f00ec309d99b3ddddbe8
2014-05-02Refactor dialpad into its own viewYorke Lee
Initial work needed to make the dialpad shareable within Dialer and InCallUI. This CL refactors the code that controls the appearance of the dialpad into a new custom view called DialpadView. The parent activity/fragment is still responsible for assigning listeners and handling event callbacks from the DialpadView. Change-Id: I11ab8159619413caf1c3d8fa16fff475b822633b
2014-04-30Fix font scaling problems in DialpadYorke Lee
Change-Id: I49ae1763782529ad3ada03bb92b843b5608c3139
2014-04-23Add floating dialpad action buttonYorke Lee
* Replace fake action bar at the bottom of the screen with a floating action button which casts a shadow. * Remove the now unused mDialpadOverflowMenu button in DialtactsActivity * Modify dialpad layout to add a bottom row of buttons which provide access to the add contact button and overflow menu * Fix dialpad layout so the heights applied in XML are actually respected - previously they were being ignored and each dialpad key was being assigned the height of MATCH_PARENT Bug: 13932988 Change-Id: I6e48c00c5ceeeffed142c3dd259e630d6daf8111
2014-04-14Add actionbar to DialerYorke Lee
Initial changes to replace the fake actionbar affordances in Dialer with an actual actionBar. This puts the dialer in an intermediate hybrid state where we are now using the system actionbar for search, but the searchview is not yet themed to look like our old search bar, so this is definitely still WIP UI. This CL retains the fake action bar at the bottom of the screen to continue allowing quick access to call history while other changes are underway, but replaces the searchview and the overflow menu with framework provided actionbar functionality. Other related changes: * The searchview (in the top actionbar) is hidden when scrolling to devote the entire screen area to the speeddial list https://folio.googleplex.com/phone/L/0407/#/03.png * Functionality provided by the fake overflow menu has been moved to the real actionbar overflow menu * Various modifications to child fragments/listviews to take into account the existence of an actionbar * Cleaned up unneeded styles and related-dead code Bug: 13933082 Change-Id: Ifd855bd67af7bf2d2a403ef9556ade54e8d57ee6
2014-04-07Remove dead codeYorke Lee
Change-Id: I6a48467f047d8e845d484fccb751d3a5de52066c
2014-03-25Fix NPE during activity recreationYorke Lee
Bug: 13630676 Change-Id: I3b68d5f21a4b77eab5b5493dcde670ad08cdc372
2014-03-20Fix problem where swiping upward in overflow menu did not display theIhab Awad
correct options menu items. b/13441681 Change-Id: If4f6970a4dd92e20ab1c04eae5228a0475bf445c
2014-03-11Make dialpad slide down when dismissed by tapping outsideYorke Lee
The dialpad currently simply disappears from view immediately when dismissed by tapping in the space above it. instead, it should slide downwards. Change-Id: Idba1b8c6ccf40a6b12ea611d880e9f86183e6478
2014-03-03New appearance and look and feel for dialpad.Ihab Awad
http://b/13189041 Change-Id: I91028c8fdee31c1f76610573a4396eb979c30170
2013-12-19Support long-click during lift-to-type accessibility modeAlan Viverette
BUG: 8310727 Change-Id: Icf9e103d2d6f5b5e7acb8c7f16244f0cebe9ffaa
2013-12-02Merge "Remove ContactPrefs from DialpadFragment"Yorke Lee
2013-11-26Remove ContactPrefs from DialpadFragmentYorke Lee
DialpadFragment currently instantiates an instance of ContactsPrefs that is not needed. Change-Id: I8207f8d55c578a748c5edab1f722b18b5d38b48b
2013-11-25Merge "Fix Dialer tests"Yorke Lee
2013-11-22Fix Dialer testsYorke Lee
* Empty geocode is now " " instead of "-" per UX request * DialpadFragment now throws IllegalArgumentException instead of Log.wtf so that it can be tested * Added contact id column to contactsprovider query * Modified PhoneNumberDisplayHelper to take an instance of PhoneNumberUtilsWrapper so that it can be mocked out Fix label-related tests that were failing due to a change in how we treat empty labels Bug: 9111164 Change-Id: If2244586b9d09fa2839fa0ddfc9f369f9dc66e51
2013-11-21Remove use of SystemPropertiesYorke Lee
Remove private reference to SystemProperties, needed for Verizon requirements (per team email discussion) Bug: 6948882 Change-Id: Idc826e4a93609799e3c741d36fca5124abbc5bb9