Commit Graph

17632 Commits

Author SHA1 Message Date
TreeHugger Robot 4a5bc9f8b0 Merge "Making CellLayout inflatable without LauncherActivtiy" into ub-launcher3-master 2018-11-21 01:21:49 +00:00
TreeHugger Robot d2fe2010f9 Merge "Removing Launcher dependency in search box layout" into ub-launcher3-master 2018-11-21 01:14:42 +00:00
Sunny Goyal ab770a10b9 Making CellLayout inflatable without LauncherActivtiy
This will allow creating cellLayout with a different device profile
or a different activtiy which can be used when displaying multiple
activities in multi-display or generating a preview for changing
display properties.

Change-Id: I386731d95e33c48bdef270ce9c0d3e9feefb6262
2018-11-20 17:11:13 -08:00
Ryan Lothian 1ede836b9b Merge "Get Robolectric tests passing" into ub-launcher3-master 2018-11-20 22:54:15 +00:00
Sunny Goyal 33611be973 Removing Launcher dependency in search box layout
Bug: 118758696
Change-Id: Id918c44b8bd2a97ab577481b7584afbe56e8a591
2018-11-20 13:53:33 -08:00
Hyunyoung Song 373e2534d3 Merge changes from topic "am-71b42e3a-02e4-4dc2-9f82-6d74158b505a" into ub-launcher3-master
* changes:
  [automerger skipped] [DO NOT MERGE] Fix clipping issue on adaptive icons skipped: 34973c93e4
  [DO NOT MERGE] Fix clipping issue on adaptive icons
2018-11-20 00:07:02 +00:00
TreeHugger Robot 1b5d7ea6f8 Merge "Moving some methods from various activities to the base interface" into ub-launcher3-master 2018-11-19 21:50:22 +00:00
Sunny Goyal fe8e4a90be Moving some methods from various activities to the base interface
This allows creating some custom views in the absence of
activity context

Bug: 118758696
Change-Id: I23999290e972a2a8cbd725a521a4e0c7c2e5023e
2018-11-19 13:04:35 -08:00
Android Build Merger (Role) e5221b0479 [automerger skipped] [DO NOT MERGE] Fix clipping issue on adaptive icons skipped: 34973c93e4
Change-Id: I70f0778ed7028f37f59699ed0a80b4d33ae80a4c
2018-11-19 19:35:38 +00:00
Hyunyoung Song 34973c93e4 [DO NOT MERGE] Fix clipping issue on adaptive icons
Bug: 116527322

More context: unlike previous issue that resulted in clipping on adaptive
icon due to launcher drawing issue (drawing outside the bounds, etc).
This issue is happening on b4 because when canvas is scaled after
the circle mask is digitized, there is a optical illusion that one line
of pixel seems missing. The issue is non observed if scaling is done
before setting the view bounds.

Change-Id: I7099075c88e77776c9cc4f23d79152293489cca2
2018-11-19 11:35:27 -08:00
Winson Chung b2f9c1f0c1 Fixing proguard to not warn about missing class in graphics package.
Change-Id: I894c092beed0e0c8dab4036ab12877fbaf282457
2018-11-15 13:38:35 -08:00
Ryan Lothian d813e79ecc Get Robolectric tests passing
+ Default SDK 28 -> 26, as >26 isn't available for
  unbundled make builds.

+ @Ignore 3 test methods that currently fail with
  resource-related errors.

Test: RunLauncherRoboTests succeeds locally
Bug: 119567714
Change-Id: Id6ea42cef050119d892b5af2b1ba1afc4c4f0b28
2018-11-15 20:17:33 +00:00
Jonathan Miranda a5c67901f8 Merge "Clean up span calculations in LauncherAppWidgetProviderInfo." into ub-launcher3-master 2018-11-15 00:35:55 +00:00
Winson Chung 3386fbf674 Ensure base StatsLogManager can be instantiated
Bug: 119500924
Change-Id: Ia1adfa75147508ff1ff2a119cfba62b034ae4604
2018-11-14 15:11:48 -08:00
Winson Chung 1296cf26f2 Updating shared lib for fw api change.
Change-Id: I42c6c85693d7f1c2b7a38de5f3dd05f43612b504
2018-11-14 10:36:27 -08:00
Tony Wickham c8d1716a9c Merge "Creating a new dismiss animation while one is pending is now valid" into ub-launcher3-master 2018-11-14 02:43:39 +00:00
Tony Wickham 026a5db8fd Merge "Fix quick switch when swiping right on back button" into ub-launcher3-master 2018-11-14 02:43:15 +00:00
Tony Wickham cad49c6721 Creating a new dismiss animation while one is pending is now valid
It used to be an invalid state to create a new dismiss animation while
one was pending, because the only way to do it was to swipe up. However,
now there are a number of places we create the dismiss animation, e.g.:
- When entering split screen
- Clear all
- Uninstalling an app

So now, instead of calling this an illegal state, we simply cancel the
previous pending dismiss if it exists.

Bug: 118880699
Bug: 118400078
Change-Id: I4d073f7e9d50e832ba4ae55391530040a0fac50c
2018-11-13 15:47:29 -08:00
Tony Wickham bdc5f3d9e6 Fix quick switch when swiping right on back button
Deferring the window tracking when touching down on the back button means that
we don't set isQuickSwitch before setting the state to FAST_OVERVIEW, making it
not scale up to be full screen. To fix this, we reapply the state when preparing
QuickScrubController for quick switch.

Change-Id: Ib3dcf300c45a00673ff9337f98d16d4e8cdf1ea0
2018-11-13 15:31:57 -08:00
TreeHugger Robot 9c9625a15f Merge "Moving come tests to Roboelectric" into ub-launcher3-master 2018-11-13 23:22:53 +00:00
TreeHugger Robot 4194f242ae Merge "Fix quick scrub skipping more than one page" into ub-launcher3-master 2018-11-13 18:04:10 +00:00
Tony Wickham 873264c71b Fix quick scrub skipping more than one page
There was a race condition where we were getting onQuickScrubProgress
before onQuickScrubStart. If we got enough of those, we were jumping
some pages before the block is set in onQuickScrubStart (which also adds
its own page jump). Now we don't send any onQuickScrubProgress() to
QuickScrubController until we have sent onQuickScrubStart()

Bug: 118636260
Change-Id: I60084850b0b1baad34112ab5945fce81cc3a3c53
2018-11-13 17:58:31 +00:00
Vadim Tryshev 9d9310ba72 Merge "Fix showing strange Launcher on pressing Home." into ub-launcher3-master 2018-11-13 01:28:24 +00:00
Vadim Tryshev e45e60140e Fix showing strange Launcher on pressing Home.
Bug: 118441555
Test: manual, race condition repro, TaplTests
Change-Id: I8b09895558f8baa72eb3a794724170417fadfda6
2018-11-12 16:11:55 -08:00
Winson Chung 4e362ea0f5 Clear click listener when the icon is removed.
- The click listener should be removed, otherwise, it can still active
  and clickable when the TaskView is bound to a new Task whose icon
  has not yet been loaded, which can cause crash.

Bug: 118834133
Change-Id: Ifd9fd8fe99b6177851d366f0c21f8fad59f1950e
2018-11-12 19:21:31 +00:00
Sunny Goyal 06a07e9748 Moving come tests to Roboelectric
> Fixing resource loading in robo tests

Change-Id: Id5b8a0e4916a2a200da7a41b03f19846834beb1f
2018-11-12 10:49:59 -08:00
Bill Yi f1982fcaae Import translations. DO NOT MERGE
Change-Id: I22579d4f7492047b291e6c6a7f73508ccad3af2d
Auto-generated-cl: translation import
2018-11-10 00:27:25 -08:00
Tony Wickham 4cdf0bd49f Merge "Add ToggleableGlobalSettingsFlag for QUICK_SWITCH" into ub-launcher3-master 2018-11-10 00:48:54 +00:00
Sunny Goyal 202fabfe10 Adding reusable version of IconCache and IconFactory
> Adding resource based allowing projects to control cache behavior
> Fixing missing comments from ag/5470467
> Adding support for no-immemory cache

Bug: 115891474
Change-Id: I691206805430cd93d3be78119bc249cefd79790a
2018-11-09 15:44:07 -08:00
Tony 94c5b83a7e Add ToggleableGlobalSettingsFlag for QUICK_SWITCH
- ToggleableGlobalSettingsFlag saves/loads from Settings.Global rather than
  SharedPrefs, allowing other processes to update the setting as well.
- ToggleableGlobalSettingsFlag#get() reads from storage every time.
- Add the flags' descriptions to the feature flags settings UI.

Change-Id: I9cfc44ddaa5d9e223cf77a9b2475f8d25757d1fb
2018-11-09 15:27:24 -08:00
TreeHugger Robot 7b3c12f90e Merge "Allow overriding flags in Robolectric tests" into ub-launcher3-master 2018-11-09 16:08:29 +00:00
Sunny Goyal 1a9cbd3c88 Moving BaseIconCache to icon lib
Change-Id: I4fb56dcd6231a848d152e690edaf8885efbc995a
2018-11-08 15:18:25 -08:00
Ryan Lothian af0c0e8b0d Allow overriding flags in Robolectric tests
Bug: 117235618
Change-Id: Ibc01a4fe1de6a38d9fc620e4601fdb2282bf03e1
2018-11-08 17:25:23 -05:00
Sunny Goyal 024659c1b0 Fixing wrong layout used to calculate drag-n-drop location
Bug: 119229781
Bug: 119234125
Change-Id: I24425a7754db3dfef803088761fa67c9586d89d9
2018-11-08 11:10:59 -08:00
TreeHugger Robot 160bfcfede Merge "Moving some utility classes to icon lib" into ub-launcher3-master 2018-11-08 07:59:34 +00:00
TreeHugger Robot e74d89be14 Merge "Requiring apps_view on workspace" into ub-launcher3-master 2018-11-08 02:29:39 +00:00
Vadim Tryshev 8effd11e08 Requiring apps_view on workspace
Update TAPL to reflect that apps_view is visible on workspace.

Test: TaplTests
Change-Id: I27e0f43d9200c18571573acd0ddedc1dc064cdc3
2018-11-07 18:07:50 -08:00
Sunny Goyal 9a4c5be23e Moving some utility classes to icon lib
Change-Id: I0cc19ea02fb0732e9e1778a18c0d2c229232d179
2018-11-07 13:16:07 -08:00
TreeHugger Robot 8b8ff994d2 Merge "Removing some Launcher3 dependencies from BaseIconCache" into ub-launcher3-master 2018-11-07 20:16:21 +00:00
Sunny Goyal 65ce2cc990 Fixing androidx preference fragments not being preserved by proguard
Bug: 119122391
Change-Id: Ib41010d4ac5f79a14a2b132ed723ad92580bc405
2018-11-07 10:08:47 -08:00
TreeHugger Robot eba272a562 Merge "Disable AddItemActivity on Android Go devices." into ub-launcher3-master 2018-11-06 23:56:57 +00:00
Rajeev Kumar 4851cf76a3 Disable AddItemActivity on Android Go devices.
Android Go doesn't support adding shortcuts to home screen.
Bug: 112904271
Test: Manual test

Change-Id: I28b20d0d9e5b5e7e91c16ca3ea355bb0c3984c42
2018-11-06 15:16:36 -08:00
TreeHugger Robot 1b34109d6a Merge "Adding an interface to allow adding custom views in FloatingHeaderView" into ub-launcher3-master 2018-11-06 23:00:05 +00:00
Sunny Goyal e62d2bb165 Removing some Launcher3 dependencies from BaseIconCache
Change-Id: Ic80ed4a5cd2fc414cd6c27096d798e7f0b8efc72
2018-11-06 14:51:55 -08:00
Sunny Goyal dcf917b133 Adding an interface to allow adding custom views in FloatingHeaderView
Bug: 109828640
Change-Id: I9bde5d4fab47eb3e5787bbb741b5b9051a15c0c2
2018-11-06 14:50:16 -08:00
Vadim Tryshev b63bcf1113 Merge "Adding animation when opening app usage settings" into ub-launcher3-master 2018-11-06 22:26:38 +00:00
Sunny Goyal 41e8da3cee Removing Launcher3 util class dependency in IconCacheUpdateHandler
Change-Id: I7317c11cd2aa54b4b7647aa5644b23c91a240d19
2018-11-06 12:32:35 -08:00
Sunny Goyal 066ace1b88 Replacing setAlphaComponent with setAlphaComponentBound for better animation interpolation
setAlphaComponent throws expetion for invalid range, which can cause brashes in overshoot
interpolation

Bug: 118390004
Change-Id: Ic9c5ff3d660eba353b982c4c47ccfaf329b3e296
2018-11-06 09:59:03 -08:00
TreeHugger Robot 5bd44153fd Merge "Remove duplicate test" into ub-launcher3-master 2018-11-06 16:14:31 +00:00
Ryan Lothian bb80025ef4 Remove duplicate test
I cloned the existing Instrumentation-based IntSetTest class
to be our first Robolectric test. Now Robolectric is working,
we can delete the Instrumentation test version.

Change-Id: I3adcfc451988a908c002b769b398348cb1782f1d
2018-11-06 10:57:17 -05:00