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
Pinyao Ting
8dae83ee9b
Fix launcher crash after restore with some specific widgets.
...
The internal implementation of PendingAppWidgetHostView#getDefaultViews
uses the same view across updates which causes the exception in
AppWidgetHostView#applyContent when it tries to call addView() because
the view has already been added to its parent view in previous iteration.
Bug: 151901506
Test: manual
Change-Id: Ieccec814ac514e592d0d4f196b60ba89aec0d661
2020-07-21 00:57:17 +00:00
Pinyao Ting
f1af0171b7
Fix launcher crash after restore with some specific widgets.
...
The internal implementation of PendingAppWidgetHostView#getDefaultViews
uses the same view across updates which causes the exception in
AppWidgetHostView#applyContent when it tries to call addView() because
the view has already been added to its parent view in previous iteration.
Bug: 151901506
Test: manual
Change-Id: Ieccec814ac514e592d0d4f196b60ba89aec0d661
2020-07-20 17:55:14 -07:00
Jon Miranda
447ea429cd
Fix folder crash where view is added when it already has a parent.
...
The fix is to prevent re-arrangement if the views are already unbound.
This is caused when:
- Folder is open
- Item has deep shortcuts
- Long press on deep shortcut to create DragView that could land in the
folder if the folder did not auto close. This is important because it
starts a drag within the folder
The folder unbinds all views as part of the Folder close complete callback.
And then the folder exit alarm gets triggered (because we drag DragView
outside of the folder) which causes the folder items to get
rearranged and added back to the folder's CellLayout.
Bug: 161559911
Change-Id: I142589b2c541dc21c47a67c20a93e627732107ef
2020-07-20 16:54:17 -07:00
TreeHugger Robot
6f86e5078f
Merge "Create a new instance of rotation touch helper per device state" into ub-launcher3-rvc-qpr-dev am: a64362ee73 am: 175f8b99c6
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12193665
Change-Id: Ib17766c22de22c9b8fd0499f090240af71a0cdce
2020-07-20 23:39:33 +00:00
TreeHugger Robot
aaf4abd7b3
Merge "Fix bug where realtimeReorder is called after views have been unbound." into ub-launcher3-rvc-qpr-dev am: f55ccf4350 am: acecc0c3fc
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12196208
Change-Id: Id135a0d81cd6a37defe556058ffb51ddd475a7f7
2020-07-20 23:39:27 +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
acecc0c3fc
Merge "Fix bug where realtimeReorder is called after views have been unbound." into ub-launcher3-rvc-qpr-dev am: f55ccf4350
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12196208
Change-Id: I5cd9dd385457a223c4a2553b1857f3e3a2c00e9d
2020-07-20 23:21:07 +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
TreeHugger Robot
f55ccf4350
Merge "Fix bug where realtimeReorder is called after views have been unbound." into ub-launcher3-rvc-qpr-dev
2020-07-20 23:01:30 +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
Jon Miranda
0f620500b0
Fix bug where realtimeReorder is called after views have been unbound.
...
Bug: 161498651
Change-Id: I89beaad9a91bfa1763454965bf95ba1a94d29902
2020-07-20 15:28:25 -07: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
TreeHugger Robot
a1603ccdcd
[automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into ub-launcher3-rvc-dev am: 78d22259fe -s ours am: 6822ae9fae -s ours am: 46394d184f -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12195526
Change-Id: I9a821f10be8cc09ffddaa500d72afe2acf2b563f
2020-07-20 22:11:39 +00:00
Bill Yi
bef6300574
[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 25ed0dce25 -s ours am: 008c2d17c8 -s ours am: 0b42a8b5d1 -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12195530
Change-Id: Ie0d3e87429f5c8b46f1685737d4c262fbcf1b9b5
2020-07-20 22:11:33 +00:00
TreeHugger Robot
e7f7578d3d
[automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into ub-launcher3-rvc-qpr-dev am: f7dc18b7bd -s ours am: db642d038c -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12195527
Change-Id: I602d4005c0fcfc0349731c4015b87baa9b50c8ac
2020-07-20 22:11:27 +00:00
TreeHugger Robot
dfd300d154
[automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into ub-launcher3-rvc-qpr-dev am: 612b16a26b -s ours am: da674e7c95 -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12195532
Change-Id: I936dbddb00841a9eedcd3197f378e7d21154310c
2020-07-20 22:11:00 +00:00
TreeHugger Robot
46394d184f
[automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into ub-launcher3-rvc-dev am: 78d22259fe -s ours am: 6822ae9fae -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12195526
Change-Id: Ic305386dc05f98949587fc64640def27d3a91dae
2020-07-20 22:10:58 +00:00
TreeHugger Robot
6822ae9fae
[automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into ub-launcher3-rvc-dev am: 78d22259fe -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12195526
Change-Id: Id2840e90f68772eef8e126df22595059c7b73d7a
2020-07-20 22:06:03 +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
Winson Chung
355ceb1a1d
Merge "Create a new instance of rotation touch helper per device state" into ub-launcher3-master
2020-07-20 22:05:23 +00:00
TreeHugger Robot
78d22259fe
Merge "Import translations. DO NOT MERGE ANYWHERE" into ub-launcher3-rvc-dev
2020-07-20 21:56:52 +00:00
Bill Yi
0b42a8b5d1
[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 25ed0dce25 -s ours am: 008c2d17c8 -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12195530
Change-Id: I950b3ec7ea8d93ac2ee7dfb6984c7e4d66f93a41
2020-07-20 21:55:10 +00:00
TreeHugger Robot
db642d038c
[automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into ub-launcher3-rvc-qpr-dev am: f7dc18b7bd -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12195527
Change-Id: I597d40ec9f25519bbf1c105c2645ad42a5c2d697
2020-07-20 21:55:02 +00:00
TreeHugger Robot
da674e7c95
[automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into ub-launcher3-rvc-qpr-dev am: 612b16a26b -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12195532
Change-Id: Ifa3e8531aaf9975cda8258f34ac218cab6ba36a3
2020-07-20 21:54:50 +00:00
Bill Yi
008c2d17c8
[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 25ed0dce25 -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12195530
Change-Id: If7dfe29ab40a0cb420e8fe66245d72994295f132
2020-07-20 21:54:36 +00:00
Samuel Fufa
63c64097d9
Invalidate stale BgDataModel when predictions are disabled am: e47896cb91 am: adc8870aa1
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12193276
Change-Id: I9169f3a794bed745eb395ba938bca1ff847abdfc
2020-07-20 21:46:01 +00:00
TreeHugger Robot
f7dc18b7bd
Merge "Import translations. DO NOT MERGE ANYWHERE" into ub-launcher3-rvc-qpr-dev
2020-07-20 21:43:56 +00:00
TreeHugger Robot
612b16a26b
Merge "Import translations. DO NOT MERGE ANYWHERE" into ub-launcher3-rvc-qpr-dev
2020-07-20 21:41:06 +00:00
Samuel Fufa
adc8870aa1
Invalidate stale BgDataModel when predictions are disabled am: e47896cb91
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12193276
Change-Id: I840a11ea2986d9e7c0d95ec7c5ad7e738e2dd0a7
2020-07-20 21:26:20 +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
19496b916b
Import translations. DO NOT MERGE ANYWHERE
...
Auto-generated-cl: translation import
Change-Id: I4c326e8cf15da316393c3be70f6b1c8dfc559a52
2020-07-20 14:03:37 -07:00
Bill Yi
25ed0dce25
Import translations. DO NOT MERGE ANYWHERE
...
Auto-generated-cl: translation import
Change-Id: Ic9168efed903a1cc61b770bc32d754ca1858b3df
2020-07-20 14:02:54 -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
Bill Yi
a92c6bb531
Import translations. DO NOT MERGE ANYWHERE
...
Auto-generated-cl: translation import
Change-Id: I2ac85ce81a99d87d613ed1490c591d90323889f2
2020-07-20 14:00:14 -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
TreeHugger Robot
44b72984e6
Merge "Removing diags for a fixed flake" into ub-launcher3-master
2020-07-20 20:27:09 +00: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
TreeHugger Robot
0abeb31ca3
Merge "Introducing a new gesture scope" into ub-launcher3-master
2020-07-20 19:50:19 +00:00
Samuel Fufa
e47896cb91
Invalidate stale BgDataModel when predictions are disabled
...
Launcher stores ItemInfos for cached predictions in list BgDataModel.cachedPredictedItems on Launcher start (LoaderTask#run). The list reused if launcher has to rebind UI. Hence, the list should be cleared if launcher receives empty predictions.
Bug: 161245294
Test: Manual
Change-Id: I275655d5f52f6a6e5297473dd2f642728c1964a6
2020-07-20 12:41:07 -07:00
vadimt
665232be61
Removing diags for a fixed flake
...
Bug: 160238801
Change-Id: Ia166eb1f154ddeeb70da5a141c9e985a265ba49a
2020-07-20 12:24:50 -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
721d5c7cc7
Fix bug where double swipe gets us stuck in Hint state while in Overview. am: a8c08584a7
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12173854
Change-Id: I2d28a41aff760ce884d46ce2d0fc6f9b2da8152b
2020-07-20 18:28:15 +00:00