Commit Graph

16456 Commits

Author SHA1 Message Date
Android Build Merger (Role) b47aa5d0d1 [automerger] Hides the keyboard when qsb loses focus in All apps am: 25b4dfee29
Change-Id: I27a5d03b26345596918aca62a89e78255bef4c9c
2018-06-05 23:23:19 +00:00
Mehdi Alizadeh 25b4dfee29 Hides the keyboard when qsb loses focus in All apps
Bug: 80190879
Change-Id: I88da6ef7a88b9dd4fce06e4f2b4592ee6ce39195
2018-06-05 16:22:35 -07:00
Android Build Merger (Role) bf3ac479a4 [automerger] Fixing controller state is not properly cleared when the animaiton is cancelled. am: 87a6ad18cd am: b72f69d073
Change-Id: I96d04e27788f1233c951421edccfbf00e3b3a35b
2018-06-05 23:07:43 +00:00
Android Build Merger (Role) b72f69d073 [automerger] Fixing controller state is not properly cleared when the animaiton is cancelled. am: 87a6ad18cd
Change-Id: If50ce87da192ed0339d5b9faa1983bfc4174b647
2018-06-05 23:07:41 +00:00
Sunny Goyal 87a6ad18cd Fixing controller state is not properly cleared when the animaiton is cancelled.
This was leading to a pending animation running while the state had changes,
leaving user in an inconsistent state.

Various atomic animation fixes
> Ensuring that there is only one success listener on atomic animation, so that atomic
  controller is created only once and to the final mToState
> If atomic controller is already running, skip animating the atomic conmonenets as
  part of main animaiton
> Cancel atomic controller if it is going to a different state

Bug: 80549582
Bug: 109583168
Change-Id: Ie7a032e0fa73b1f1c2ef53055c08d16444f0385e
2018-06-05 16:07:29 -07:00
Android Build Merger (Role) 4826463555 [automerger] Do not change state in the middle of quickstep gesture am: d936f6a5e9 am: 7c8ffd1d3b
Change-Id: Iabd6fef0416f0672854ff352b13dffb870792bc1
2018-06-05 17:12:32 +00:00
Android Build Merger (Role) 7c8ffd1d3b [automerger] Do not change state in the middle of quickstep gesture am: d936f6a5e9
Change-Id: I6297797bb034ad8bd2600c8abb5a959ee0e6aa32
2018-06-05 17:12:30 +00:00
Sunny Goyal d936f6a5e9 Do not change state in the middle of quickstep gesture
Changing states causing quickscrub to get cancelled and recentsView to
get reset to page 0, causing an abrupt jump.

Bug: 80537625
Bug: 80497058
Change-Id: I19cfe4380bbff15734b9d90dc31596904da27483
2018-06-05 10:12:23 -07:00
TreeHugger Robot 6e680f9bf6 Merge "Deleting invalid icons when an app is restored" into ub-launcher3-edmonton-polish 2018-06-04 23:54:10 +00:00
TreeHugger Robot 1c9a61ad6a Merge changes from topic "am-ba267b72-28d8-4a62-9fa3-dd082d28e8e7" into ub-launcher3-master
* changes:
  [automerger] Deleting invalid icons when an app is restored am: e48fe1095d
  Deleting invalid icons when an app is restored
2018-06-04 23:54:10 +00:00
Android Build Merger (Role) 1e636dfa08 [automerger] Do not run StateHandler code while holding the lock am: f46779fe01 am: bda981419c
Change-Id: I90c280ebe5868ffc92618134802c95f7acc2b4c3
2018-05-31 21:13:05 +00:00
Sunny Goyal f46779fe01 Do not run StateHandler code while holding the lock
Deadlock:
Main thread:
  InternalStateHandler.run() =>
  	 LauncherFrameDrawn =>
  	 Switch MotionEventQueue to Main thread =>
  	 Try to acquire MotionEventQueue lock while holding InternalStateHandler lock

Remote UI thread
  Recents Animation cancel on MotionEventQueue =>
     Cancel SwipeHandler =>
     Clear previously registered InternalStateHandler =>
     Try to acquire InternalStateHandler lock while holding MotionEventQueue lock

Bug: 80536505
Change-Id: I75e522edea2a76f8bc90e8abc2a174583cc709c4
2018-05-31 14:12:52 -07:00
TreeHugger Robot f4392dbf5a Merge "Some launcher3 fixes so that it compiles with different configurations" into ub-launcher3-edmonton 2018-05-31 16:42:56 +00:00
Android Build Merger (Role) a7d219f798 [automerger] Some launcher3 fixes so that it compiles with different configurations am: d0f43ceba7 am: 9e40ef9894
Change-Id: Ie3eed75fab341dfe274a566c71d6b6fdbab70854
2018-05-31 01:15:28 +00:00
Android Build Merger (Role) 9e40ef9894 [automerger] Some launcher3 fixes so that it compiles with different configurations am: d0f43ceba7
Change-Id: I4886d9a1880c35ebb36ccda20401e6c7e394dad9
2018-05-31 01:15:27 +00:00
Sunny Goyal d0f43ceba7 Some launcher3 fixes so that it compiles with different configurations
Bug: 79996542
Change-Id: I4267aeb8f5b0714415970c63453049ff41466644
2018-05-30 18:15:21 -07:00
Android Build Merger (Role) a648206cd5 [automerger] Theme updates for dark text: am: 337fcb7983 am: a4feb0c385
Change-Id: Id1edd1dfac985be021f84e92c9014bcbf61608bb
2018-05-30 22:53:18 +00:00
Sunny Goyal 337fcb7983 Theme updates for dark text:
> Using white scrim on adjescent tiles in overview
> Using a ligher scrim in dark-theme+dark-text

Bug: 80253867
Change-Id: I3f257d3addaca8bc5970a61722f5ae0e7af89382
2018-05-30 15:53:10 -07:00
Android Build Merger (Role) f9f6e18eb7 [automerger] Deleting invalid icons when an app is restored am: e48fe1095d
Change-Id: Ia1f31b6c9c7cad813797357be1a3932aeae911ea
2018-05-30 22:23:21 +00:00
Sunny Goyal e48fe1095d Deleting invalid icons when an app is restored
When a app is restored, it may not be in exactly the same state as it was when backed up.
Some components might be missing, and some shortcuts may be disabled or unavailable

Bug: 63525806
Change-Id: I09e6c0e9a9d2c1e8ccd73430f94bd065bdf2718e
2018-05-30 15:23:09 -07:00
Android Build Merger (Role) c7c050497c [automerger] Fix animation not playing when going home while another animation is playing am: 67f9cad75a am: 7b77403629
Change-Id: I06b6f28a514852c7f11698f5b54c4a26f3244631
2018-05-30 00:39:06 +00:00
Tony 67f9cad75a Fix animation not playing when going home while another animation is playing
When going to a new state, we cancel any currently playing animation. When
canceling the animation, we reset mState = mCurrentStableState. Thus, when
determining the duration of the new animation, we have both state == NORMAL
and mState == NORMAL, leading to a duration of 0 and therefore no animation.
Storing the fromState before canceling/resetting fixes the issue.

Change-Id: I92332deae8058c4dd41212fe7f749955ede28b1c
2018-05-29 17:33:16 -07:00
Tony Wickham 78bf9b6265 Merge changes from topic "am-44d997ce-f83c-4bd7-aee0-6ab74e7269f5" into ub-launcher3-master
* changes:
  [automerger] Unhide badge when popup closes without animation am: bb9378aead am: d7eaf26425
  [automerger] Unhide badge when popup closes without animation am: bb9378aead
  Unhide badge when popup closes without animation
2018-05-29 22:44:10 +00:00
Tony Wickham 0512a6de57 Merge "Unhide badge when popup closes without animation" into ub-launcher3-edmonton 2018-05-29 22:44:09 +00:00
Android Build Merger (Role) 4cd3f2280c [automerger] Set mState = mCurrentStableState in onAnimationCancel am: 8935d9515c am: 556a97d9d6
Change-Id: I5de9060970fe6f8cb87f45d2e27ec591c4db543c
2018-05-29 22:03:17 +00:00
Tony Wickham 8935d9515c Set mState = mCurrentStableState in onAnimationCancel
mState is set when the transition starts toward that state even if it is
never reached. If the animation is canceled, therefore, we should reset
mState = mCurrentStableState since that is the state we came from.

For instance, when swiping up from overview, mState = ALL_APPS, but when
swiping back down we cancel that animation and create the task launch
animation. When creating the task launch animation, we reapplyState(),
which, before this change, was still ALL_APPS instead of OVERVIEW.

Bug: 79935289
Change-Id: I59c5799e92350747e4ef1d99a80ba678a2ce7b98
2018-05-29 21:58:52 +00:00
Android Build Merger (Role) b052aabc6e [automerger] Unhide badge when popup closes without animation am: bb9378aead am: d7eaf26425
Change-Id: I879d3e174ebad674893d02f674254675e56e7aeb
2018-05-29 21:46:15 +00:00
Android Build Merger (Role) d7eaf26425 [automerger] Unhide badge when popup closes without animation am: bb9378aead
Change-Id: Ib3e8bc6622e74c9a7ca214cfabecac956b666397
2018-05-29 21:46:13 +00:00
Tony bb9378aead Unhide badge when popup closes without animation
Bug: 80379412
Change-Id: I7d6c1b67a07747078b43b17612d8c67a46c8cc0e
2018-05-29 14:44:41 -07:00
Android Build Merger (Role) 1d9a44748a [automerger] Various quickscrub fixes am: 9bb8ffb5e3 am: c7bf48338c
Change-Id: I2ed6d0318a36148bf177108d3d2c21506644d33f
2018-05-29 19:17:28 +00:00
Sunny Goyal 9bb8ffb5e3 Various quickscrub fixes
> Fixing PagedView resetting the currentPage, if scrollToPage was called before first layout
  This causes quickscrub to jump back to the current task if launcher activity was dead.
> Fixing missing callbacks in DeferredTouchConsumer causing missed quick scrub flings
> Sending the resents animation callbacks on the motion queue thread, to avoid synchronization
  issues with sysui callbacks.
> Waiting until the recents animation is received before starting the scale down animation
> Calculating the offset for quickscrub statically incase launcher activity was dead

Bug: 80214390
Change-Id: I1b7d00b7b266655a92fcd6239f25ba191655150f
2018-05-29 12:17:20 -07:00
TreeHugger Robot 03aaced252 Merge "Fix clipping of adaptive icons Bug:62372639" into ub-launcher3-edmonton 2018-05-29 17:38:28 +00:00
Android Build Merger (Role) 6876902357 [automerger] Report when a notification is shown in the popup am: c97d846372
Change-Id: Iff0559113aea636559400a5772b0749d4855b225
2018-05-29 17:05:08 +00:00
Tony c97d846372 Report when a notification is shown in the popup
Change-Id: I5c06b18f731e2dc8e47bacba59746fc4cc02c42c
2018-05-29 17:05:02 +00:00
Android Build Merger (Role) 869977208b [automerger] Fix clipping of adaptive icons Bug:62372639 am: 49df554dc2 am: b7a30c69b3
Change-Id: I135ea15d2bcf1c3f3c1f0afe45418fbc0433c8d2
2018-05-25 23:31:05 +00:00
Android Build Merger (Role) b7a30c69b3 [automerger] Fix clipping of adaptive icons Bug:62372639 am: 49df554dc2
Change-Id: If59cb96023914f65fca3d75eb6f3155deeb1932c
2018-05-25 23:30:58 +00:00
Hyunyoung Song 49df554dc2 Fix clipping of adaptive icons
Bug:62372639

Context: only noticeable on large form factor AND Large display setting
Ceiling operation is needed to calculate offset of the drawing.

Change-Id: I7c77fa53f0811990b8cfdc3a12e2b43eb4d2d73e
2018-05-25 16:30:23 -07:00
Vadim Tryshev 5c17a390d2 Merge "Reporting range of visible tasks" into ub-launcher3-edmonton 2018-05-25 19:55:39 +00:00
Android Build Merger (Role) 30796246f8 [automerger] Reporting range of visible tasks am: 528b9e0615 am: cd622e1e7c
Change-Id: Ie5dc36936d4c1ba71bb8bf9b3a548d1f105c6fff
2018-05-25 19:25:50 +00:00
Android Build Merger (Role) cd622e1e7c [automerger] Reporting range of visible tasks am: 528b9e0615
Change-Id: If07b140aa110e7fb8f8ef17637454126248720c1
2018-05-25 19:25:49 +00:00
Vadim Tryshev 528b9e0615 Reporting range of visible tasks
Also fixes task position being incorrectly reported specifically for
swipe events due to using stale getCurrentPage().

Bug: 72222505
Test: Manual
Change-Id: Ic79b67f8a6ffbfabc397b411b14afc309405197e
2018-05-25 12:24:40 -07:00
Sunny Goyal 4308bd232e Merge "Fixing launcher going to a different state when dragging an icon from different activity" into ub-launcher3-edmonton 2018-05-25 19:17:28 +00:00
Android Build Merger (Role) 6d85b5e793 [automerger] Fixing launcher going to a different state when dragging an icon from different activity am: 4dcda06542 am: 1d146b2264
Change-Id: I406d03017484aa5a2d701d27df1f96421ef33701
2018-05-25 18:57:02 +00:00
Android Build Merger (Role) 1d146b2264 [automerger] Fixing launcher going to a different state when dragging an icon from different activity am: 4dcda06542
Change-Id: Ifcb89488c351ba866026cfbdf3645b4358eeac8f
2018-05-25 18:57:01 +00:00
Sunny Goyal 4dcda06542 Fixing launcher going to a different state when dragging an icon from different activity
Bug: 80191074
Change-Id: I45ea646dc2bd21627e8b724dac9c9fc23c18797d
2018-05-25 11:56:53 -07:00
Android Build Merger (Role) 962b7f6f97 [automerger] Accounting for view translation when calculating the focus location am: db9f86a472 am: 662d41ca88
Change-Id: Ib18878ccabfb8cf6a5b2655500f26c4f8602a0f2
2018-05-25 17:53:27 +00:00
Sunny Goyal db9f86a472 Accounting for view translation when calculating the focus location
Bug: 80160107
Change-Id: Ibb0cb82c33c141bb3abf9b7576be4253630cb8c5
2018-05-25 17:52:49 +00:00
Android Build Merger (Role) 76c59da5c0 [automerger] Fix crash caused by removing update listener in update listener. am: 012d39a0e9 am: cd1727c069
Change-Id: Icd7aab53e7bd7cb65132f10ff752165ff57e2b46
2018-05-25 17:42:53 +00:00
Jon Miranda 012d39a0e9 Fix crash caused by removing update listener in update listener.
Bug: 80236772
Test: Fling all apps open, and catch it before it reaches the top
Change-Id: I082a26b97afb7dbc162758ff9654e4a3707f9d7e
2018-05-25 10:41:16 -07:00
Android Build Merger (Role) e9c5061381 [automerger] Fix bug where icon 'jumps' on long press. am: 31942e788b am: 7f72718cbb
Change-Id: I8ca9885abd09b5a60fc80c84567dc12b59356beb
2018-05-25 02:12:07 +00:00