Commit Graph

7632 Commits

Author SHA1 Message Date
Tony Wickham 39a37cc2fa Merge "Show icon when drop on deferred drop target is canceled" into ub-launcher3-master 2018-03-08 16:56:20 +00:00
Tony f2523dc8aa Prevent infinite recursion when drawing PreloadIconDrawable
Bug: 74372748
Change-Id: I9dbd4a29fa3ae020711a76334da888e1f1dd72ea
2018-03-08 14:12:30 +00:00
Tony 4d9103215d Show icon when drop on deferred drop target is canceled
Before:
Drag to uninstall -> cancel -> icon stays hidden

Now the icon reappears.

Bug: 74356377
Change-Id: I7a69e583098bced31cf38af04dc9861dfa4118e2
2018-03-08 13:54:52 +00:00
Sunny Goyal b12ae37ffe Merge "Enabling hardware bitmaps on android P" into ub-launcher3-master 2018-03-07 19:22:13 +00:00
Tony 865ee02d20 Show back button when a floating view is visible
Bug: 74184060
Bug: 74243869
Change-Id: I3b1806e10d3f910ce3a8a980c2b1e0609e01582b
2018-03-07 12:21:10 +00:00
Sunny Goyal 5589583dcf Merge "Fixing bug when model was not reflected properly on the UI. If launcher submits a job, and then reloads before the job is executed, the correct model is not reflected on the Launcher. In that case, we simply rebind the launcher" into ub-launcher3-master 2018-03-07 01:28:01 +00:00
Sunny Goyal 8a3411f223 Enabling hardware bitmaps on android P
Bug: 35428783
Change-Id: I6d64284bd29e9db33c20ecc5bf3f67e4781b17f8
2018-03-06 15:26:29 -08:00
TreeHugger Robot f7ccc82e0d Merge "Using public APIs for hardware bitmaps" into ub-launcher3-master 2018-03-06 23:22:31 +00:00
TreeHugger Robot 9027e6ad09 Merge "Check in FocusLogic that focused view fits into the matrix created for cell-layout. Temporarily there can be a mismatch." into ub-launcher3-master 2018-03-06 23:18:23 +00:00
Sunny Goyal f3efc25862 Using public APIs for hardware bitmaps
Bug: 35428783
Change-Id: I4e7eeaa94e0cdfb1c76dce507a6f855e4eebbd6c
2018-03-06 15:16:21 -08:00
Mario Bertschler 3d73e7aac7 Check in FocusLogic that focused view fits into the matrix created for
cell-layout. Temporarily there can be a mismatch.

Bug: 73346286
Change-Id: Id014332d585c73b2be92da1f24db82484f103de4
2018-03-06 14:49:01 -08:00
Sunny Goyal 7b4b78c1ad Page indicator and hotseat should have the same alpha
Bug: 70144077
Change-Id: I4cc678e7b5a5daa07b5fd6ab96ea79b4354c514d
2018-03-06 13:12:25 -08:00
Sunny Goyal 3661bfac0b Fixing fast scroller touch handling in all-apps and widget sheet
Also removing scrim view, instead drawing the scrim manually

Bug: 73085356
Change-Id: I188c6c9b1685e22d5d97b38dd5d3e960b655c9ba
2018-03-06 11:41:43 -08:00
Sunny Goyal 605bcf3367 Fixing bug when model was not reflected properly on the UI.
If launcher submits a job, and then reloads before the job is executed, the correct model
is not reflected on the Launcher. In that case, we simply rebind the launcher

Change-Id: I380242a4de13e7b2bc326d1a076f0a974435999c
2018-03-05 17:38:47 -08:00
Sunny Goyal d912e3f82a Merge "Simplifying all-apps search box" into ub-launcher3-master 2018-03-06 00:12:59 +00:00
TreeHugger Robot d90d04b1ec Merge "Updating Launcher rotation logic" into ub-launcher3-master 2018-03-05 23:44:54 +00:00
Sunny Goyal 705566df72 Merge "Removing click-feedback shadow generation logic in BubbleTextView" into ub-launcher3-master 2018-03-05 23:26:28 +00:00
Sunny Goyal 726bee7d5d Removing click-feedback shadow generation logic in BubbleTextView
Instead of animating the shadow, animating the icon scale. This avoids
unnecessary bitmap creating at app-launch and also plays nice with the
app-launch transition

Change-Id: I1d3d24bc7212a6d659855ff1002a45388e269e52
2018-03-05 14:56:38 -08:00
Sunny Goyal 857b1b9469 Notifying page end transition if forceFinish is called in the middle
of page transition

This fixed the bug where onPageTransitionEnd is never called when using
quickswitch

Change-Id: I4196a8651ee67d175363d51165dd128fe0518341
2018-03-05 11:32:12 -08:00
Sunny Goyal 623eddd7e8 Updating Launcher rotation logic
When auto-rotate is on, launcher allways allows rotation. This allows uses to use
locked rotation feature is available on the device
When auto-rotate is off, workspace does not allow rotation, but overview in quickstep
will allow rotation

Bug: 73872056
Change-Id: Ie12365c268fd5e4958634ed97b5a33dcadc691e2
2018-03-03 00:41:09 -08:00
TreeHugger Robot 85f1eed52d Merge "Adding support for hiding widgets from the widget tray and reconfiguring widgets" into ub-launcher3-master 2018-03-03 00:49:24 +00:00
Sunny Goyal 6c6c2f45f7 Adding a separate state for QuickScrub
Bug: 74014237
Change-Id: Ie86ac589f0ad0e1470fb6b0b71263ec6593eb1e3
2018-03-02 15:38:21 -08: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
Sunny Goyal dbd6bb348c Simplifying all-apps search box
> Giving the search box a solid background so that it work fine with scrolling
> bottom shadow logic for search box

Bug: 73085356
Change-Id: Ie4dc4922be39ffd8e2d562becedbd4c6f820e6c9
2018-03-01 15:58:11 -08: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