Commit Graph

1301 Commits

Author SHA1 Message Date
TreeHugger Robot
431ec79c99 Merge "Removing code duplication for getting swipe-up setting" into ub-launcher3-master 2018-08-09 19:49:20 +00:00
Winson Chung
ad830cd2dc Use provided home content insets
- They should be correct now immediately after rotation

Bug: 112205777
Change-Id: I12c5b791b7115408bb34b5d0ae1e3023ce79c1bf
2018-08-09 18:20:24 +00:00
Tony Wickham
9c80147e70 Merge "Use default animation when launching a TaskView that's off screen" into ub-launcher3-master 2018-08-09 16:37:53 +00:00
Tony Wickham
9756df4564 Use default animation when launching a TaskView that's off screen
Now that pressing back launches the previously running task, it's
possible to get TaskView#launch() when the TaskView is not on the
screen (i.e. user scrolled before pressing back). In this case, we
shouldn't use the launch-from-recents animation, as that animation
assumes the task view is the current page or an adjacent one.

Change-Id: I7bec91c9437954061affdedc8cd9e48820ce7357
2018-08-08 17:55:10 -07:00
Tracy Zhou
af82a882d7 Fix PIP window moving during quick scrub.
Bug: 110799409
Test: Manual
Change-Id: Ib7c7d87ddb5aee3149127415bfc31b9cd24dd16b
2018-08-08 15:50:52 -07:00
Sunny Goyal
aad3359e8e Removing unused touch handling in PagedView so that it is similar to various platform class
Bug: 109828536
Change-Id: Ibaba3fb4298f2dc055d125acea5f4c47403bbef0
2018-08-08 12:12:46 -07:00
TreeHugger Robot
662f52b67f Merge "Unifying multiple definitions of MainThreadInitializedObject" into ub-launcher3-master 2018-08-08 19:07:09 +00:00
Sunny Goyal
7fee2a82e4 Merge "Launching last task when back button is pressed in overview" into ub-launcher3-master 2018-08-08 17:34:46 +00:00
Vadim Tryshev
b02bcd4c76 Removing code duplication for getting swipe-up setting
This is between Tapl and Launcher

Bug: 110103162
Test: TaplTests suite
Change-Id: I5b458438834204ca257f45c707577b4d2793fb4e
2018-08-07 18:01:12 -07:00
Sunny Goyal
7244d45998 Unifying multiple definitions of MainThreadInitializedObject
Change-Id: I0e5addfe0353f971c76ffba8a0e2fbbce0f7e58e
2018-08-07 09:26:34 -07:00
Android Build Merger (Role)
dc26977a26 [automerger] Use clear-all recent tasks call am: 68df758665
Change-Id: Ic8bcbef8d72e2ca48a2d6ffe4c0d7d40f2fba37c
2018-08-03 18:15:53 +00:00
Winson Chung
68df758665 Use clear-all recent tasks call
Bug: 80471073
Change-Id: Ibce9d521ba8d3903ff1f2fbdabfd391b15630bd7
2018-08-03 11:15:33 -07:00
Sunny Goyal
e39690b218 Launching last task when back button is pressed in overview
Bug: 111158326
Change-Id: Ib38f12f177780d15dbee69e4a27c21aaa9a3e087
2018-08-02 13:35:38 -07:00
TreeHugger Robot
0b74a7fe5e Merge "Preventing state change duing the swipe up animation when the previous app transition is not complete" into ub-launcher3-master 2018-08-02 18:52:11 +00:00
Android Build Merger (Role)
26fbcb39da [automerger] Fix missing callback in fallback activity to re-enable high res loader. am: 37ff8be692
Change-Id: I7a4c81dab7150400f22fa8d4e784c981ba1e9ef2
2018-08-02 16:57:48 +00:00
Winson Chung
37ff8be692 Fix missing callback in fallback activity to re-enable high res loader.
Bug: 111515602
Change-Id: Ie4a9e709392ef9dad001651129a46d4caee0c2ae
2018-08-02 09:56:59 -07:00
Jonathan Miranda
faf1086f33 Merge "Fix bug where icon appears large until transluscent activity finishes." into ub-launcher3-master 2018-07-31 18:41:16 +00:00
Matthew Ng
90646a5dd4 Tapping task icon in overview with scroll to it and open
Smaller devices or landscape with splitscreen can show more than one
task icon in overview. Tapping the icon when not in the middle will
scroll the task into the middle and open at the same time.

Change-Id: I0fe261e9a1b8ab6ad7e6c6ea64125a9c7b38da39
Fixes: 110371874
Fixes: 111446332
Test: splitscreen, overview in landscape, tap non-centered task icon
2018-07-27 15:47:14 -07:00
Jon Miranda
4a2b9d5e36 Fix bug where icon appears large until transluscent activity finishes.
It appears large because the pressed state of the view increases the scale,
and we want to leave the pressed state until the activity is launched.

With the remote app transitions, we now have a callback for when the activity
is done launching so we then cancel the "stayPressed" state.

Bug: 111742067
Change-Id: I25725e908b12f4dd1256294a26232b289db2d057
2018-07-24 14:50:56 -07:00
TreeHugger Robot
1143469a79 Merge "Tapl library" into ub-launcher3-master 2018-07-24 19:39:54 +00:00
Vadim Tryshev
2ce6a13f60 Tapl library
The public API of the library has finalized; flakiness has been removed;
code polished.

Bug: 110103162
Test: TaplTests suite
Change-Id: Ic156bbfeedb1cb9c4a48ef907f97e396e8e81936
2018-07-20 14:43:05 -07:00
Tony Wickham
ae71e086a2 Merge "Add null check before playing recents scale down anim" into ub-launcher3-edmonton-polish 2018-07-19 21:55:36 +00:00
Android Build Merger (Role)
8bf6064fe0 [automerger] Add null check before playing recents scale down anim am: 7cc878b5ae
Change-Id: Ie10ecb7da0307d17c408979d4f6a85906d278c11
2018-07-18 22:55:55 +00:00
Tony Wickham
7cc878b5ae Add null check before playing recents scale down anim
When swiping up to overview from an app, we scale down RecentsView in
launcher, synchronized with the app window. In rare cases, however,
there may not be any TaskViews in launcher, so we should just ignore
the launcher component in this case. For example, this happens in
LockTask mode.

Bug: 110703110
Change-Id: Ib6f836581a3e12babf4e26e272b77bb529f86fd4
2018-07-18 15:51:43 -07:00
TreeHugger Robot
7b8ed5a111 Merge "Defer starting the high-res thumbnail loader until quick step/scrub" into ub-launcher3-edmonton-polish 2018-07-18 22:15:15 +00:00
Android Build Merger (Role)
498a9bd559 [automerger] Defer starting the high-res thumbnail loader until quick step/scrub am: 8eb49e079e
Change-Id: I3b69862c42175d7680fd6a4878247c3cf7c0081f
2018-07-18 22:06:04 +00:00
Winson Chung
8eb49e079e Defer starting the high-res thumbnail loader until quick step/scrub
- When hitting the home button, we may be loading high-res thumbnails
  unnecessarily since the high-res loader is already enabled when
  Launcher is started.

Bug: 111515602
Bug: 111156069

Change-Id: I367993b4ddf653b816355df005c745caed5e794a
2018-07-18 15:05:54 -07:00
Matthew Ng
eb9cc9dbd5 Animate the long press icon scale for task menu to match task view
Use scale listeners to track each other's icon scale to match them.

Test: go to recents and long press icon
Fixes: 110789415
Change-Id: I9bba3130ecf1d099db9708c84e709d16f5906c36
2018-07-17 11:21:23 -07:00
Android Build Merger (Role)
1f8cbcf1c6 [automerger] App menu icon launching app info hides taskview menu am: 00fec0d53b
Change-Id: I9a9367b8c6f41aba000f842df7d44171392639ec
2018-07-14 00:02:12 +00:00
Matthew Ng
00fec0d53b App menu icon launching app info hides taskview menu
Change-Id: I0b493229d18027adbb7c1ee15b38d859e0b3a434
Fixes: 111405044
Test: go to overview, tap icon, tap app info
2018-07-13 17:00:24 -07:00
Sunny Goyal
379e8e0fa2 Preventing state change duing the swipe up animation when the previous app
transition is not complete

> This state change causes the RecentsView to get reset making the first
task visible

Bug: 111404703
Change-Id: I8ff2577bf965fb4cdf736fb18683ded63ade1872
2018-07-12 15:15:00 -07:00
Sunny Goyal
32f91ab991 Proxying touch events from RecentsTouchConsumer to Launcher
While swipe-up animation is running, the user can quickly start
another touch gesture. In that case we keep the recents transtion active
and proxy all touch events to launcher.

Bug: 110901700
Change-Id: Ie3b448dfea00473082dc9143423d3596504a3fcc
2018-07-12 14:06:54 -07:00
Sunny Goyal
0a40a187b5 Merge "Exposing some private methods to easily customize arrow popup" into ub-launcher3-master 2018-07-12 18:45:27 +00:00
TreeHugger Robot
90218c4435 Merge changes from topic "am-3a638250-0228-430a-9592-99d4a7bd5036" into ub-launcher3-master
* changes:
  [automerger] Workaround for flicker between handoff from app to task view am: 35a6848fa8
  Workaround for flicker between handoff from app to task view
2018-07-12 17:33:22 +00:00
Hyunyoung Song
956ec4b0e5 Remove device profile dependency from UserEventDispatcher
Bug: 110122682

Change-Id: I31ba61e60e31f1cc84e6d0cf115193e45d9fcfdb
2018-07-11 23:31:01 -07:00
Sunny Goyal
87b5eb689b Exposing some private methods to easily customize arrow popup
Change-Id: I6f6dc0604a616f26c0879732a0237767ddbfdccc
2018-07-11 14:35:51 -07:00
Android Build Merger (Role)
e946640883 [automerger] Workaround for flicker between handoff from app to task view am: 35a6848fa8
Change-Id: Idcffacc752663758ac38937819457195b637ed10
2018-07-11 18:00:11 +00:00
Winson Chung
35a6848fa8 Workaround for flicker between handoff from app to task view
- Defer finishing the recents animation for a couple frames until the
  frame has likely been pushed to sf and drawn, otherwise the reparenting
  of the app surface may happen before the task view is visible in
  Launcher.

Bug: 111299394
Test: Swipe up repeatedly from an app
Change-Id: I627dc085a5e376436b2b8eb5841c45fd36deff42
2018-07-11 11:00:03 -07:00
TreeHugger Robot
17b7d36594 Merge "Touch up/cancel over navigation bar will send down event to drag layer" into ub-launcher3-master 2018-07-10 19:48:24 +00:00
Matthew Ng
7068f56922 Touch up/cancel over navigation bar will send down event to drag layer
There is no events from nav bar to send to drag layer until crossing the touch
slop on move. If up occurs, sending the touch down event will clear floating
objects such as the folders.

Change-Id: I6095506f505535e04d59c403e539f37e27295470
Fixes: 111008382
Test: open folder, touch an empty space on nav bar
2018-07-10 12:38:55 -07:00
Sunny Goyal
d7e217abb3 Animating task icon scale when using long swipe
> Separating the task icon animation and setter into 2 separate methods and calling each appropriately
> Using taskId instead of TaskView for ignoreSet as taskView can be reassigned

Bug: 110893730
Change-Id: I7bc958e53becffdf633766373b257ead2eeef2ad
2018-07-10 12:32:31 -07:00
TreeHugger Robot
070d23091a Merge "Dismiss pip will fade task in and snap to it" into ub-launcher3-master 2018-07-10 19:10:11 +00:00
Winson Chung
ce368154ce Prevent extra call to set activity orientation.
- We can request the locked orientation for quickscrub only when we
  start quickscrub

Bug: 80500702
Change-Id: I2e83ff916f92959fccf79f1d6b987806338512f5
2018-07-03 21:51:06 +00:00
Sunny Goyal
d0e360a858 Lazy loading LauncherAppState
Separating InvarantDeviceProfile out of LauncherAppState and creating
LauncherAppState only when it is actually used

Change-Id: I2ee55f53cae01f11203f94675bb5f70c65ad2b9d
2018-07-03 14:39:21 -07:00
Matthew Ng
87555c56dc Fixed small line that may appear opening task menu with decimal position
Round the y and x values to get correct position without showing a small
line when opening the task menu.

Test: increase the display and font size to large, go to overview and
tap icon
Fixes: 110415497

Change-Id: Ia41378863fb08fc72f5cd14b40f45769ab612d22
2018-07-03 15:25:31 +00:00
Sunny Goyal
7f920b8d5e Cleaning up build rules to simplify customizing derivative projects
> Using {packageName} instead of hardcoding com.android.launcher3 in AndroidManifest.xml
  for strings which are dependent on packageName
> Adding proguard rule to prevent obfuscating any overridable class
> Making it easier to extend SettingsActivity by overriding the fragment class

Change-Id: I5668c3f33b4cf20ad01d7f54b3d79cc0d268d391
2018-07-02 11:16:04 -07:00
Android Build Merger (Role)
acbda3fe52 [automerger] Last minute swipe up overshoot tweaks am: d63e6dff28
Change-Id: I75d08b42fd6a62f6ab58ce51d1309f13392cd58b
2018-06-27 22:57:17 +00:00
Adam Cohen
d63e6dff28 Last minute swipe up overshoot tweaks
b/109709720

Change-Id: Ie3831289a9af2ba4b03fcbb4f2cbb3f4c2431aec
2018-06-27 15:57:12 -07:00
Tony Wickham
969abca838 Merge "Swipe up overshoot always plays" into ub-launcher3-edmonton-polish 2018-06-27 21:00:54 +00:00
Android Build Merger (Role)
002560dee7 [automerger] Swipe up overshoot always plays am: cc3755da6e
Change-Id: I663d742f3349d52e74d84a6d4f5376588abf201c
2018-06-27 19:25:50 +00:00