Sihua Ma
e04aa207f2
Resize preview for correct clipping
...
Before, the remote view for the widget in launcher is reused to generate a new preview. However, measuring the view without changing the scale would cause strange clippings. This CL sets the scale of the widget views by manually computing the size ratio.
Change ag/19572297 is necessary before a complete clean-up.
Test: Create a weather widget on first screen -> go to Wallpaper & style -> App grid -> tap on a different grid and verify that the clipping is correct
Fix: 228328759
Change-Id: I8242d3bcfcf30ec924552c1320e22f8a3592f1c1
2022-08-09 23:57:41 +00:00
Vinit Nayak
8a3d05587e
Show 3 button nav on phone in Taskbar (1/2)
...
* TODO: Landscape/seascape support,
Separate nav spacing out into
separate class/add tests
Bug: 219035565
Change-Id: I8f5c007f04ea4d6df15962772806356181d764ff
2022-08-09 13:25:50 -07:00
Alex Chau
ccc430e2c1
Detect potential WindowConfiguration change at onApplyWindowInsets
...
- Invoke onConfiguration when receiving inset changes
- In Laucnher/RecentsActivity onConfiguration, additionally detect for windowConfiguration's rotation change; if Configuration stays the same, it'll be ignored.
Bug: 240730723
Test: manual on 90/180 degree rotation in Launcher and RecentsActivity
Change-Id: I7087878af847d62e1c715a4f52a18818d1a6c258
2022-08-09 19:09:42 +01:00
Andras Kloczl
eb6a154230
Fix widget jump bug when moved to invalid place
...
When dropTargetLayout is null we don't need to
animate the widget to the closest location but
move it back to its original position.
Test: manual
Bug: 236135424
Change-Id: I50a793732cd9656605fdc9908f71ff0efa7e69e9
2022-08-09 10:53:33 +02:00
András Klöczl
6410602190
Merge "Fix flaky two panel TAPL tests v2"
2022-08-09 08:40:57 +00:00
Luca Zuccarini
7f2388ce31
Merge "Update keyboard dismissal logic in the AllAppsTransitionController." into tm-qpr-dev am: 96945fcc24 am: 82c2040047
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18868377
Change-Id: Ib32ddc1ea0003ab8c9b26a021db645c61db18450
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-08-08 15:15:11 +00:00
Luca Zuccarini
96945fcc24
Merge "Update keyboard dismissal logic in the AllAppsTransitionController." into tm-qpr-dev
2022-08-08 14:34:51 +00:00
Thales Lima
c0268f4f49
Merge "Calculate hotseat width based on available width" into tm-qpr-dev am: c92b40f10a am: a1afc2313f
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19416116
Change-Id: I3d503774a1cd8e797c96334b51f7af25cfcb1a30
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-08-08 09:40:48 +00:00
Thales Lima
c92b40f10a
Merge "Calculate hotseat width based on available width" into tm-qpr-dev
2022-08-08 08:57:20 +00:00
Sunny Goyal
eede50377e
Merge "Dumping view capture directly to file instead of loading it all in memory" into tm-qpr-dev am: 68ef8bf37a am: 38b9216e1b
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19536173
Change-Id: Ic4b5658f6b252f891063dfbcd3149a68f9c45b86
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-08-06 06:02:33 +00:00
Sunny Goyal
68ef8bf37a
Merge "Dumping view capture directly to file instead of loading it all in memory" into tm-qpr-dev
2022-08-06 05:14:16 +00:00
Sunny Goyal
a30cf8b7e1
Dumping view capture directly to file instead of loading it
...
all in memory
This avoid OOM when processing large data
Bug: 241600398
Test: Verified on device
Change-Id: I76072d52e47bea3a2f9802ce3b23ddae58fe8d23
2022-08-05 16:30:01 -07:00
Luca Zuccarini
7e02d6845e
Introduce a new flag to guard keyboard synchronization.
...
Bug: 234812580
Test: manual
Change-Id: I1c8714fa68cde06b95f6a7822075188c7dc2f71f
2022-08-05 12:20:14 +00:00
Luca Zuccarini
c7114defc7
Update keyboard dismissal logic in the AllAppsTransitionController.
...
Dismissing the keyboard immediately interferes with the synchronized
keyboard animation. Instead, we wait until the end of the animation and
if it is successful (transition actually happened and wasn't
interrupted) we hide the keyboard. This call does nothing if the
keyboard was already hidden through the synchronized animation, and
hides it otherwise.
Bug: 234812580
Test: manual
Change-Id: Idabbc707dd0244bdf75316777e945624a8e8bdfc
2022-08-05 12:20:08 +00:00
Pat Manning
5b231b11b1
Merge "Remove scaling from spring loaded y translation." into tm-qpr-dev am: 67fe05beaf am: 3c7d220a0b
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19528333
Change-Id: I41134322cf3b2d654d8dc8180ad19ff54100c073
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-08-05 11:24:04 +00:00
Pat Manning
67fe05beaf
Merge "Remove scaling from spring loaded y translation." into tm-qpr-dev
2022-08-05 10:34:30 +00:00
Thales Lima
84fa75cc7d
Show resize handle on cancel widget drop
...
Fix: 233834133
Test: manual on handheld and large screens, until we have create a way to resize widgets in TAPL b/241385885
Change-Id: I427dfaadd219d33a5371c3ae92c4e2311d3d3c6a
2022-08-05 10:30:37 +00:00
Alex Chau
137c0e1e2e
Merge "Adjust height of tablet AllApps base on row height" into tm-qpr-dev am: b0f42f03bf am: 16ac12b450
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19416113
Change-Id: I74473373191600555cd9154dc3aa0fc95477ca7d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-08-04 14:40:46 +00:00
Thales Lima
9938c2f791
Calculate hotseat width based on available width
...
Navigation buttons take space on the hotseat, so hotseat width (qsb width and border space between icons) should be calculated instead of having a coded value.
Bug: 223724516
Bug: 228998463
Test: manual, changing display size
Test: manual, changing hotseatBarEndOffset value
Test: HotseatWidthCalculationTest
Change-Id: Ibd4f5ff2e06afda8e7420fb744db049d2e418e14
2022-08-04 15:21:06 +01:00
Alex Chau
b0f42f03bf
Merge "Adjust height of tablet AllApps base on row height" into tm-qpr-dev
2022-08-04 13:55:06 +00:00
Pat Manning
9fd69c0d42
Remove scaling from spring loaded y translation.
...
Fix: 239401465
Test: manual. To follow up with screenshot test: b/241386128
Change-Id: I916fcca22f5c827e1af38a50847585afcefc330d
2022-08-04 14:53:35 +01:00
Alex Chau
206ede9c1f
Adjust height of tablet AllApps base on row height
...
- Also used hotseatQsbHeight for AllApps QSB height as they have to match to transform between each other
Fix: 232907846
Test: manual on different tablets
Test: atest DeviceProfileTest
Change-Id: I001d0e129db2a5de6c8ace4c3302381110da03f1
2022-08-03 15:29:22 +00:00
TreeHugger Robot
98fd9c0da3
Merge "Account for span greater than 1 in getReorderRadius" into tm-qpr-dev am: 89b8f65277 am: eaeceb9b7b
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19441591
Change-Id: I379fa83f94a542bc478bb659fd82b38c5eae6fa5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-08-03 14:49:44 +00:00
Sunny Goyal
4d83501f4a
Merge "Removing unused ShadowDrawable" into tm-qpr-dev am: 41321dfe71 am: 7e0795609f
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19506676
Change-Id: Ice81f1a10f5dd6be83efaa938c978310990e312b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-08-03 14:49:32 +00:00
Sunny Goyal
f4d0a0ba70
Merge "Create less number of dot-renderers at startup" into tm-qpr-dev am: f28c428050 am: e00fc434f0
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19498070
Change-Id: If53c5b0c7977b6570c14bf9aac6efe7802728f48
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-08-03 14:49:21 +00:00
TreeHugger Robot
89b8f65277
Merge "Account for span greater than 1 in getReorderRadius" into tm-qpr-dev
2022-08-03 14:12:45 +00:00
Sunny Goyal
41321dfe71
Merge "Removing unused ShadowDrawable" into tm-qpr-dev
2022-08-03 14:08:52 +00:00
Sunny Goyal
f28c428050
Merge "Create less number of dot-renderers at startup" into tm-qpr-dev
2022-08-03 14:08:07 +00:00
Sunny Goyal
ea6d59fbd4
Removing unused ShadowDrawable
...
Bug: 241152608
Test: Presubmit
Change-Id: Iae3b3799959dfe3457791cfac88a2cb4ac5770a4
2022-08-02 14:58:25 -07:00
Sunny Goyal
65190aef37
Create less number of dot-renderers at startup
...
Bug: 235568943
Test: Launcher starts and shows dots normally
Change-Id: I6958b9b98efb43aa280e6ce31af9c0c936610dea
2022-08-02 14:43:31 -07:00
Sunny Goyal
c5c7da9a8b
Removing some obsolete features
...
PROMISE_APPS_NEW_INSTALLS = true
ENABLE_QUICKSTEP_WIDGET_APP_START = true
FOLDER_NAME_SUGGEST = true
ENABLE_PREDICTION_DISMISS = true
HOTSEAT_MIGRATE_TO_FOLDER = false
ENABLE_DEEP_SHORTCUT_ICON_CACHE = true
ENABLE_THEMED_ICONS = true
ENABLE_ALL_APPS_EDU = true
EXPANDED_SMARTSPACE = false
Bug: 241141733
Test: Presubmit
Change-Id: I72c0c20ab7e214994dc3c3665c90e85d45991a7a
2022-08-02 13:38:38 -07:00
Sihua Ma
1d8b7cba31
Showing Toast message when the target package is null for the disabled shortcut
...
The shortcut for a certain set of apps could have their component names set to null. In this case, if we still need the package name for the shortcut, we should use the package name from the intent, which is accomplished in getTargetPackage. Additionally, if the target package is still null, we are falling back to showing the Toast messages only.
Fix: 239685630
Test: Verified that the crash no longer happens after clicking on grayed out shortcuts
Change-Id: I4de68ea1a227032e16e5c00407f75159a7aba30f
2022-08-02 11:17:29 -07:00
Vinit Nayak
e677538171
Use Taskbar window for phones (only works on gesture nav) with flag am: 7db37b3d94 am: b197ea0c25
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18801667
Change-Id: If22f89319b68b9b13422a3b5e3e9ae855d22731e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-08-02 04:30:54 +00:00
Vinit Nayak
7db37b3d94
Use Taskbar window for phones (only works on gesture nav) with flag
...
* Try to avoid re-creating TaskbarActivityContext to
avoid re-inflating taskbar views
* Toggle via Flipper App (key 1101)
OR adb shell setprop persist.wm.debug.hide_navbar_window 1 && adb reboot
TODOs
* Only works for gesture nav, not 3 button
* Sampling on phone doesn't always work.
Bug: 219035565
Change-Id: I2a015f99d5f1fe86d7261eec9fd898bd4480ff9f
2022-08-01 17:48:09 -07:00
Schneider Victor-tulias
fa4bca182b
Merge "Add logging to help debug additional app infos being updated by CacheDataUpdatedTask" into tm-qpr-dev am: 4eec22f818 am: 187b9ef0f5
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19462408
Change-Id: I862086421d6d67f229674b5ff96774149323aecf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-08-01 22:43:44 +00:00
Schneider Victor-tulias
4eec22f818
Merge "Add logging to help debug additional app infos being updated by CacheDataUpdatedTask" into tm-qpr-dev
2022-08-01 21:50:09 +00:00
TreeHugger Robot
ae670bdc53
Merge "Remove unused logs" into tm-qpr-dev am: f47491bdf8 am: 4397dec83d
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19417493
Change-Id: I9d8343bba0e5708c0629434abf0e0319c8bf8405
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-08-01 21:07:33 +00:00
TreeHugger Robot
f47491bdf8
Merge "Remove unused logs" into tm-qpr-dev
2022-08-01 20:29:53 +00:00
Alex Chau
e62dbea9ad
Merge "Refactor DeviceProfile tests based on dump() and use real device dimensions for tests." into tm-qpr-dev am: ceb2aaa9e4 am: a8b1b20f70
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19356826
Change-Id: I22e17e64a30c44e42fa17e1f130143054e30adf8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-08-01 18:50:08 +00:00
Pat Manning
5f74bfd76d
Refactor DeviceProfile tests based on dump() and use real device dimensions for tests.
...
- Added roundPxValueFromFloat when converting dp/sp to px to deterministically round up values around .5
Fix: 240133465
Bug: 237542518
Test: DeviceProfileTest.kt
Change-Id: If4239f714487fe5bf2ef44274e2ce415bd75c86d
2022-08-01 17:54:43 +00:00
TreeHugger Robot
e4f4ed218c
Merge "Fixing search behavior in Launcher3" into tm-qpr-dev am: 8157be497d am: 3e5b0dd39d
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19451873
Change-Id: Id43e98acb1065c72da88b4f8913201888dcbc940
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-07-29 21:02:01 +00:00
Sebastian Franco
6e1024e161
Account for span greater than 1 in getReorderRadius
...
Fix: 239963678
Test: Making sure the reorder preview is being drawn when moving a widget
Test: atest ReorderWidgets
Change-Id: Id32919821ac9177b3428261354d361c52b8f9e2d
2022-07-29 13:47:33 -07:00
Schneider Victor-tulias
1dbffe0af7
Remove unused logs
...
Fixes: 240173459
Test: Started launcher
Change-Id: I853d9a50a0c34a7fdda87ea20d46a9f7ac7542e3
2022-07-29 13:06:24 -07:00
TreeHugger Robot
8157be497d
Merge "Fixing search behavior in Launcher3" into tm-qpr-dev
2022-07-29 19:48:34 +00:00
Jeremy Sim
c9919c90a4
Merge "Update animations for TM-QPR: OverviewSplitSelect > Home transition" into tm-qpr-dev am: b7a781b599 am: 67c895776d
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19224802
Change-Id: I9e684eff49cea2edce34917c02413cc1cf688f08
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-07-29 19:39:47 +00:00
Jeremy Sim
c8e159d4cc
Merge "Update calculation method for Overview UI placement on tablets" into tm-qpr-dev am: fe5bccbf6f am: 1b468babdc
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19289801
Change-Id: Ic97e19a97a19a1a1379c929fd8e9f5e8d0f8f77f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-07-29 19:38:59 +00:00
TreeHugger Robot
197508c120
Merge "Listen to DisplayController for ignoreAutoRotateSettings" into tm-qpr-dev am: f49287d627 am: 1ba7282333
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19429918
Change-Id: I664401712cbad5c3eb373827ae5f79dec65e6652
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-07-29 19:06:39 +00:00
Jeremy Sim
b7a781b599
Merge "Update animations for TM-QPR: OverviewSplitSelect > Home transition" into tm-qpr-dev
2022-07-29 18:57:00 +00:00
Jeremy Sim
fe5bccbf6f
Merge "Update calculation method for Overview UI placement on tablets" into tm-qpr-dev
2022-07-29 18:56:40 +00:00
TreeHugger Robot
f49287d627
Merge "Listen to DisplayController for ignoreAutoRotateSettings" into tm-qpr-dev
2022-07-29 18:05:17 +00:00