Commit Graph

17708 Commits

Author SHA1 Message Date
Winson Chung 8bcc8d627a Updating shared lib for rounded corners.
Change-Id: I75acb5b0edbda214ff88698b2ca93716d3b69fe0
2018-12-04 10:13:21 -08:00
Lucas Dupin aaf859f238 Correct 🕳️ 👊👊👊👊👊👊
🕳️ 👊👊👊👊

Bug: 111514493
Change-Id: Ie770de06dabe42e5e620ac9c7ec9da256f3d58f5
Fixes: 116745318
2018-12-03 20:50:52 -08:00
Lucas Dupin d0ab1d0578 Rounded corners on app transitions
Test: Manualy launch an app
Test: Press home when activity is on top of the stack
Test: Quick scrub
Test: Swipe up on the home button, swipe down
Bug: 111514493
Fixes: 116745318
Change-Id: I66d25bc433061ede46107ea9651c198614306692
(cherry picked from commit faa443308e)
2018-12-03 20:50:43 -08:00
Hyunyoung Song 4d64da3259 Merge "setVisibility should not propagate focus on children views" into ub-launcher3-master 2018-12-01 01:21:51 +00:00
TreeHugger Robot ddf3592803 Merge "Move BadgeRenderer to iconloader library" into ub-launcher3-master 2018-12-01 00:37:30 +00:00
Tony Wickham 8912b04c80 Move BadgeRenderer to iconloader library
- Rename BadgeRenderer to DotRenderer
- Move drawing parameters to new class DrawParams
- Add leftAlign param
Change-Id: I69de56c13280ba5e7e1ea3868c23edfac01012e9
2018-11-30 16:28:56 -08:00
Hyunyoung Song 63dd081b36 setVisibility should not propagate focus on children views
Bug: 120064903
Change-Id: I2d58d1ef89db7749f9e6551c716b3cc0567915b3
2018-11-30 13:31:37 -08:00
TreeHugger Robot d5edac3d31 Merge "Moving composing task content description to resources" into ub-launcher3-master 2018-11-30 19:32:02 +00:00
Vadim Tryshev 49db73a7c1 Moving composing task content description to resources
Bug:118319143
Test: Manual
Change-Id: Iedcf3d90191614011b9b7d35afabb17a5b5953b3
2018-11-30 11:24:14 -08:00
Tony Wickham 35903e1d9d Merge "Fix end state when animating launcher after swipe up from an app" into ub-launcher3-master 2018-11-30 17:21:59 +00:00
Sunny Goyal b891eebbb5 Fixing shortcut icons are not getting correct color extraction.
> Avoiding color extraction for icons which have already be evaluated
> Fixing color extraction from hardware bitmaps

Bug: 111343544
Change-Id: I624866e892465684871fbc130003e32945d86460
2018-11-30 01:41:56 -08:00
Tony 6cfb0edb41 Fix end state when animating launcher after swipe up from an app
Previously we were comparing the controller's progress at the time of
the end of the animation... which is always 1. Instead, we should be
comparing the effective final progress based on the interpolator.

Change-Id: I18110b5a3b914839860931187f39cfa11182b3e2
2018-11-29 11:35:16 -08:00
Winson Chung 6478d4f41b Merge "Updating shared lib for display id change." into ub-launcher3-master 2018-11-28 19:21:27 +00:00
Winson Chung a682accb9e Updating shared lib for display id change.
Change-Id: Ie4c5362cc89f6e5cc146c70912c1d8dfa6fd781a
2018-11-28 10:53:43 -08:00
lumark 0072844e7f Modify TaskSystemShortcut.SplitScreen for API change.
Using View#getDisplay().getDisplayId() into
IWindowManager.overridePendingAppTransitionMultiThumbFuture()
for multi-display support.

Bug: 119530958
Test: manual
Change-Id: Icde73b2545f879771a62030c8151a86a324fa593
(cherry picked from commit 233622d907)
2018-11-28 18:50:41 +00:00
TreeHugger Robot aa576bce02 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2018-11-28 03:42:42 +00:00
Vadim Tryshev 84ed4d256a Merge "Prototype for the DWB toast in Overview" into ub-launcher3-master 2018-11-28 01:45:31 +00:00
Vadim Tryshev a8492330ac Prototype for the DWB toast in Overview
No UX spec is ready, so using some placeholder layout.
No attention to string localization since I feel that strings may
change, compared to current mocks.
Not using remaining-time API, as it is not ready.

Bug:118319143
Test: Manual
Change-Id: I50cff9099677db543e95963f058d3e89eab07d8f
2018-11-27 17:20:22 -08:00
TreeHugger Robot 429395f043 Merge "Moving autority definition to a separate file, so that it can be easily customized using android studio" into ub-launcher3-master 2018-11-28 00:59:35 +00:00
Sunny Goyal 4276e7b649 Moving autority definition to a separate file, so
that it can be easily customized using android studio

Change-Id: I17f4f4511c2af5d382727769d1b74413f233d500
Bug: 120079798
2018-11-27 23:20:32 +00:00
Bill Yi bb90b10769 Import translations. DO NOT MERGE
Change-Id: I3cf21f4d95dc22c8cf1b762ccf9e695b84737574
Auto-generated-cl: translation import
2018-11-27 11:13:43 -08:00
TreeHugger Robot 33fd26f025 Merge "Moving Pause button to the left of the context menu header" into ub-launcher3-master 2018-11-26 23:36:21 +00:00
Vadim Tryshev fdfeb6dd3b Moving Pause button to the left of the context menu header
See this mock:
https://www.google.com/url?q=https://docs.google.com/presentation/d/1AepsnLeKcRhjMW35SkB5yMKO3u6waigug8Tyfe0LO5o/edit%23slide%3Did.g455d187f2a_0_45&sa=D&ust=1542320415002000&usg=AFQjCNH-jsy5THG1WqxjeYbj628QFMJKvQ

Bug: 117888000
Test: Manual
Change-Id: I1edbc569347f09f0806ad6749735c3dec198277a
2018-11-26 14:30:52 -08:00
Winson Chung a634c9d56c Merge "Updating shared lib jar for freeform call." into ub-launcher3-master 2018-11-26 22:06:20 +00:00
Winson Chung ed85dbd963 Updating shared lib jar for freeform call.
Change-Id: If4b4496ff85ffb18e3f499ed4b6a8eb97552e231
2018-11-26 11:32:14 -08:00
Evan Rosky a639c79112 Add a dev-mode freeform option to recents menu
When the developer option for freeform is enabled, provides
a "Freeform" option in the recents task overlay menu. This
is sort-of an analog to the freeform option in N recents;
however, since recents now is part of home, there's no
straightforward way to have multiple freeforms at a time,
so this really is only useful for developers.

Bug: None
Test: manual - enable freeform in dev settings, then pick
      Freeform from recent task overlay menu.
Change-Id: I5d8e95aaffb8fe43e655f705cacdd51859c95d3b
(cherry picked from commit 9beb6bf251)
2018-11-26 18:34:47 +00:00
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