Commit Graph

8803 Commits

Author SHA1 Message Date
Jon Miranda 27530c99e2 Use original BubbleTextView icon for legacy stamped forced adaptive icons.
Bug: 129297366
Change-Id: Ic71c42e603cc361b716ba65067a772d19ef394f7
2019-05-02 08:45:27 -07:00
Alex Mang 35bda496f3 Merge "Clear should not show after Widget Configuration activity" into ub-launcher3-qt-dev 2019-05-01 23:59:09 +00:00
Vadim Tryshev f57c62c091 Merge "Remove tracing for fixed bugs" into ub-launcher3-qt-dev 2019-05-01 23:39:34 +00:00
Hyunyoung Song 497708c297 Clear should not show after Widget Configuration activity
Bug: 119847865

TL;DR;;
When configuration activity starts, simply make everything in drop
target bar invisible.

Change-Id: I37d067168368de4ee43b54e5dc95f958f5e94623
2019-05-01 16:33:31 -07:00
vadimt 8649cf29e4 Remove tracing for fixed bugs
Bug: 129434166
Bug: 131170582
Change-Id: Ia9b356594001d96c69ffbb7f8b767b2f54ed5feb
2019-05-01 16:10:56 -07:00
Hyunyoung Song fcd090da35 Move theme res logic to Themes static class.
Bug: 131310726

Change-Id: Ib46c26c2b44165a4441e109eed6d3ae7e19bcf02
2019-05-01 14:11:50 -07:00
TreeHugger Robot 943ce93bd5 Merge "Enabling quick-switch gesture in landscape mode (2 button UI)" into ub-launcher3-qt-dev 2019-04-30 19:29:14 +00:00
Jon Miranda 063211f620 Fix app open animation in landscape.
Bug: 130828765
Change-Id: Ic447d05a8fe2097a6afd0bfec73039a62bbf5a4b
2019-04-30 12:03:39 -07:00
Sunny Goyal 2acea9f872 Enabling quick-switch gesture in landscape mode (2 button UI)
Bug: 130689544
Change-Id: I6b424be4d80b3bf8263f456a024a81c63100030e
2019-04-29 14:33:56 -07:00
TreeHugger Robot 34c630bf14 Merge "Updating the touch proxy logic:" into ub-launcher3-qt-dev 2019-04-29 16:27:03 +00:00
Sunny Goyal bfaa9760dd Updating the touch proxy logic:
In draglayer, we always dispatch touch events to child views. If the
touch originated from gesture area, when we dont route it through touch
controllers.
The proxy events are only send to touch controller. If any controller consumes
the event, then we cancel the view touch (pilferPointers)

This allows the controllers to work outside the dragView area, and prevents normal
view interaction when there is a window on top (like keyboard) while keeping our
activity focused

Bug: 131088901
Bug: 130618737
Change-Id: If033dde3a0f9cb6a6e449c9586c1fa050af5bdcb
2019-04-26 11:08:42 -07:00
TreeHugger Robot 3c007368a7 Merge "Cleanup unnecessary override dump method" into ub-launcher3-qt-dev 2019-04-25 23:22:04 +00:00
Hyunyoung Song 9e7d2acc22 Cleanup unnecessary override dump method
Change-Id: Ic2909a4d382362ddec9bcc2c738d13120e792fd8
2019-04-25 16:08:52 -07:00
Hyunyoung Song efe8475093 Merge "Add important dump logging Bug: 130851537 Bug: 119992316" into ub-launcher3-qt-dev 2019-04-25 22:33:31 +00:00
Hyunyoung Song a310a80c7b Add important dump logging
Bug: 130851537
Bug: 119992316

Change-Id: I3de7c1d910d1aecd80b47a85284565c79fe0e2cc
2019-04-25 15:14:44 -07:00
Tony Wickham 03f27013bf Log undo button click
Also fix a bug where we logged workspace swipe upon clicking undo, since
rebinding the pages causes us to reset mCurrentPage = 0 followed by
setCurrentPage(pageBoundFirst). Since the page isn't actually visibly
changing, we shouldn't log in that case.

Bug: 118758133
Change-Id: Ie87164a8c7c278680f67dee75657210bd33408a4
2019-04-25 14:22:54 -07:00
TreeHugger Robot 4fd2dff408 Merge "Use AccessibilityManager#getRecommendedTimeoutMillis for Snackbar" into ub-launcher3-qt-dev 2019-04-25 18:58:39 +00:00
Tony Wickham 5519a0f6a8 Use AccessibilityManager#getRecommendedTimeoutMillis for Snackbar
Bug: 129806241
Change-Id: I4aabc3ee33560960f3117d82f9873fce60f1278a
2019-04-25 11:47:22 -07:00
Sunny Goyal 587421adbf Merge "Filling in content values on the worker thread" into ub-launcher3-qt-dev 2019-04-25 17:38:13 +00:00
Sunny Goyal 2e4477accb Filling in content values on the worker thread
Writing to disk hapens on the worker thread, so if we create content values on
UI thread, some values can change before it is written to disk.
This happens in case of shortcuts, where the badge is applied after the icon is queued,
but before it is written

Bug: 131303610
Change-Id: Ic35b17071d4ed3e5c5fee9f003a225e4ffdc74f3
2019-04-25 07:08:15 -07:00
TreeHugger Robot 23060080fe Merge "Hide Clear all button during quick switch" into ub-launcher3-qt-dev 2019-04-25 00:19:34 +00:00
Tony Wickham 66d1c2fada Hide Clear all button during quick switch
- Add support for mMinScrollX to PagedView
- Add RECENTS_CLEAR_ALL_BUTTON as a state-specified visible element
- In BackgroundAppState, set Clear all invisible and bound RecentsView
  scroll to the last task

Test:
- Open an app, quick switch until reaching the end, ensure Clear all
  does not show up and an overscroll effect is performed
- Enter overview, scroll to the end and ensure Clear all shows up
- Same tests in RTL and 3rd party launcher

Bug: 130160876
Change-Id: I5fb958744d0055b83ced1f8b0d7face0e06a0cc5
2019-04-24 17:09:34 -07:00
Hyunyoung Song bf44bc342f Fix NPE / add downX,Y location for all swipes/ add extra debugging info
Bug: 122700646
Bug: 127840207

Change-Id: I5862c8950565df172a933114e1fb2f9c4575593e
2019-04-24 16:16:51 -07:00
Ryan Mitchell 01b8b68db7 Rename launcher:iconSize attribute to prevent overriding material
A previous change [1] introduced the material library as a static library
for the SecondaryDisplayLauncher. The material library defines a
resource "attr/iconSize" with format="dimension" while Launcher3 defines
a resource of the same name with format="float". The material resource
is being overriden by the Launcher3 resource and is preventing aapt2
from disallowing multiple definitions of the same attribute with
different formats.

This change renames the Launcher3 iconSize so it will not collide with
the material resource.

[1] If183dd35a1d197c4a9a8225a021e36c4f1662587

Bug: 129146717
Test: build success and inspection of generated apk
Change-Id: I5eb54ea606ddcfb47d5150b44906a8707203e905
2019-04-24 16:22:51 +00:00
Vadim Tryshev 5caa017236 Merge "Logging requestLayout()" into ub-launcher3-qt-dev 2019-04-24 01:24:18 +00:00
vadimt bd0f116321 Logging requestLayout()
Bug: 129434166
Change-Id: Idd1a67523cb191775c4f871090489fce10ecc36e
2019-04-23 18:09:09 -07:00
TreeHugger Robot b31b38c942 Merge "Adding support for showing predicted apps as a floating row in all-apps and overview" into ub-launcher3-qt-dev 2019-04-23 21:47:38 +00:00
Sunny Goyal 77b3419ad5 Adding support for showing predicted apps as a floating row in all-apps
and overview

Bug: 130053407
Change-Id: Idb93a0ba6cfea8406f75ab86d9e0acde2fc04b3a
2019-04-23 14:26:44 -07:00
TreeHugger Robot dcacfd7d42 Merge "Use GestureDetector in WorkspaceTouchListener" into ub-launcher3-qt-dev 2019-04-23 20:27:35 +00:00
TreeHugger Robot 4ec6e44c72 Merge "Add tracing for non-loading model" into ub-launcher3-qt-dev 2019-04-23 20:17:36 +00:00
vadimt d518364d53 Add tracing for non-loading model
Bug: 131170582
Change-Id: Iffc3f5f38ce896c4cfd2df55bedcf43e2018a58f
2019-04-23 12:10:44 -07:00
Tony Wickham 12e8a34ef6 Move system gesture exclusion rect to LauncherRootView
We translate DragLayer when going to -1, so the exclusion rect was off
screen when you went back from there.

Bug: 129297464
Change-Id: Ie079b2dadaca07886408ee9c1d130d7ac351a61d
2019-04-23 11:52:50 -07:00
Govinda Wasserman c06e151e0f Makes Launcher hide the all apps content and scrim on assistant visible.
This hides the quick search bar and the suggested apps. Visibility is
unchanged when the all apps view is fully expanded.

Test: Tested locally
Change-Id: I6bc453b5ad89ca3d1280957e595bf2a3f074a72d
BUG:129755311
FIX:129755311
(cherry picked from commit 917af755e4)
2019-04-23 17:20:37 +00:00
Siarhei Vishniakou dff3beb6b9 Use GestureDetector in WorkspaceTouchListener
Replace the current callback logic in WorkspaceTouchListener with the
use of GestureDetector.
Platform-provided api will now be used  for detecting long press.

Test: long press on empty home screen
Bug: 126596502
Change-Id: I5beb9158ee0d9ec6ac031465f15923eed2d5f066
2019-04-23 10:00:59 -05:00
TreeHugger Robot 67e52822a4 Merge "Removing ShortcutInfoCompat and directly using ShortcutInfo" into ub-launcher3-qt-dev 2019-04-22 22:51:27 +00:00
Sunny Goyal 6bbf6004f8 Removing ShortcutInfoCompat and directly using ShortcutInfo
Change-Id: I2842689e192a206c0d31558c8126eae1c7904598
2019-04-22 15:39:40 -07:00
TreeHugger Robot f31848fe8d Merge "Skip state animation if animations are disabled" into ub-launcher3-qt-dev 2019-04-22 19:36:44 +00:00
Sunny Goyal 7368fa4369 Skip state animation if animations are disabled
> Also update the animation disabled check to use new-API

Bug: 118678948
Change-Id: Ib709844e34bdb7e369b368a7c33f2e8ff120024b
2019-04-22 10:00:01 -07:00
Sunny Goyal 8b0cb4113f Listening only for "android" package for overlay changes
Bug: 130917995
Change-Id: I37160a886a0afdc02dca8f7da6e8aa54c795882d
2019-04-22 09:02:08 -07:00
Jon Miranda de0093dfa5 Add ListenerView so that we can fast finish the FloatingIconView fade anim.
This change allows us to quickly end the animation if the user begins
interacting with launcher before the animation is over. This can currently
happen when the user swipes up to go home, and then quickly swipes up again
to enter overview.

Bug: 129421279
Change-Id: I88c7d55ef8ac09f999c082317de3bb3693c11466
2019-04-19 15:13:10 -07:00
Vadim Tryshev 9ccc21b637 Merge "Add more test diags" into ub-launcher3-qt-dev 2019-04-19 19:11:54 +00:00
vadimt 9c3b6bbe04 Add more test diags
Bug: 129434166
Change-Id: I1e2646e2e878eb3f7c93840937b33b2837aa31ac
2019-04-19 11:51:55 -07:00
Jon Miranda cd17e6db95 Use ActivityOptions.makeBasic for App Info animation.
Bug: 130442915
Change-Id: I4ca416d7aa27fc8c52fe5fe36384fe5839e83e06
2019-04-18 10:40:31 -07:00
Vadim Tryshev 44a063a16f Merge "Patching null dereference in AbstractFloatingView.getOpenView()" into ub-launcher3-qt-dev 2019-04-18 15:20:11 +00:00
vadimt 5a22ef7e61 Patching null dereference in AbstractFloatingView.getOpenView()
If there is a better solution, bug assignee, please proceed with it.

I'll land this immediately, as a lot of tests are broken.

Bug: 130739123
Change-Id: Iacdb9adbbf41f1f9de1390c3e7525ee0bd7beda6
2019-04-18 08:18:33 -07:00
Jon Miranda 2d08ca47f6 Restore line to make original view invisible when hideOriginal is true.
Accidentally removed the entire if statement in
Id4312d692b2a337aefe082e40faec344e76ecabb.

Change-Id: I14f87bc516a85986bbbd305f78e7b60f03a021ba
2019-04-17 18:27:35 -07:00
TreeHugger Robot 8f9830ec05 Merge "Do not draw anying in FloatingIconView if we are not hiding the original icon" into ub-launcher3-qt-dev 2019-04-18 00:56:11 +00:00
Jon Miranda 799c54a89a Do not draw anying in FloatingIconView if we are not hiding the original icon
Bug: 129328259
Change-Id: Id4312d692b2a337aefe082e40faec344e76ecabb
2019-04-17 13:52:08 -07:00
TreeHugger Robot 58ba7c10ec Merge "Fix a bug in bitwise logic" into ub-launcher3-qt-dev 2019-04-17 20:31:21 +00:00
vadimt f4d0139a43 Fix a bug in bitwise logic
For an example of the effect, see the bug.

Bug: 130415177
Change-Id: I59ed0c0c1a486653b3df0c601dd9af2a07e719f3
2019-04-17 13:12:04 -07:00