Commit Graph

34041 Commits

Author SHA1 Message Date
Sunny Goyal 831212ec92 Adding support for overriding long-press menu in Launcher
Bug: 188222480
Test: Manual
Change-Id: Ic0b425fafde8beedc15a5aa42a8897b9143a3309
2021-07-30 16:07:26 -04:00
Alex Chau 6951aef060 Fix Launcher3 tests for tablets
- Consider taskbar size for bottom gesture size, by using TargetInsets
- TargetInsets should substract overlapping taskbar size when it's present
- For pressHome, use the same gesture scope when context menu is present as well.
- For pressHome, GestureScope.INSIDE_TO_OUTSIDE should only be used when it's already at home screen on launcher3 tablet.

Bug: 193539246
Test: NexusLauncherTest and Launcher3Test
Change-Id: I4a20522f3b38ef326acae4b189df11a125990411
2021-07-30 20:39:05 +01:00
Alex Chau 3379200d40 Merge "Always treat FallbackRecentsView as visible if isInLiveTileMode is true" into sc-dev am: e20208e9d1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15429930

Change-Id: I26663e9ff719855fcb55249aa877309494105ba0
2021-07-30 18:02:38 +00:00
Vinit Nayak 51a6c92174 Migrate from using taskIDs to taskViewIDs in RecentsView
* Follow up CL coming to introduce a TaskView that
can have multiple Tasks, so a taskID won't be particularly useful
in that scenario.

Bug: 192292305
Test: Manual, w/ and w/o live tile
Change-Id: I1900b999ac51aa99923239f2af400c90c71c3dae
2021-07-30 11:02:26 -07:00
Alex Chau e20208e9d1 Merge "Always treat FallbackRecentsView as visible if isInLiveTileMode is true" into sc-dev 2021-07-30 17:53:34 +00:00
Bill Yi 221768ba7d [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: da8bf1142f -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15427655

Change-Id: I1361c4d865bbe8daab0f543aece77ea8978df14a
2021-07-30 14:47:57 +00:00
Steven Ng a54535b8f5 Merge "Use the right content to estimate the span in WidgetsFullSheet" into sc-v2-dev 2021-07-30 14:12:00 +00:00
TreeHugger Robot 9e08d559a4 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-07-30 14:11:50 +00:00
Steven Ng 3edfa98ba7 Use the right content to estimate the span in WidgetsFullSheet
Test: Manual
Fix: 194784402
Change-Id: I150f4c7b5a0344caa2bea3f1502894cb0f32e208
2021-07-30 13:15:26 +01:00
TreeHugger Robot 02d45252f3 Merge "Fix cell size calculation in large screen devices" into sc-v2-dev 2021-07-30 11:39:26 +00:00
Steven Ng 2a5c594855 Fix cell size calculation in large screen devices
Test: Digital clock widget is no longer cropped.
Bug: 184966000, 194784402
Change-Id: I26c406da1e10232019f34620a4d2bc0dbafcbb31
2021-07-30 11:14:11 +01:00
András Klöczl 7f569f14b4 Merge "Fix controller navigation on two panel launcher home" into sc-v2-dev 2021-07-30 08:43:27 +00:00
Alex Chau fb5ae9060d Always treat FallbackRecentsView as visible if isInLiveTileMode is true
- activity.hasBeenResumed is no longer an accurate indicator after live tile has been introduced, indeed it's always false
- Return recentsView regardless if there is a runningTask as well

Bug: 194286330
Test: In fallback Recents with 3 button, tap overview button from home screen, then tap overview button again. Try combination with back and home button
Change-Id: Ib2775a11f5466abc433763f24192e7bfdcf191a2
(cherry picked from commit 455718e842)
2021-07-30 08:22:03 +00:00
Bill Yi 942331fd18 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Idf735446d5b173d6c9b2718e8225ee1aa86c1579
2021-07-30 04:59:54 +00:00
Bill Yi da8bf1142f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I13dab850677f614cab804cae0b3125c93c55eeed
2021-07-30 04:59:15 +00:00
Alex Chau 2095731650 Merge "Always treat FallbackRecentsView as visible if isInLiveTileMode is true" into sc-v2-dev 2021-07-29 22:44:30 +00:00
TreeHugger Robot eb6391ff8d Merge "Fixing hotseat hidden in 3P Launcher" into sc-v2-dev 2021-07-29 21:51:39 +00:00
Tracy Zhou dc69cfdeba [automerger skipped] Merge "Clear command queue of OverviewCommandHelper on home tap" into sc-dev am: dec3330a83 -s ours
am skip reason: Merged-In Id83b341245793c38c305e6ada5581ac4e49527a7 with SHA-1 86bd1dce8d is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15416225

Change-Id: I4bdf382fe29d0202cf1c33a2e29eeb894c9b6e63
2021-07-29 21:50:33 +00:00
Tracy Zhou dec3330a83 Merge "Clear command queue of OverviewCommandHelper on home tap" into sc-dev 2021-07-29 21:32:22 +00:00
Andras Kloczl 7e91244a1b Fix controller navigation on two panel launcher home
Test: manual test with a game controller, check on both normal and two panel home
Bug: 187205980
Change-Id: I2515e476556098acf407c0bdcd634e3dd1cb308c
2021-07-29 22:04:27 +02:00
Sunny Goyal 71ef9683db Fixing hotseat hidden in 3P Launcher
Bug: 193539246
Test: Manual
Change-Id: I3e756457710f2a3909623c7eeec457319eb6c3b8
2021-07-29 13:00:19 -07:00
Jon Spivack aa10ba9d0b NIU Actions: Change AppTheme to LauncherTheme am: d317f17273
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15413718

Change-Id: I4b9f0acb7338b56f1683180b4d068239d30398be
2021-07-29 19:49:39 +00:00
Tracy Zhou 6842315605 Clear command queue of OverviewCommandHelper on home tap
Fixes: 194934483
Test: manual
Change-Id: Id83b341245793c38c305e6ada5581ac4e49527a7
Merged-In: Id83b341245793c38c305e6ada5581ac4e49527a7
2021-07-29 19:09:53 +00:00
Tracy Zhou 64231c8db1 Merge "Clear command queue of OverviewCommandHelper on home tap" into sc-v2-dev 2021-07-29 19:09:39 +00:00
TreeHugger Robot b2f8f42510 Merge "Removing GridMigrationTask-v1 since it has been disabled for a while" into sc-v2-dev 2021-07-29 18:37:15 +00:00
Tracy Zhou 86bd1dce8d Clear command queue of OverviewCommandHelper on home tap
Fixes: 194934483
Test: manual
Change-Id: Id83b341245793c38c305e6ada5581ac4e49527a7
2021-07-29 17:23:01 +00:00
Alex Chau bf89b27f90 Merge "Clean up screen record for tests" into sc-v2-dev 2021-07-29 17:00:12 +00:00
Evan Rosky ee75a0f8be Enable input window rotation flag
Bug: 179274888
Test: no-changes, all existing tests pass
Change-Id: Ib0699449cf87fbf0c5e1b76fff57fab7bf1ffb8b
2021-07-29 16:33:22 +00:00
Thales Lima 3c1a1195b4 Merge "launcher: change default state for RecentsActivity" into sc-v2-dev 2021-07-29 12:13:50 +00:00
Alex Chau 27ee6447db Clean up screen record for tests
- Add new record and remove obsolete ones

Bug: 193440212
Bug: 193125090
Bug: 192005114
Test: manual
Change-Id: I860c42961e710e1542d9d911338dd359896b6970
2021-07-29 11:01:09 +01:00
Alex Chau 455718e842 Always treat FallbackRecentsView as visible if isInLiveTileMode is true
- activity.hasBeenResumed is no longer an accurate indicator after live tile has been introduced, indeed it's always false
- Return recentsView regardless if there is a runningTask as well

Bug: 194286330
Test: In fallback Recents with 3 button, tap overview button from home screen, then tap overview button again. Try combination with back and home button
Change-Id: Ib2775a11f5466abc433763f24192e7bfdcf191a2
2021-07-29 08:42:37 +00:00
Sunny Goyal e6935d895a Merge "Simplifying color extraction registration logic" into sc-v2-dev 2021-07-29 06:53:15 +00:00
Jon Spivack d317f17273 NIU Actions: Change AppTheme to LauncherTheme
Some theme attributes used for the NIU Actions Overview were originally defined in a theme that inherited from LauncherTheme. However, 3rd-party Launchers that also used themes derived from LauncherTheme were unable to access these attributes, leading to crashes when they tried to open the Recents screen on Go devices. Just adding the attributes to LauncherTheme solves this issue.

Bug: 194810415
Test: Manual (tried a couple 3rd-party launchers on Wembley)
Test: m -j RunLauncherGoGoogleRoboTests
Change-Id: I7a2541f2a2ab3b39e0c6cf2fe40a4b096047df70
2021-07-28 19:14:03 -07:00
Sunny Goyal 278939fdf3 Removing GridMigrationTask-v1 since it has been disabled for a while
Also removing some data migration support

Bug: 194937047
Test: Presubmit
Change-Id: I392a5f6e49ec170f63056a7664de47229896f390
2021-07-28 15:55:43 -07:00
Sunny Goyal 69a8eecdc9 Simplifying color extraction registration logic
> Calulating correct location irrespective of transient
  state (scale/translation)
> Removing extraction pause/resume logic
> Simplifying location calculation and registration (only use one location instead of a list)

Bug: 194732483
Test: Manual
Change-Id: I255d83761bff5e09c9fb0a5e398d0be0c1d0956f
2021-07-28 15:43:13 -07:00
Lucas Dupin 6d80cafc68 Merge "Add depth to -1 screen" into sc-v2-dev 2021-07-28 21:40:42 +00:00
Jon Miranda 80dda30f49 Add more restrictions on whether we increase the hotseat size for tall devices.
Bug: 194688362
Test: test devices that should not be affected, ensure they are not affected
Change-Id: I0e027354dbafcce30cf616998d2a7bfab516b5de
2021-07-28 14:20:59 -07:00
Schneider Victor-tulias 7889887b56 Merge "Fix incorrect PreloadIconDrawable initialization." into sc-v2-dev 2021-07-28 20:43:01 +00:00
TreeHugger Robot d750d16b69 Merge "Let TaskbarDragView scale up before switching to system drag view" into sc-v2-dev 2021-07-28 19:52:43 +00:00
Lucas Dupin 87d752062e Add depth to -1 screen
Wallpaper will zoom out as you drag the overlay

Test: manually pull overlay
Fixes: 192502999
Change-Id: I9067b70d10497d4e16a5ef601161fbedfa9307e1
2021-07-28 12:36:31 -07:00
Schneider Victor-tulias 2b10cb2b69 Fix incorrect PreloadIconDrawable initialization.
Fixes: 194435394
Test: tapped installing icon then went home with airplane mode on and off
Change-Id: I0dca790bbaf710a7dcbb3a30758174304ede3a38
2021-07-28 18:35:24 +00:00
Tony Wickham 27ab9d96eb Let TaskbarDragView scale up before switching to system drag view
Test: Long press taskbar icons, ensure they aniamte the scale up
Fixes: 182981908
Change-Id: I573fe66c93ebf995b3f56f2c003dee987687b6a7
2021-07-28 08:03:14 -10:00
Thales Lima 0cdf92f90c launcher: change default state for RecentsActivity
When the user presses the home button, because fallback Recents doesn't
have a way to change the state, we rely on `onStop` to reset the state.
This makes the state be cleared correctly.

Fixes 192254944
Test: follow the bug

Change-Id: I177b09392214d078373e3852517b57d9172d944d
2021-07-28 16:03:43 +00:00
TreeHugger Robot b574095bf8 Merge "Nullify mParallelRunningAnim after it ends to avoid updating it" into sc-v2-dev 2021-07-28 11:30:54 +00:00
Alex Chau 8e83f31100 Merge "Tune Overview size according to VisD" into sc-v2-dev 2021-07-28 10:41:16 +00:00
Tony Wickham c35c6b8863 Nullify mParallelRunningAnim after it ends to avoid updating it
Keeping the stale reference after the animation ends is dangerous because if we call end() on it, it will jump to the now-obsolete end value.

Test: atest NexusLauncherTests:com.android.launcher3.memory.MemoryTests#testAppLaunchFromWorkspace
Bug: 193440212
Change-Id: I8ca45db7ceec2d6e6a9c6e69a6e0359fd73a7d27
2021-07-27 22:06:00 -10:00
TreeHugger Robot 338055c8bc [automerger skipped] Merge "Enables Enhanced Smartspace by default." into sc-dev am: ce4bdd3561 -s ours
am skip reason: Merged-In Iffc6ae9b79db47d0585486529d2d8dfdf0a24692 with SHA-1 02db569cad is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15365093

Change-Id: If8adaccc88c521912ae20bb8b89f83e26a19a38d
2021-07-28 00:15:58 +00:00
TreeHugger Robot ce4bdd3561 Merge "Enables Enhanced Smartspace by default." into sc-dev 2021-07-28 00:01:31 +00:00
Andy Wickham 2afb784531 Enables Enhanced Smartspace by default.
Test: MemoryTests.java, manual
Bug: 187428578
Merged-In: Iffc6ae9b79db47d0585486529d2d8dfdf0a24692
Merged-In: I497523aa1be78e4d0890a7a74a1bd08d4ca50f50
Change-Id: I497523aa1be78e4d0890a7a74a1bd08d4ca50f50
2021-07-27 12:34:55 -10:00
TreeHugger Robot 83ba333604 Merge "Do not allow add view in DeferredAppWidgetHostView" into sc-v2-dev 2021-07-27 18:19:51 +00:00