Winson Chung
0c2b05947e
Handle uiMode changes
...
- Launcher already dedupes if there are no theme changes
Bug: 148988542
Test: adb shell cmd uimode car yes/no, adb shell cmd uimode night yes/no
Change-Id: Ia83f02d18a0433c8be59d1f488e58b38476ba5ff
2020-07-21 17:20:53 +00:00
Samuel Fufa
dad2efaa91
Merge "Fix hotseat file log name formatting" into ub-launcher3-rvc-qpr-dev am: 7dc81afc4d am: 5b832096e0
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12193277
Change-Id: I434c9e39f3154872dc75f7a70e83bbea00b84830
2020-07-21 17:02:02 +00:00
Winson Chung
fbb8c69a56
Guard swipe to notification gesture with system settings preference
...
Bug: 154080211
Test: make and install, check the gesture works as expectedly
Change-Id: Ibd6bbd595d2fba5d68e66eb54e4a7fec160b9bf8
(cherry picked from commit 779efaca91 )
2020-07-21 09:59:44 -07:00
Winson Chung
fc6c42107d
Update state and touch region after one handed overlay changed
...
The matrix for overall modes x state changes:
-----------------------------------------------------
Mode | State changed | *Before|*After
-----------------------------------------------------
OneHanded | Portrait->Landscape | 80dp | 32dp
OneHanded | Landscape->Portrait | 32dp | 80dp
-----------------------------------------------------
OneHanded | Disable->Enable | 32dp | 32dp
(Landscape)| Enable->Disable | 32dp | 32dp
-----------------------------------------------------
OneHanded | Disable->Enable | 32dp | 80dp
(Portrait) | Enable->Disable | 80dp | 32dp
-----------------------------------------------------
NO_BUTTON | Portrait->Landscape | 32dp | 32dp
NO_BUTTON | Landscape->Portrait | 32dp | 32dp
2 BUTTON | Portrait->Landscape | 48dp | 48dp
2 BUTTON | Landscape->Portrait | 48dp | 48dp
3 BUTTON | Portrait->Landscape | 48dp | 48dp
3 BUTTON | Landscape->Portrait | 48dp | 48dp
-----------------------------------------------------
* dimen : navigation_bar_gesture_height
Test: adb bugrepot | grep mOneHandedModeRegion
Test: manually triger one handed
Test: atest WindowInsetsBehaviorTests
Test: atest com.android.launcher3.memory.MemoryTests
Test: flake -once
Test: rnlot -t com.android.launcher3.memory.MemoryTests
Bug: 157958539
Bug: 159183864
Change-Id: I19755938c3c93eb59a9f621af5722f5679c1da14
(cherry picked from commit 70b5ca2505 )
2020-07-21 09:59:44 -07:00
Winson Chung
1c1f5d9aef
Hook one-handed gesture to expand notification panel by default
...
Notify to expand notification panel through SystemUiProxy when
one-handed mode disabled and one-handed gesture detected.
Bug: 154080211
Test: make and install
Test: manual disable one handed mode and swipe down to trigger
Test: verified the gesture works even outside of home page
Change-Id: Iacc0e506ccd04dd81f6182759c8af7d686a7b77b
(cherry picked from commit dd3eb7d075 )
2020-07-21 09:59:43 -07:00
Tony Huang
a0dfbff96a
Enable one-handed mode gestural in QuickStep
...
Handling swipe-down/swipe-up gestural in device bottom area
for one-handed mode
1) The regsion is larger than gesture navigationbar view
2) One handed gestural in quickstep only active on NO_BUTTON, TWO_BUTTONS mode
3) One handed gestural only support on portrait mode
Bug: 150747547
Bug: 154189137
Bug: 156988988
Test: make and install
Test: manual enable one handed mode and swipe down to trigger
Test: manual start one handed and rotate device
Change-Id: I7b2447bfb2fe4082c95176b62934b98077b84920
(cherry picked from commit 7d375e31fe )
2020-07-21 09:59:43 -07:00
Samuel Fufa
5b832096e0
Merge "Fix hotseat file log name formatting" into ub-launcher3-rvc-qpr-dev am: 7dc81afc4d
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12193277
Change-Id: Ia80cd6eaaae4db92a964b2f3824cecd7c6bd34ad
2020-07-21 16:39:18 +00:00
Samuel Fufa
7dc81afc4d
Merge "Fix hotseat file log name formatting" into ub-launcher3-rvc-qpr-dev
2020-07-21 16:22:57 +00:00
Riddle Hsu
354b8fc081
Use display of activity to get rotation for recents
...
The rotation of WindowConfiguration in Configuration is non-public
field. There is no guarantee that the information will be updated.
E.g. a 180 degree rotation change won't make difference to the
public configurations, so the Resources will keep the old one.
The display rotation of activity is accurate to use for its content
because even the activity is transformed to different rotation than
the physical display, there is FixedRotationAdjustments to adjust
the information which will be consistent as how the activity is
laid out.
Bug: 159877752
Test: 1. Enable auto rotation.
2. Launch some portrait activities.
3. Put device in reverse portrait (upside down).
4. Launch a landscape activity.
5. Swipe to another activity with full-sensor orientation.
6. Return to home and enter recents to check the task views
of step 2 don't show upside down.
Change-Id: I5e16e71d43b8892a394c06de9e76fb3d4ad55919
2020-07-21 06:15:35 +00:00
TreeHugger Robot
175f8b99c6
Merge "Create a new instance of rotation touch helper per device state" into ub-launcher3-rvc-qpr-dev am: a64362ee73
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12193665
Change-Id: Ic7bb4172f923cae64535d1de4a38faf3cbcdbb25
2020-07-20 23:21:13 +00:00
TreeHugger Robot
a64362ee73
Merge "Create a new instance of rotation touch helper per device state" into ub-launcher3-rvc-qpr-dev
2020-07-20 23:19:26 +00:00
Samuel Fufa
7d6207e61b
Merge "Allow multiple hotseat restorations in single session" into ub-launcher3-rvc-qpr-dev am: 93802e2612 am: 32f5e99519
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12193279
Change-Id: I34f81041d4368c2ea03d579cd1a96d20ebd65374
2020-07-20 22:58:32 +00:00
Samuel Fufa
32f5e99519
Merge "Allow multiple hotseat restorations in single session" into ub-launcher3-rvc-qpr-dev am: 93802e2612
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12193279
Change-Id: Ib5fcde5f6abb8acd6443806775de236c341178a8
2020-07-20 22:42:11 +00:00
Samuel Fufa
93802e2612
Merge "Allow multiple hotseat restorations in single session" into ub-launcher3-rvc-qpr-dev
2020-07-20 22:27:36 +00:00
Winson Chung
5b7bf9147b
Create a new instance of rotation touch helper per device state
...
Change-Id: I4e4288eaf37aab5bf0b8115f5e06e64459c20f00
(cherry picked from commit 00850fb588 )
2020-07-20 22:05:46 +00:00
Samuel Fufa
bd1f4c6a76
Allow multiple hotseat restorations in single session
...
restoreBackup uses mBackupRestored to prevent multiple restorations happening at once. This change is required to reset the value of mBackupRestored if a new backup is created.
Bug: 160033826
Test: Manual
Change-Id: I33836b26cf3876955cc14dcc8ec06202f3fe7fac
2020-07-20 14:14:47 -07:00
Bill Yi
d5821326f8
Import translations. DO NOT MERGE ANYWHERE
...
Auto-generated-cl: translation import
Change-Id: I344fea4e320a851f0d04a3308c9f7f2dca4c934e
2020-07-20 14:00:53 -07:00
Winson Chung
00850fb588
Create a new instance of rotation touch helper per device state
...
Change-Id: I4e4288eaf37aab5bf0b8115f5e06e64459c20f00
2020-07-20 13:57:56 -07:00
Samuel Fufa
453475d568
Fix hotseat file log name formatting
...
Bug: 161001172
Test: Manual
Change-Id: Ia03eeb897003267ce608430c94b3b01876939234
2020-07-20 12:50:21 -07:00
Jon Miranda
a73b532e87
Fix bug where double swipe gets us stuck in Hint state while in Overview. am: a8c08584a7 am: 721d5c7cc7
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12173854
Change-Id: Iaab1df73b6f7a60ef829ec9372b71b0266641d50
2020-07-20 18:45:50 +00:00
Jon Miranda
a8c08584a7
Fix bug where double swipe gets us stuck in Hint state while in Overview.
...
With the second swipe, we never complete the swipe to Overview
NoButtonNavbarToOverviewTouchController#maybeSwipeInteractionToOverviewComplete
- mReachedOverview = true
- mDetector.isSettlingState = false
And then the second swipe starts the state transition to Hint but then
it never gets completed because:
1. The animation starts
2. Gets cancelled
3. Starts again
4. Finishes, but is not marked as success since the cancel in #2 was never
set back to false
Bug: 160759508
Change-Id: I8c3972e6209c3d5a4a0bdd9f9b7683de18105d57
2020-07-20 10:29:29 -07:00
TreeHugger Robot
d8181f4dd3
Merge "Removing workarounds for a fixed bug" into ub-launcher3-master
2020-07-18 19:38:56 +00:00
TreeHugger Robot
f9db9d321d
Merge "Notify TaskViews of updated orientation state" into ub-launcher3-rvc-qpr-dev am: dbca5a4190 am: 3857d2645f
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12142279
Change-Id: I1085f9a8652a38c3daa0fb83b4de2d8d84ba4364
2020-07-18 00:19:58 +00:00
TreeHugger Robot
dbca5a4190
Merge "Notify TaskViews of updated orientation state" into ub-launcher3-rvc-qpr-dev
2020-07-17 23:31:54 +00:00
TreeHugger Robot
f7ca580c99
Merge "Prevent showing TaskMenuView if icon isn't present" into ub-launcher3-rvc-qpr-dev am: 4b1d1a0f18 am: 3a80d76fac
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12130181
Change-Id: If090c1028ce2a6656390a93607a6d0822a09f97b
2020-07-17 23:06:12 +00:00
TreeHugger Robot
12dc76e76c
Merge "Move rotation logic to RotationTouchHelper" into ub-launcher3-rvc-qpr-dev am: eb2eb38cc2 am: eb682915f0
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12155343
Change-Id: Idd86a05c6b3d4a1765d53ccea81b509d7b779acb
2020-07-17 23:05:48 +00:00
Sreyas Rangaraju
c2ceba35c8
Merge "Disabling overview actions when thumbnail is not loaded." into ub-launcher3-rvc-qpr-dev am: e1037c63dd am: d84cdd36ab
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12160683
Change-Id: Ib90f7fa91ec6e74830466b662b45a0c7b0f6cd83
2020-07-17 23:05:43 +00:00
Sreyas
d246ad18da
Reset disabled flags when action buttons lose visibility. am: 0d2eea3316 am: e73bd5ed99
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12161695
Change-Id: If89964f90a2cf4d78e343d8514e08e92be9be6a3
2020-07-17 23:05:36 +00:00
Tony Wickham
60bc684060
Merge "Wait until activity present before calling onEndTargetCalculated()" into ub-launcher3-rvc-qpr-dev am: 032db3289a
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12141305
Change-Id: Ib91c86e49145874b481554fa2382678eb03e4239
2020-07-17 20:26:29 +00:00
Sunny Goyal
7d9c18392d
Merge "Preventing disambiguation screen when swiping up" into ub-launcher3-rvc-dev am: c031040a2f
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12141301
Change-Id: I59ec7dd9e689d4f3a712364a74f341d730f00f8e
2020-07-17 19:20:16 +00:00
TreeHugger Robot
21ff5c4ff0
Merge "Persist prediction cache on every update" into ub-launcher3-rvc-dev am: 1cc0010eba
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12077679
Change-Id: I5f2cbe314dfb249594a2dff70cda5188cad60fa1
2020-07-17 19:19:40 +00:00
Sunny Goyal
5d09b2e358
Updating some comments and variables
...
Change-Id: Ib3223c66e9ce187cebc6ce26a46b228f95787778
2020-07-17 18:58:49 +00:00
Sunny Goyal
12f46d521a
Fixing recents orientation (when home rotation is allowed) during swipe-up
...
Bug: 158781568
Bug: 160149607
Change-Id: I27be09febcdb6f19687469db34b002ce682aa0cb
Merged-In: I27be09febcdb6f19687469db34b002ce682aa0cb
(cherry picked from commit 141c231d2f )
2020-07-17 18:53:01 +00:00
TreeHugger Robot
1d96d2370f
Merge "Let AllAppsEduView consume touch until animation is done and view is removed." into ub-launcher3-rvc-qpr-dev am: 95c620c38d
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12121641
Change-Id: I70aa4d0ffa4dfd2ef21d7ea54a7293b4243cf1cd
2020-07-17 01:48:23 +00:00
TreeHugger Robot
30d771860e
Merge "Updating gesture tutorial home animation" into ub-launcher3-rvc-qpr-dev am: 24ddf21cea
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12117946
Change-Id: I6a86fd320482d9f3b894b8ff8eb5c7f0d5bdc9ca
2020-07-17 01:47:52 +00:00
TreeHugger Robot
d7ef768f51
Merge "Adding nullcheck while launching task during quickswitch" into ub-launcher3-rvc-qpr-dev am: 6381d38249
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12119527
Change-Id: I48126c4905e20135cdb7091777d9cdf0e2d5f6ba
2020-07-17 01:47:19 +00:00
Sreyas
5e19073c23
Fixing oav text overlap.
...
Bug: 159240113
Change-Id: I89d8249c21cca86f21cdf57a017745237b4b6cf1
2020-07-17 00:57:56 +00:00
TreeHugger Robot
4b1d1a0f18
Merge "Prevent showing TaskMenuView if icon isn't present" into ub-launcher3-rvc-qpr-dev
2020-07-17 00:04:41 +00:00
Sunny Goyal
852537fd98
Using StatsLog for notifyingAppPredictor
...
> Adding a listener in StartsLogManager for listening to events.
This allows events to be directored to the predictor only if
it is already running, instead of creating it.
> Unifying the event format to be same as hotseat predictor
Bug: 160748731
Change-Id: Ib00e6249ff642c030f00bcad5b748255e704d16a
2020-07-16 14:12:15 -07:00
Tony Wickham
94be66acd6
Fix tracking window being slightly off when swiping from an app
...
Test: swipe up from an app in landscape, seascape, and portrait,
and verify the window tracks with the finger 1:1 until pullback
Bug: 149934536
Change-Id: Ia469877e7152c8135e0b9153f69c191ba86cbd14
(cherry picked from commit f0a1b2ccd8 )
2020-07-16 20:03:36 +00:00
TreeHugger Robot
eb2eb38cc2
Merge "Move rotation logic to RotationTouchHelper" into ub-launcher3-rvc-qpr-dev
2020-07-16 05:14:25 +00:00
Vinit Nayak
0affd89031
Move rotation logic to RotationTouchHelper
...
No functional changes.
Fixes: 159764370
Change-Id: Ie7739a62242377bda69c86bd46e24d2f847f17e0
2020-07-15 22:03:14 -07:00
Sreyas Rangaraju
e1037c63dd
Merge "Disabling overview actions when thumbnail is not loaded." into ub-launcher3-rvc-qpr-dev
2020-07-15 23:31:51 +00:00
Sreyas
0d2eea3316
Reset disabled flags when action buttons lose visibility.
...
Bug: 159993889
Change-Id: Id2a38eee5de067d5e8f1df425644dfdcb3334cdb
2020-07-15 16:16:43 -07:00
Becky Qiu
928a421b99
Merging from ub-launcher3-master @ build 6682763
...
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-master_master_6682763.html
Change-Id: Ibff46b3ef7ff89accb459db323f31179adb4ef21
2020-07-15 20:50:57 +00:00
Sunny Goyal
6999bae7af
Fixing swiping up on home interrupting animation am: d481c5c58c am: 8d7fdfdd47
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12152002
Change-Id: I894bc770e300539f1e158d18513c55cebf7ec9c3
2020-07-15 19:56:58 +00:00
Sunny Goyal
d3f1736119
Fixing swiping up on home interrupting animation am: d481c5c58c am: 8d7fdfdd47
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12152002
Change-Id: Ie64f58e81a7b08756da10345983f268cb8edc676
2020-07-15 19:56:47 +00:00
Sunny Goyal
c3771e64d9
Fixing swiping up on home interrupting animation am: d481c5c58c
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12152002
Change-Id: I62a4e0cb58d2159730295129724b05cbfdc11af4
2020-07-15 19:56:21 +00:00
Sreyas
68330a93fa
Disabling overview actions when thumbnail is not loaded.
...
Bug: 160331177
Change-Id: I05eaec7d6f2e3f2ba71d8148a4e97dcf5a1522c6
2020-07-15 19:46:09 +00:00
Sunny Goyal
d481c5c58c
Fixing swiping up on home interrupting animation
...
Bug: 161180005
Change-Id: Ida59b87b2fb5905d98b0090630a6ce32fc9c36c8
Merged-In: Ida59b87b2fb5905d98b0090630a6ce32fc9c36c8
(cherry picked from commit 93188d61da )
2020-07-15 07:11:30 +00:00