Winson Chung
f502e5faec
Revert "Adding support for hiding widgets from the widget tray and reconfiguring widgets"
...
This reverts commit b29a5fa55c .
Reason for revert: Temporary revert for build.
Change-Id: I58045ad1ce28d398a5216ba4fbbcdba1196942ec
2018-03-05 18:06:52 +00:00
Sunny Goyal
b29a5fa55c
Adding support for hiding widgets from the widget tray and reconfiguring widgets
...
> Removing AppInfo target
> Switching between uninstall and setup based on the drag view
Bug: 63931362
Change-Id: Iccd6f965fa3d61992244a365efc242122292c0ca
2018-03-02 13:20:09 -08:00
Derek Sollenberger
f454ded32c
Merge "Stop using deprecated Canvas APIs." into ub-launcher3-master
2018-03-02 04:00:29 +00:00
TreeHugger Robot
22ab784dd0
Merge "Updating the scrim and landscpae ui" into ub-launcher3-master
2018-03-01 19:44:59 +00:00
Sunny Goyal
6639a5dfe0
Updating the scrim and landscpae ui
...
> Instead of views, using a custom class to draw the color scrims
> All-apps has full screen UI
> Quickstep does not have search box in landscape
Bug: 73085356
Change-Id: I360a78a2ade0134daad29fe712796cd39a381fbb
2018-03-01 11:23:46 -08:00
Sunny Goyal
f58e0df0ab
Skipping resetting transition if the same transition is running
...
Bug: 73838765
Change-Id: I1a428f1b5d5b04397a317e0f35f3effb53c24405
2018-03-01 10:25:55 -08:00
Derek Sollenberger
26a1b452f4
Stop using deprecated Canvas APIs.
...
Bug: 73777445
Test: compile
Change-Id: Ic0a1f4ebc10ba46229fd97408c052c0b450b4945
2018-03-01 04:39:57 +00:00
Sunny Goyal
2e2e2b4a63
Fixing widget label not being rendered in multi-window mode
...
Bug: 73709754
Change-Id: Id6342e3412c2b247e052bc45c01a484422a7c011
2018-02-28 17:34:23 -08:00
Mario Bertschler
dd2424296a
Fix for floatingheader snap value being higher than the max
...
translation if flinging quickly the all-apps recycler view.
Bug: 73151273
Change-Id: If7acbf7b48f69ea6a818a83d519049496b86ced3
2018-02-28 14:16:38 -08:00
TreeHugger Robot
4250557a81
Merge changes Ic23997f1,Id45c5381 into ub-launcher3-master
...
* changes:
Enable trim memory callbacks to the loader, background task preloading
Only load thumbnails for visible tasks.
2018-02-28 21:06:46 +00:00
Winson Chung
62a70be27a
Enable trim memory callbacks to the loader, background task preloading
...
- Also enable the high-res thumbnail loader
Bug: 73651529
Change-Id: Ic23997f10289ea10cb1f41104e07029c9102c
Signed-off-by: Winson Chung <winsonc@google.com >
2018-02-28 12:55:19 -08:00
TreeHugger Robot
c06a7e137d
Merge "Set disabled state when getting new icon from DrawableFactory." into ub-launcher3-master
2018-02-28 20:10:09 +00:00
TreeHugger Robot
a655a4a83a
Merge "Fixing widgets get deteled because of double bind" into ub-launcher3-master
2018-02-28 17:36:38 +00:00
TreeHugger Robot
909267996e
Merge "Deprecate work folder" into ub-launcher3-master
2018-02-28 17:32:52 +00:00
Sunny Goyal
c11fac355d
Fixing widgets get deteled because of double bind
...
If the AppWidgetHost starts listening in the middle of bind, it rebinds
the old widgets before a new widget is bound, leading to double bind.
We should clear all pending binds, before starting a rebind. As an
extra check only rebind a view which is attached to the screen.
Bug: 73814840
Change-Id: Ie3af683dc4095b158547e700d11e4faf7999466f
2018-02-27 19:23:01 -08:00
TreeHugger Robot
c847ca4537
Merge "Adding temporary logs to capture configuration changes and item deletions" into ub-launcher3-master
2018-02-27 21:30:13 +00:00
Sunny Goyal
2bba1900e0
Adding temporary logs to capture configuration changes and item deletions
...
Bug: 72481685
Bug: 73814840
Change-Id: I1e30632647ad08a08d84c49875bc7b6cac3be1fb
2018-02-27 13:20:57 -08:00
Tony Wickham
b7168cd019
Merge "Flip recents if setting is true" into ub-launcher3-master
2018-02-27 19:50:17 +00:00
TreeHugger Robot
fe560d802a
Merge "Update widget full sheet / bottom sheet to have top rounded corners." into ub-launcher3-master
2018-02-27 18:34:27 +00:00
Jon Miranda
d82c5cd2b0
Set disabled state when getting new icon from DrawableFactory.
...
Change-Id: Ic9c508d24cc0e65d45f5c1f4bcbe8d5cd7fb9200
2018-02-27 10:12:03 -08:00
TreeHugger Robot
f1e9a706f6
Merge "Use getScaledTouchSlop instead of MIN_LENGTH_FOR_FLING" into ub-launcher3-master
2018-02-27 18:07:23 +00:00
Tony Mak
1b6826c53c
Deprecate work folder
...
FIX: 73876183
Change-Id: I9d15df247eed3500c679cba085c680b75581cffb
2018-02-27 17:47:22 +00:00
Tony Mak
2e564400ba
Fix all apps tab fling detection
...
It is a regression when we changed from ViewPager to PagedView.
Unlike ViewPager, PagedView does not take "yDiff" into account
when determining should it intercept its child MotionEvent.
Override determineScrollingStart, just like what we did in Workspace
Change-Id: I25f7415c45c370629558d944f59bf95c741b9319
FIX: 73878167
2018-02-27 17:29:12 +00:00
Tony Mak
c25afd002b
Use getScaledTouchSlop instead of MIN_LENGTH_FOR_FLING
...
MIN_LENGTH_FOR_FLING is not correct because it is not scaled
based on density.
BUG: 73878167
Change-Id: Ibbb58a573976224f33fd43de33719ddb62131329
2018-02-27 14:44:50 +00:00
Tony Wickham
dfb5cc9a09
Flip recents if setting is true
...
Bug: 72860694
Change-Id: I5cb71f553b2833a18a1b419b3744175bff963da8
2018-02-26 18:12:39 -08:00
Tony Wickham
5a22795484
Merge "Animate launcher when launching recent tasks" into ub-launcher3-master
2018-02-26 22:42:08 +00:00
Tony Wickham
005df0ba69
Animate launcher when launching recent tasks
...
- Scale up adjacent recent tasks and translate away from center
- Workspace card instead recenters in the screen
- Translate hotseat offscreen
Clicking on one of the adjacent tasks will scale it up to the
center of the screen while the center and other adjacent task
parallax to the right beneath it.
Change-Id: If96eec987c100458b8444a6cd698ec7bf6e6ba6b
2018-02-26 14:05:59 -08:00
TreeHugger Robot
790822ab22
Merge "Ensuring that all the pending tasks are run before marking the ViewOnDrawExecutor as completed." into ub-launcher3-master
2018-02-26 19:10:40 +00:00
repo sync -j8 -c
749ff51a66
Bump version of IconDB to roll out the new work profile badge
...
BUG: 73815682
Change-Id: Ia4311f4a9f7adb7795138ecaf909b7f8a9b8ec4d
2018-02-26 17:39:27 +00:00
TreeHugger Robot
8565924e27
Merge "Fix RTL issue in work tab" into ub-launcher3-master
2018-02-26 11:53:01 +00:00
Tony Mak
82a1091d2d
Fix RTL issue in work tab
...
To simplify the code, we assume work tab widget == personal tab width.
FIX: 73782774
Change-Id: I534c97b1e0de0c8a1f5108bb9fa13da989bc73b0
2018-02-26 11:38:44 +00:00
Sunny Goyal
338d15d232
Normalizing icons in recents view
...
Change-Id: I1d95c1abf158044ca5666473f976b49f7997ca27
2018-02-23 12:26:25 -08:00
Sunny Goyal
0e7724cef7
Ensuring that all the pending tasks are run
...
before marking the ViewOnDrawExecutor as completed.
Also fixing model writer not updated on rotation
Change-Id: I5ecd7ac865b939ffa4c02afe892bd773d9f275c3
2018-02-22 17:27:13 -08:00
Winson Chung
9cbeced3e1
Merge "Fix flash when switching from app window to snapshot." into ub-launcher3-master
2018-02-23 01:22:32 +00:00
Winson Chung
a7843583be
Fix flash when switching from app window to snapshot.
...
- If there is any delay in launcher draw, then we will finish the
transition and hide the app window before launcher has had a chance to
draw the task view with the updated snapshot.
Change-Id: I81c5b467f32520fd7474bde0e89819336292e84f
2018-02-22 16:42:44 -08:00
Sunny Goyal
38b8779bd3
Merge "Removing unused constructors" into ub-launcher3-master
2018-02-23 00:21:06 +00:00
Sunny Goyal
2fd9bf60a5
Removing unused constructors
...
Change-Id: I03fb104a46a18fc56cb0ee9a03a018e212f3db00
2018-02-22 15:15:39 -08:00
Hyunyoung Song
647d8f5bd1
Fix index out of exception inside UserEventDispatcher
...
Change-Id: Ie043ba8185c4dcd794067421682d8b4bb6095c9f
2018-02-22 11:31:31 -08:00
Sunny Goyal
d70e75a514
Removing launcher dependency when logging quickstep interaction
...
as Launcher may not be ready when the touch gesture completes.
Change-Id: Ia69eb7bfb0340f7b7ce9b6c67be8851e5429f867
2018-02-22 10:21:41 -08:00
TreeHugger Robot
668dd40a98
Merge "Fixing window transform not changing monotonically with shift" into ub-launcher3-master
2018-02-22 00:37:02 +00:00
Sunny Goyal
30897aaa1d
Temporarily enabling various tracing for debug devices
...
Change-Id: Iebee7d0a4c408f50ab911b31edbec12499a42844
2018-02-21 15:58:40 -08:00
Tony Wickham
732c7f30bf
Merge "Update notification group mapping when group key changes" into ub-launcher3-master
2018-02-21 23:22:50 +00:00
Sunny Goyal
b1e2e2956e
Fixing window transform not changing monotonically with shift
...
Change-Id: I40f095e73ca1cdb994d34aecc2c6be90f3e0f25b
2018-02-21 14:56:17 -08:00
Tony Wickham
80e4191392
Update notification group mapping when group key changes
...
Tested by running:
"runtest -x cts/tests/app/src/android/app/cts/NotificationManagerTest.java
-m testAutogrouping_autogroupStaysUntilAllNotificationsCanceled"
The test fails before this change, and passes afterwards.
Also manually verified that the original bug that introduced this
regression (b/65100024) remains fixed.
Bug: 68215987
Change-Id: I4af198fd5257ad1dfab5e052c11f58ea84b5095a
2018-02-21 11:45:49 -08:00
Hyunyoung Song
41431af541
Merge "Quick step/scrub/switch logging - state transition happening due to Home and back is handled by specifying src target as 'from' container and dst target as the 'to' container - Source and Destination container shows FROM and TO state for SWIPE/FLING - event.isStateChange = true indicates that an action resulted in state transition - Elapsed container millis is the screen time on the source container" into ub-launcher3-master
2018-02-21 07:00:45 +00:00
Hyunyoung Song
b3fbc0ba8f
Quick step/scrub/switch logging
...
- state transition happening due to Home and back is handled by
specifying src target as 'from' container and dst target as the 'to'
container
- Source and Destination container shows FROM and TO state for SWIPE/FLING
- event.isStateChange = true indicates that an action resulted in
state transition
- Elapsed container millis is the screen time on the source container
Bug: 70181187
- logcat printout with setprop log.tag.UserEvent VERBOSE
1) State: WORKSPACE -> ALLAPPS
action:FLING direction=UP
Source child:HOTSEAT id=0 parent:WORKSPACE id=0
Destination child:ALLAPPS
Elapsed container 1225 ms, session 1225 ms, action 0 ms
2) ALLAPPS -> HOMESCREEN
action:FLING direction=DOWN
Source child:ALLAPPS parent:ALLAPPS
Destination child:WORKSPACE id=0
Elapsed container 971 ms, session 2197 ms, action 0 ms
3) HOMESCREEN -> OVERVIEW
action:FLING direction=UP
Source child:NAVBAR parent:WORKSPACE id=0
Destination child:TASKSWITCHER
Elapsed container 4834 ms, session 4834 ms, action 0 ms
4) OVERVIEW-> ALLAPPS
action:FLING direction=UP
Source child:TASK parent:TASKSWITCHER
Destination child:ALLAPPS
Elapsed container 2176 ms, session 7010 ms, action 0 ms
5) ALLAPPS->OVERVIEW
action:FLING direction=DOWN
Source child:ALLAPPS parent:ALLAPPS
Destination child:TASKSWITCHER
Elapsed container 3683 ms, session 10693 ms, action 0 ms
6) OVERVIEW-> HOMESCREEN
action:FLING direction=DOWN
Source child:TASK parent:TASKSWITCHER
Destination child:WORKSPACE id=0
Elapsed container 2108 ms, session 12801 ms, action 0 ms
7) APPS-> OVERVIEW
action:FLING direction=UP
Source child:NAVBAR parent:APP
Destination child:TASKSWITCHER
Elapsed container 104 ms, session 104 ms, action 0 ms
8) Quickscrub: action:DRAGANDDROP Source child: QUICK
9) Quickswitch: action:FLING Source child: QUICK
Change-Id: I5898230859ff600f48a2a873a40b670fe4d39a0d
2018-02-20 22:40:19 -08:00
Sunny Goyal
60876ac0d7
Handling recents animation cancelation
...
When the animation is cancelled, if remove the pending handler
(incase it has not executed yet) and revert back to the old
state if it has executed.
Change-Id: Iddc305aaaeae78c06cbf6c1c271254409cc1487d
2018-02-20 16:06:06 -08:00
TreeHugger Robot
224f58c4bc
Merge "Create new ShortcutInfo when dropping predicted deep shortcuts." into ub-launcher3-master
2018-02-20 21:38:09 +00:00
TreeHugger Robot
68cc1f29a1
Merge "Cancel existing launcher animation earlier to prevent unnecessary AllApps animation." into ub-launcher3-master
2018-02-20 21:38:07 +00:00
Jon Miranda
4685965355
Create new ShortcutInfo when dropping predicted deep shortcuts.
...
We were modifying the ShortcutInfo for the predicted app in All Apps,
so we would display "Remove" instead of "Cancel" because the item
was given an id.
Bug: 73377438
Change-Id: I1b9788bbf089d304a2868de866c78932fececed9
2018-02-20 08:45:13 -08:00