summaryrefslogtreecommitdiff
path: root/src/com/android/dialer/DialtactsActivity.java
AgeCommit message (Collapse)Author
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-19Merge "Pass in floating action button to controller." into lmp-devAndrew Lee
2014-08-19Pass in floating action button to controller.Andrew Lee
Bug:16399233 Change-Id: I15a45804919711cffc884b6e9faa0be7734f786b
2014-08-19Merge "Reveal InCallUI from touch point in Dialer. COMPLETED." into lmp-devNancy Chen
2014-08-18Reveal InCallUI from touch point in Dialer. COMPLETED.Nancy Chen
Reveal now works from the favorites tiles, recent cards/call back, search results, dialpad, and disambiguation dialog. Bug: 15284651 Change-Id: I43ba1d7095b839ec24faa043de042048d36057b1
2014-08-15Tweak FAB tints and positioning.Andrew Lee
+ Change FAB tint so that it's not 100% opacity. + Change dialpad touch tints to new theme color. - Don't translate FAB downwards when opening dialpad. Bug: 16399233 Change-Id: I7d5e0015e0d7d436ce3e2780f3048dfb792d13c0
2014-08-13Send MotionEvent with touch coordinates to call intentNancy Chen
Be able to send the x,y coordinates of a user's touch action on an element that introduces a call in order to start the InCallUI animation from that touch point. This change covers the call log "call back"/recent card. Bug: 15284651 Change-Id: Ife6fe003fcf0dd106640add5d65c10fd8fd1cb9e
2014-08-12Correcting dialpad animations in landscape (3/3).Tyler Gunn
1. Fixed slide in/out animations for RTL locales. Bug: 16463723 Change-Id: Ifb32e8daed58949d53acc23828d083f1adac3944
2014-08-05Merge "Fix some action bar logic" into lmp-devYorke Lee
2014-08-06Fix some action bar logicYorke Lee
* Restore action bar slid state only after onCreateOptionsMenu, when it has an effect * ActionBarController is now the only way to make changes to the offset of the action bar so that it can appropriately restore its state Bug: 16710397 Change-Id: Id9e0ebe210c89df0be56b32aa3bbd959cce88621
2014-08-06Set correct interpolator for dialpad animationYorke Lee
Bug: 16659277 Change-Id: Ia9639c6b8e3d192a4fbb2ad8c7a8452c5b31839e
2014-08-06Merge "Fragments in Dialtacts report to Analytics." into lmp-devSai Cheemalapati
2014-08-06Tweak Z-depth for Dialer ActionBarYorke Lee
Bug: 16550151 Change-Id: I27cff5de9aa97f4709b609574c3986c76d9f7050
2014-08-06Fragments in Dialtacts report to Analytics.Sai Cheemalapati
Fragments in DialtactsActivity now report to Analytics when viewed. Change-Id: I86d6cabc372bd466a4907d79b1613e5ae1445227
2014-07-30Changing Activities to implement Analytics (1/2).Sai Cheemalapati
Dialer's Activities now implement AnalyticsActivity. All Activities now have access to sendHitEvent, which is a no op in AOSP Dialer. Change-Id: I318f08bfaf98cb88f9dbf6e4f28994b215bafa77
2014-07-28Decreased height of action bars in dialerNancy Chen
Kept the height of the search box the same while decreasing the height of all other action bars. Bug: 16627750 Change-Id: I43f2ae6b0f67113df2522369f5fef78c0dc12df4
2014-07-24Hide keyboard when next key is pressedYorke Lee
Also move some shared utility methods to DialerUtils Bug: 16542561 Change-Id: Ibc574c24919bdcd11b0786fb9d22d29ff9c21bf1
2014-07-22Make ViewPagerTabs and FABController RTL awareYorke Lee
* Underline in ViewPagerTabStrips is correctly drawn in RTL mode * Clicking on ViewPagerTabs propogates correct onPageSelected position to ViewPager * FAB is now end aligned instead of right aligned * ViewPager in Dialer is correctly reversed and behaves correctly * Call Log groups headers in call log are now correctly aligned in RTL Bug: 16162264 Bug: 16464471 Change-Id: I2db6b9147a628a68fba5bbbdb7276855d483bad5
2014-07-21Expose call settings as public API (3/3)Yorke Lee
Use new call settings intent in Dialer Bug: 16298644 Change-Id: Ia615797e20f396a38fe382f3a2d54ec41c5249ef
2014-07-15Merge "Make ContactPreferences use SharedPreferences instead of System ↵Yorke Lee
settings (5/5)" into lmp-dev
2014-07-15Remove unnecessary flag for disabling Account SelectionNancy Chen
Since the account selection dialog no longer will appear on the dialer app, the Dialtacts activity no longer needs to disable it. Bug: 16290489 Change-Id: I14790ee047d46ef716cadf9a5d5e0b70e1d46898 (cherry picked from commit 29a2ef2f0371de25272e63b8498f939d1c202dba)
2014-07-15Make ContactPreferences use SharedPreferences instead of System settings (5/5)Yorke Lee
* Move constants that originally lived in the framework into ContactsCommon * Use SharedPreferences instead of System settings to persist preferences * Use a SharedPreferenceListener to monitor changes instead of a content observer on system settings * Move DisplayOrderPreference and SortOrderPreference into ContactsCommon so that it can be used by Dialer * Create base DialerSettingsActivity in Dialer, and make GoogleDialerSettingsActivity extend it Bug: 16153186 Change-Id: I27befcc3b038038830f72092b55a6fc8a6f85674
2014-07-15Allow overflow menu to overlap overflow buttonYorke Lee
Bug: 15988764 Change-Id: Ifeffb18a76f38a558e602c9fb5f62ef9d3404ecb
2014-07-14Implement multi-SIM capabilities (3/6) [DO NOT MERGE]Ihab Awad
Bug:16292368 Change-Id: I367f838a08bd478aca86e2d75b221250ebd8a82e (cherry picked from commit 0e8a870afc9de3063a652256e81f9bf2043914e0)
2014-07-10Remove unused import of ServiceManagerYorke Lee
Bug: 6948882 Change-Id: Ie2c9ab76398ef4d9474e5ea8712b1cda1e4da782
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-09Merge "Hook up call intent for video call."Andrew Lee
2014-07-08Update showCallScreen & isInAPhoneCall to use PhoneManager.Santos Cordon
Change-Id: Ibe6900a0560611346d4ec8e109349b0c82c8a463
2014-07-08Hook up call intent for video call.Andrew Lee
Bug: 16013180 Change-Id: If067b2bb4252afa2c2e373b4eff9511dad821159
2014-07-02Add "Make video call" button to search fragments.Andrew Lee
= Add new "make video call" shortcut type, and "handle" its click in SearchFragment. = Enable "make video call" shortcut for regular and smart dial search fragments. For now, this shortcut does nothing. = Enable "add contact" shortcut for smart dial search fragment. = Changed the bounds of the shortcut items to fill to the edges. = Convert shortcut click handling to use switch/case block. = TODO: Enable/disable the shortcuts depending on whether video calling has been enabled, once the option is available. = TODO: Handle dispatching a video call intent, once that intent extra is provided. Bug: 16013180 Change-Id: I7563d1f2939e27c4b13ed966b73cd4badd9d9fa7
2014-07-02Rename Telecomm "Subscription" to "Account" (3/7)Ihab Awad
Change-Id: I866e9d4f629a2b23acb3d3d3f2baeb0a674522f7
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-23Revert "Hide the dialpad fragment onResume after dialing."Andrew Lee
This reverts commit 1f432a644a930688addec25bf406b3b1df08a6d3. Change-Id: I21844fdfcde3e7864d01f3dbe1b171864023975e
2014-06-23Hide the dialpad fragment onResume after dialing.Andrew Lee
- Before, the dialpad fragment was being hidden immediately after the user dialed a number. This caused the view in the lists fragment to flash for a second between pressing dial and launching InCallUI. - Now, don't clear/hide the dialpad fragment once the dialpad button is pressed. - Instead, in DialtactsActivity, stash an instance variable to hide and clear the dialpad fragment the next time onResume() is called... that is, the next time the Dialer is opened. Bug: 15829164 Change-Id: I1e7d253b914c049f49bc8c1230f7110d6e98ec08
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-16Merge "Exit search UI when dialpad is hidden if no smart dial results."Andrew Lee
2014-06-16Exit search UI when dialpad is hidden if no smart dial results.Andrew Lee
Bug: 15471462 Change-Id: Iaa8fd146d69a1c3a28c3106620228b43a6409bdc
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-13Fixes issue with FAB alginment.Sai Cheemalapati
FAB now aligns correctly when selecting tabs. Change-Id: I94aefb9194a60c47504f238eedbebd466f9bd52d
2014-06-13Clear fragments properly when search term is erased.Andrew Lee
Specifically, in the scenario in the bug the dialpad was not shown but we actually wanted to clear the speed dial fragment, not the regular search fragment. Change this to affect the visible fragment, rather than whether or not the dialpad is shown. This onClick pathway is no longer used too, so deleting. Bug: 15516704 Change-Id: Icd4419e0746ce0e2bcb9c9437dbac77d64bb8c98
2014-06-12Add menu items for multi-sim supportNancy Chen
The main overflow menu will display a "select SIM card" option when more than one sim is available. Bug: 15473965 Change-Id: I18175cec57158f0a8189979849f6ad761eff1aff
2014-06-11Use Framelayout instead of RelativeLayout in DialtactsActivityYorke Lee
Switch to FrameLayout instead of RelativeLayout since we don't need the more complicated and expensive layout abilities of RelativeLayout. This improves startup time (on hammerhead-eng, interpreted ART mode) to about 1150ms on average from 1300ms originally. Change-Id: I94400dcc58cc74497c71a7432a06a4dffe3b078d
2014-06-11am a6d7bd35: Merge "Empty ACTION_DIAL intent launches favorites" into ↵Yorke Lee
lmp-preview-dev * commit 'a6d7bd355e37674b4982525227bc969ea3a0c738': Empty ACTION_DIAL intent launches favorites
2014-06-11resolved conflict for merge of 469e9df0 to masterAdrian Roos
Change-Id: Ic96a35172c113e8b25084de3c8cf5e44f931903b
2014-06-10Empty ACTION_DIAL intent launches favoritesYorke Lee
Bug: 15537399 Change-Id: I6262945f9b90d4378c24a8450d7c818604133623
2014-06-10Merge "Updating Dialpad animation in InCallUI."Sai Cheemalapati
2014-06-09Updating Dialpad animation in InCallUI.Sai Cheemalapati
Dialpad now saves orientation state. Animation now matches duration and direction in Dialtacts. Bug: 15386162 Change-Id: I57fd6797b2bf7a5bff86f5175e18a70e16ca522b
2014-06-09Fix floating action button position in landscape.Sai Cheemalapati
Floating action button should always be fixed to the right side of the screen in landscape orientation. Bug: 15386162 Change-Id: Ic14fa184ffdf4ad7b817930217ea3d3fca901949
2014-06-09Revise remove view target positioning.Andrew Lee
- Move placement from dialtacts activity layout to the lists fragment, so that it can be positioned over the tab bar. - Relocate references to RemoveView/RemoveViewContainer to the lists fragment from the activity class. - Set colors using tints, remove old highlight state asset. - Fade out search bar and recent card when dragging. Bug: 15434489 Change-Id: I49205c79aeb008a30efc3c2ea417b8836444e203
2014-06-06Merge "Moving FAB logic to ContactsCommon."Sai Cheemalapati
2014-06-06Moving FAB logic to ContactsCommon.Sai Cheemalapati
Moved FAB to ContactsCommon. Cleaned up FAB Controller. Replaced implementation of FAB in InCallUI with controller. Prevented animations from happening again in InCallUI on orientaton change. FAB also repositions correctly on orientation change in InCallUI. Bug: 15386162 Change-Id: Ibc1739a54f236939db29cab350233275099a4446
2014-06-06resolved conflicts for merge of 97c57cce to masterAndrew Lee
Change-Id: Ie2d46ac867c235f1281e02b3e03574f287eacdb3
2014-06-05Add click listener to search icon.Andrew Lee
This way, if the user taps on the icon they will enter the search UI... increases the surface area for this interaction slightly. While I was at it, I also changed an unnecessary class variable to be scoped within onCreate. Bug: 15457217 Change-Id: I07796eb3f49595b136a2a075d9039a7b899c7819
2014-06-04Modified floating action button.Sai Cheemalapati
No longer relies on RelativeLayout for positioning. Moves as tabs scroll. Repositions to the correct place in landscape dialer. Bug: 15167378 Change-Id: I721336b3dbd60defbce77f3a09b4ba94cfc826b6
2014-06-03DO NOT MERGE. Styling search to match redlines.Andrew Lee
- Cherrypicking changes back to master. Mostly, this involved transferring changes dealing with padding and the translation values. - Shift arrow/close icons. - Use 20sp font in expanded search (causes baseline to shift down). - Update action bar movement to use dialpad's interpolators and durations. - Smoothed out animations. Icons in the view being faded out are now instantaneously set to GONE. The margin animator when going from collapsed to expanded starts at 0.8f now, so that the searchbox does not shrink momentarily when switched to the 9-patch, because of the shadow. - Fix clipping because of 9-patch; refactored logic for updating the position and padding from the Activity into SearchFragment. This was motivated in part because we want a padding at the top of this list for the first item, but when the dialpad is shown we do not want that padding. Bug: 15343931 Conflicts: res/layout/search_edittext.xml res/values/dimens.xml src/com/android/dialer/DialtactsActivity.java src/com/android/dialer/list/SearchFragment.java Change-Id: I8519e7e2ef5c75c0f170ff61ed22f44f95e07f74
2014-06-03Updated dialer animation in landscape.Sai Cheemalapati
Caching animations in constructor. Dialer now flows in and out from/to the right. Moved animation timing constants to constants file. Change-Id: I287caa081c6576b347594d30ccce2b6d6526db1f
2014-06-03DO NOT MERGE. Styling search to match redlines.Andrew Lee
- This conflicts with some of Sai's changes, so will manually cherrypick this CL back to master.. - Shift arrow/close icons. - Use 20sp font in expanded search (causes baseline to shift down). - Update action bar movement to use dialpad's interpolators and durations. - Smoothed out animations. Icons in the view being faded out are now instantaneously set to GONE. The margin animator when going from collapsed to expanded starts at 0.8f now, so that the searchbox does not shrink momentarily when switched to the 9-patch, because of the shadow. - Fix clipping because of 9-patch; refactored logic for updating the position and padding from the Activity into SearchFragment. This was motivated in part because we want a padding at the top of this list for the first item, but when the dialpad is shown we do not want that padding. Bug: 15343931 Change-Id: I7c3a96dd295c58c6955e6bd3e9d8cda151de4c3f
2014-06-02Matching landscape dialer to mockups.Sai Cheemalapati
Dialer now matches mockup in landscape mode. Bug: 15386162 Change-Id: I8abb7a6c13bbeb1cb9210532e850010b196fe14e
2014-05-30When dragging, don't slide action bar if pane is closed.Andrew Lee
Ideally it would probably be better to put this in the ActionBarController. However, that requires substantially more refactoring, and per an email earlier the implementation/behavior might change and render that refactoring needless. So... opting for the easier soltuion to fix this bug (which appears on drag). Bug: 15313430 Change-Id: I3e6aaba5d0b1721ce2a035a10ea6073fe6527472
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-30Merge "Move the FAB in the dialpad down 4dp, in Dialer." into lmp-preview-devAndrew Lee
2014-05-30Move the FAB in the dialpad down 4dp, in Dialer.Andrew Lee
Bug: 15328499 Change-Id: I71b227f3233ada7e3f1fd65bc9cce7c919b35cbb
2014-05-29Fix for search UI remaining on screen after call is madeYorke Lee
Also slide up the action bar after it is faded out - this is so that it doesn't remain in the same position and intercept touches Remove unneeded FragmentTransaction fadeout animation in exitSearchUI that was causing jank when returning to the favorites screen Bug: 15120649 Change-Id: Idcf96c2339603af09e1773729994d267158f70a0
2014-05-29Merge "Save state of dialpad in onSaveInstanceState" into lmp-preview-devYorke Lee
2014-05-28Save state of dialpad in onSaveInstanceStateYorke Lee
Bug: 15317467 Change-Id: I8f3a4968550b65ac977d0b137f692400834bb0ac
2014-05-28Use common AnimationListenerAdapter instead of private class.Andrew Lee
Bug: 15169764 Change-Id: I5c61d843256e328a0a492f842a069abc666c61a1
2014-05-27Merge "Add ActionBarController" into lmp-preview-devYorke Lee
2014-05-23Add ActionBarControllerYorke Lee
* Collect all actionBar interactions within DialtactsActivity into a single controller to ensure that it behaves more deterministically, and fix some bugs with regards to actionBar interactions. * Make sure that action bar correctly handles activity recreation and destruction by saving its state * Add unit tests and mock classes for ActionBarController Bug: 14900155 Change-Id: I370831db425e1970b118f5d4fed3ce9297e3610d
2014-05-23Increase size of actionBarYorke Lee
* Increase size of actionBar to 64dps and also add 8dps of padding to the search box. * Removed some unused styles Bug: 15165670 Change-Id: Ia232431b2e637c9ccbdd0710f723f2063add524b
2014-05-21Add shadow to expanded search boxYorke Lee
Change-Id: I6fa3bdd20a4e1fe024e2edabc06d0f777571ae2c
2014-05-20Clean up some interactions in entering/exiting searchUIYorke Lee
Entering/exiting the search UI should now behave as a state machine that is described as follows: * Tapping on the search box or the dialpad brings up the search UI * If back is pressed when in the search UI, one of three things happens 1) If the dialpad or IME is up and a query exists in the searchbox or the dialpad, the IME/dialpad is hidden to allow the user to scroll search results. 2) If the dialpad or IME is up and the query is empty, hide the dialpad and IME, and exit the search UI. 3) If the dialpad or IME is not up and the query is not empty, clear the search query and exit the search UI. Change-Id: I9ba21227e1f1fcba4cde1101b3516009ee55da12
2014-05-20Swap out search box contents when expandingYorke Lee
* Replace search box layout with two main child views - one for the collapsed state and one for the expanded state. * Add back button to the expanded state * Replaced OnTouchListener on the searchbox with an OnClickedListener Bug: 14900155 Change-Id: I4f07650ddf7e265ee5c4d1054c0bf0ff7494ab6b
2014-05-20Merge "Make searchbox expand when entering search UI"Yorke Lee
2014-05-20Make searchbox expand when entering search UIYorke Lee
Bug: 14900155 Change-Id: Ib6e500ed55db90ad1fa13ba6dd0e141721331ba4
2014-05-19Exit search UI before dialing.Andrew Lee
Closes the search UI if there is no query when the dialpad fragment is hidden. This is so that an empty search list is not shown after the dialpad fragment is hidden, before the InCallUI is launched. Change-Id: I580cea94ee1c9f21082eda0f6bff77c5c283282d
2014-05-18Fix NPE in onTextChangedYorke Lee
Always initialize mVoiceSearchButton in onCreate to ensure that it is never null Change-Id: Ic478ae136f7bcbb28a49efce0f4ce2481dcd4945
2014-05-17Add magnifying glass to search box.Andrew Lee
Bug: 14900155 Change-Id: I12cf9aa36c7947e7ee8078de088882b2b3fbdae6
2014-05-16Merge "Fix fragment position in dialpad fade-out."Andrew Lee
2014-05-16Fix fragment position in dialpad fade-out.Andrew Lee
Before, there's a noticeable gap in the bottom where the search fragment is not fading in; it's fully transparent because the position of the fragment was formerly updated too late. This change updates the position earlier and tweaks the logic slightly. Change-Id: I748c5cd9e9161007eccedb8f86d30011f2a30150
2014-05-16Only show search fragment if text is set to non-empty.Andrew Lee
Bug: 14900155 Change-Id: I4beea8818b333d7bec2aa3fb17d9e2413e5f1965
2014-05-16Move actionbar menu into menu button in search edit text.Andrew Lee
No longer use the built-in options menu functionality. Instead add our own menu button and handling its clicks as menu item clicks instead of options menu clicks. Bug: 14900155 Change-Id: I1ed15df2fc2463f963c1825f6f52437c6122f539
2014-05-16Open search ui on touch, and handle related scenarios.Andrew Lee
- Add a touch listener to enter the search ui when the user touches the search bar. - Add a key listener to exit the search ui if the user closes the keyboard while the text input is empty. SearchEditTextLayout was added to facilitate this.. - Get rid of mFragmentsFrame, and control visibility of the favorites view by adjusting the alpha of the lists framgent instead, - Delete (hack) logic to change the background color. - Enter the search ui whenever the dialpad is shown, and exit if it is hidden and there is no query. - Handle showing/hiding the actionbar depending on whether the overlapping panel is displayed. This solution is a little hack, but what seems to be a weird frameowrk interaction prevents the desired solution of showing the action bar and then updating the hide offset. Bug: 14900155 Change-Id: I4e06e4ed8eae49ef48317c99a556c51ff2a206a5
2014-05-16Merge "Don't exit search ui if query string is empty."Andrew Lee
2014-05-15Don't exit search ui if query string is empty.Andrew Lee
Bug: 14900155 Change-Id: Ic0c353d04491288428663c5350abffe514f96149
2014-05-15Merge "Remove redundant long-click listener."Andrew Lee
2014-05-15Remove redundant long-click listener.Andrew Lee
Change-Id: I73e8e7fdde21d7244aab21cae5ce8dd58b50de9d
2014-05-15Fix button alignment.Andrew Lee
Bug: 14900155 Change-Id: I391fa09fe9c31e3cf07c99ccbcb060c083304641
2014-05-15Merge "Cleanup dialpad show/hide logic."Andrew Lee
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-13Merge "Simplify PhoneNumberPickerActionListener logic in DialtactsActivity"Yorke Lee
2014-05-13Simplify PhoneNumberPickerActionListener logic in DialtactsActivityYorke Lee
Change-Id: Idea95bfc4a8c4fa3a451eaae677cd5150037f1b0
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-12Change search list background to grey.Andrew Lee
- Change the layout parent background programatically in the activity, when the dialpad is shown or hidden. - Change the gradient above the dialpad fragment in Dialer too. - Add directory header attrs color. Change-Id: I97be52f07480ee5b4db55555ef4e4de0feb7d55a
2014-05-07Merge "Refactor drag and drop to work for entire Dialer layout"Yorke Lee
2014-05-06Refactor drag and drop to work for entire Dialer layoutYorke Lee
Add a drag listener to the main dialer layout and manipulate drag events correctly in DragDropController so that drag and drop works throughout the main Dialer layout, rather than just the speed dial fragment. Also shift the remove view into dialtacts_mainlayout so that it can continue receiving drag events. Bug: 14393052 Change-Id: I90c26fee4fe681d0e237aa490185e850628e4cd0