Commit Graph

21645 Commits

Author SHA1 Message Date
Hyunyoung Song cec2df62b2 Merging ub-launcher3-qt-dev, build 5456758
Test: Manual

Bug:111142970 Icon display blur in all apps page
Bug:114136250 Have a more spartan RecentsActivity on android go
Bug:122609330 Update PIP animation for swiping up to home
Bug:123985787 Respect dialogCornerRadius for all apps / widgets / settings / shortcut menu / dwb / task / overview (everything)
Bug:126587956 Create an app to use with Launcher testing
Bug:126606858 In multiwindow mode, not able to switch between recent apps.
Bug:127766994 Gray app icons disappeared after completing cable transfer for a while
Bug:127987071 Create a proper contract for specifying default Launcher Layout
Bug:129033091 [Q-Preview] I would like the ability to swipe up anywhere on my screen to open up the app li.
Bug:129297464 [Gesture Nav] Exclude edges from most Launcher / Overview states.
Bug:129434166 Lab-only flake: drag to workspace doesn't happen
Bug:129746879 [Q-Preview] Quick search bar overlaying other app
Bug:129874298 Show different string (Wallpaper vs Style & Wallpaper) on Settings depending on device type
Bug:129947426 nexus launcher crash observed randomly during device boot up(NPE:Attempt to invoke virtual method 'android.app.ActivityManager$RunningTaskInfo com.android.systemui.shared.system.ActivityManagerWrapper.getRunningTask(int)' on a null object reference)
Bug:129976669 Implement returning to home from Widgets in 0-button mode Bug:130027168 Can't tap in nav region on home screen
Bug:130151609 Some tests in MultiDisplaySystemDecorationTests.java failing in pre-submit
Bug:130182878 Pixel launcher crashes on secondary display
Bug:130225926 Cannot unpin app while in gesture nav
Bug:130245920 Icons disappear from launcher when selected
Bug:130272454 [C1/B1] Message app crash when opening a video MMS.
Change-Id: I18aa35d2c75deaf5149358d96d4e1d7f26de2f02
2019-04-10 23:51:57 +00:00
Winson Chung 5d7694c237 Merge "Check before the user is unlocked before handling proxied events" into ub-launcher3-qt-dev 2019-04-10 23:15:00 +00:00
Tony Wickham d807724de2 Merge "Track window for 2 button nav as well as 0 button" into ub-launcher3-qt-dev 2019-04-10 23:06:51 +00:00
Tony Wickham 8e5c13f360 Track window for 2 button nav as well as 0 button
This allows us to revert the change that fades in the shelf during swipe
up in 2 button mode, since the shelf doesn't show up until the window is
out of the way anyway.

Bug: 129746879
Change-Id: I929d8095989f9eae32d71b5bc3f67997e9df4ba0
2019-04-10 15:36:07 -07:00
TreeHugger Robot 2513835484 Merge "Fix bug where app icons stay invisible after app open animation." into ub-launcher3-qt-dev 2019-04-10 22:34:09 +00:00
Winson Chung 43b758c454 Check before the user is unlocked before handling proxied events
Bug: 130272454
Test: None, just checking for null state
Change-Id: I6b5a5c0dc7a0dbd8d2d75decd4e7d7ddf6cc3e3d
2019-04-10 15:30:01 -07:00
Jon Miranda d53a9bf8a0 Fix bug where app icons stay invisible after app open animation.
For the app open animation, we load the adaptive icon on the bg thread.
When the icon is done loading, we swap the og view with the FloatingIconView.
If the icon loads after the animation is done, we still set the og view
to INVISIBLE and it never gets restored since the animation is already done.
To fix this, we do not swap the views if the animation has already ended.

Bug: 130245920
Change-Id: I5cf85de4e2c533da8c395a23899980d27a941e1b
2019-04-10 15:21:47 -07:00
Winson Chung e9c4c50168 Temporarily disable screen pinning UI in gesture nav
Bug: 130225926
Change-Id: I782a5c6cdf00dfb8e501185f58defed4bfee3ac1
(cherry picked from commit e041ba0d61)
2019-04-10 22:11:19 +00:00
TreeHugger Robot 731242ee66 Merge "Put pippable apps to pip mode upon swipe up to home gesture" into ub-launcher3-qt-dev 2019-04-10 21:26:47 +00:00
Tony Wickham 9bbbe9cc14 Use DeviceLockedInputConsumer if !mIsUserUnlocked
There's an edge case where user isn't unlocked even if device is. In
that case, we still need to use DeviceLockedInputConsumer because
variables needed for any other input consumer aren't initialized until
the user is unlocked.

Bug: 129947426
Change-Id: I33a5e9a8d5c4266d45bd0d5a16657fa3c9644a1f
2019-04-10 12:54:54 -07:00
Sunny Goyal c0f03d9665 Adding support for loading the default layout from a content provider
The autority of the provider should be set in secure settings:
  launcher3.layout.provider

Bug: 127987071
Change-Id: Iccf2960aa6c0a5a8ff9621b13d8963d9daecb993
2019-04-10 12:06:17 -07:00
Winson Chung fd378d79e5 Check before the user is unlocked before handling proxied events
Bug: 130272454
Test: None, just checking for null state
Change-Id: I6b5a5c0dc7a0dbd8d2d75decd4e7d7ddf6cc3e3d
2019-04-10 09:51:38 -07:00
Tony Wickham e09e1f2253 Merge "Add some egregious back exclusion rects" into ub-launcher3-qt-dev 2019-04-10 16:49:26 +00:00
Tony Wickham 5dc60a0543 Add some egregious back exclusion rects
- Don't allow back gesture at all whenever we hid back button before
- Exclude RecyclerViewFastScroller thumb rect

Bug: 129297464
Change-Id: I40a33697592b02619218c18d1b3def7c3c203f56
2019-04-09 18:28:43 -07:00
Tony Wickham 0d7b0159b3 Merge "Remove PagedView#isTouchPointInViewportWithBuffer()" into ub-launcher3-qt-dev 2019-04-09 21:44:33 +00:00
Tony Wickham 44a58888c7 Remove PagedView#isTouchPointInViewportWithBuffer()
It's no longer necessary, and causes issues when trying to scroll
a PagedView that only takes up the bottom half of the screen (e.g.
RecentsView in split screen mode).

Bug: 126606858
Change-Id: I117dfe9416cdeef1247d6e783390cf5c391e8254
2019-04-09 14:27:51 -07:00
Sunny Goyal a7962a4d99 Fixing restore flag not getting persisted
Bug: 127766994
Change-Id: I8e887232b9fc31a850f7675c79b329ce8897db71
2019-04-09 14:22:00 -07:00
Tracy Zhou d64fe113f5 Put pippable apps to pip mode upon swipe up to home gesture
Fixes: 122609330
Test: manual
Change-Id: I6cd0110b17fba9be6de1b3e6ba5750018d6f0514
(cherry picked from commit b091ed9098)
2019-04-09 21:11:19 +00:00
Tracy Zhou 36555473c9 Merge "Put pippable apps to pip mode upon swipe up to home gesture" into qt-dev 2019-04-09 21:06:28 +00:00
Tony Wickham 9edc8eb756 Merge "Allow swipe up to all apps anywhere on workspace" into ub-launcher3-qt-dev 2019-04-09 19:51:48 +00:00
Tony Wickham e2e953304f Allow swipe up to all apps anywhere on workspace
Bug: 129033091
Change-Id: Ib0066c59f86b3137aedad8d18393b5a622e0cd80
2019-04-09 12:23:01 -07:00
TreeHugger Robot 563178b173 Merge "Do a full touch dispach when proxying touch" into ub-launcher3-qt-dev 2019-04-09 19:03:02 +00:00
Sunny Goyal d158097cfd Do a full touch dispach when proxying touch
> Workspace can no longer be scrolled when swipin on hotseat

Bug: 130027168
Change-Id: Ie4621e5b7de8d7248227b25fb065249d0c252090
2019-04-09 11:53:41 -07:00
Tony Wickham 5e29395eba Merge "Swipe up on nav bar to go home from -1 and widgets" into ub-launcher3-qt-dev 2019-04-09 18:14:15 +00:00
Tony Wickham 9791bd1555 Swipe up on nav bar to go home from -1 and widgets
More specifically, any window (e.g. qsb search) or AbstractFloatingView.

NavBarToHomeTouchController now implements TouchController directly instead
of AbstractStateChangeTouchController, as it not only dealing with
launcher states. This makes it easier to override intercept logic to
handle cases like not having window focus, for example.

AbstractFloatingViews can createHintCloseAnim() to play an animation
hinting that it is about to be closed by swiping up. Widgets sheets use
this to pull back similar to the all apps transition to home.

Bug: 129976669
Change-Id: Ie157b978d9f1ee36d5fd32cea72ec02ce40878c0
2019-04-09 10:53:24 -07:00
Hyunyoung Song deb7cd54e7 Remove FeatureFlags.STYLE_WALLPAPERS
Bug: 129874298
Change-Id: I2785f1e49a4ff60143cc763c3dac0c1bb33b41c8
2019-04-09 17:22:30 +00:00
Winson Chung 4736b17a99 Merge "Fix SecondaryLauncher crash when started." into ub-launcher3-qt-dev 2019-04-09 16:50:54 +00:00
wilsonshih 8679320719 Fix SecondaryLauncher crash when started.
SecondaryLauncher crash after change material source.
From the error log the style of this component should be
Theme.MaterialComponents or as descendant.
Change theme parent to fix it.

Bug: 130151609
Bug: 130182878
Test: atest MultiDisplaySystemDecorationTests
Change-Id: Iad2817864326b04fac00bfc57b8ab6eaf2bd9c13
2019-04-09 05:47:46 +00:00
wilsonshih d716934266 Fix SecondaryLauncher crash when started.
SecondaryLauncher crash after change material source.
From the error log the style of this component should be
Theme.MaterialComponents or as descendant.
Change theme parent to fix it.

Bug: 130151609
Bug: 130182878
Test: atest MultiDisplaySystemDecorationTests
Change-Id: Iad2817864326b04fac00bfc57b8ab6eaf2bd9c13
2019-04-09 11:07:28 +08:00
Hyunyoung Song 2aec9c42f5 Change task view / all apps/ widgets / folder radius to dialogCornerRadius
Bug: 123985787
Change-Id: Iaa8088beb51d37dba90d57ad065f9eac0dd46270
2019-04-09 00:27:07 +00:00
Tracy Zhou b091ed9098 Put pippable apps to pip mode upon swipe up to home gesture
Fixes: 122609330
Test: manual
Change-Id: I6cd0110b17fba9be6de1b3e6ba5750018d6f0514
2019-04-08 20:34:31 +00:00
TreeHugger Robot 2a059c7802 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2019-04-07 06:19:44 +00:00
Bill Yi f5d15f5b6b Import translations. DO NOT MERGE
Change-Id: I0da7c7b04d6c1aaa419b07163f1f2b5b1cacaf03
Auto-generated-cl: translation import
2019-04-05 19:10:38 -07:00
Vadim Tryshev 32464d7de6 Merge "Not deleting assistant from sources" into ub-launcher3-master 2019-04-06 00:49:31 +00:00
vadimt e924eb93ae Not deleting assistant from sources
Now it's done via test config files

Change-Id: Ia31f6de8a44ce29b1ccc01fdb509b6d1e8f2d49d
2019-04-05 17:00:30 -07:00
Vadim Tryshev 9155ea4cf2 Merge "Changing how we inject drag gesture" into ub-launcher3-master 2019-04-05 23:51:01 +00:00
TreeHugger Robot 2945bc84b5 Merge "Removing unnecessary corner size caching in RecentsModel" into ub-launcher3-master 2019-04-05 23:32:17 +00:00
TreeHugger Robot 506c3e1df3 Merge "Don't put up loading UI if load isn't necessary." into ub-launcher3-master 2019-04-05 22:47:16 +00:00
Sunny Goyal c7cc3dc2c5 Removing unnecessary corner size caching in RecentsModel
Change-Id: I1be87dc15a3b9ec8225dccce701bff19785658d6
2019-04-05 15:11:42 -07:00
Kevin 2bd36dd326 Don't put up loading UI if load isn't necessary.
Do not put up the loading UI when we don't need to load (whether that's
because we're already up to date or there is already a load in progress)

Bug: 114136250
Test: Manual; go to recents and see that it doesn't load when updated
Change-Id: Idbcc3731e4ecab8f67b7b5b07a98cb112ed4e07a
2019-04-05 14:44:16 -07:00
Hyunyoung Song de0ed14610 Merge "Change the corner radius of ArrowPopup containers" into ub-launcher3-master 2019-04-05 21:10:46 +00:00
Hyunyoung Song ce37ee5c97 Change the corner radius of ArrowPopup containers
Bug: 123985787
Change-Id: Ibcdd25d2795743225579e8ebc48a4511472f87d8
2019-04-05 13:44:01 -07:00
vadimt a6700d04d8 Changing how we inject drag gesture
Since Launcher doesn't use event time to detect the long click that
start drag, it may not detect valid long clicks. Now waiting for the
context menu to appear.

Bug: 129434166
Change-Id: I7431d185016152fa63e75ea394dd8caf3365b21b
2019-04-05 13:31:36 -07:00
Vadim Tryshev 5a0f7b1c3b Merge "More diags for b/129434166" into ub-launcher3-master 2019-04-05 20:07:05 +00:00
vadimt 423bf62ea0 More diags for b/129434166
Bug: 129434166
Change-Id: Iab8a18ea0f1ef7f6d149dc46f1c8fefc5f463219
2019-04-05 12:41:34 -07:00
Kevin 3e98796189 Add layout animation for Recents Go
Add a layout animation where views fade in upward in a cascade and play
it every time the user goes to Recents.

Bug: 114136250
Test: Go to Recents and see cascade animation
Change-Id: Ia6fdd344f0bfb46c4d507e50f278a86a4432c2b6
2019-04-05 12:20:55 -07:00
Kevin fc6781992d Control logic for putting up loading UI
This CL introduces the logic to put up and bind loading task views while
the first phase of loading occurs (i.e. loading the number and order of
recents items).

Bug: 114136250
Test: Go to recents, see tasks loading
Change-Id: I59bdc0fccc7f309ea4cded175c04a464b5a3665e
2019-04-05 11:04:10 -07:00
Vadim Tryshev ad56fdf1e2 Merge "Not using Settings in TaplTestsLauncher3.testDragAppIcon" into ub-launcher3-master 2019-04-05 02:06:30 +00:00
vadimt fb0cb7a26c Not using Settings in TaplTestsLauncher3.testDragAppIcon
Settings frequently crashes

Bug: 126587956
Change-Id: Ied62d6f8783d8f0f9c434bdd8ee14c62d6cbc4c1
2019-04-04 18:45:49 -07:00
Vadim Tryshev 2c46fcfa3a Merge "Going home via swipe in supported cases" into ub-launcher3-master 2019-04-04 23:24:10 +00:00