Commit Graph

12918 Commits

Author SHA1 Message Date
Jon Miranda
f7ff3fe58a Scale widgets when dragging and dropping in multi-window mode.
This change mimics the non-MW mode behavior when dragging and
dropping widgets by taking the app widget scale into consideration.
This ensures a consistant drag and drop experience between
MW mode and non-MW mode.

* Uses cell data (cell height/width, spanX/Y) to get the expected
widget sizes.
* Scales sizes when necessary.

Bug: 32176631
Change-Id: Icdaf73ecd89a30e57fe7f405292d793f2d6a3ee8
2016-12-08 10:28:51 -08:00
Tony Wickham
4633be64e8 Fix for mTransitionProgress not being updated throughout animation.
Change-Id: I8f792794b7bc6edff081383b5a0a74af04a744ad
2016-12-06 17:11:35 -08:00
Sunny Goyal
36f71f873b Merge "Bug fix: QSB sometimes gets stuck to transparent." into ub-launcher3-master 2016-11-30 17:50:01 +00:00
Sunny Goyal
b7f5431232 Merge "Moving ShortcutInfo creation in InstallShortcutReceiver to background thread" into ub-launcher3-master 2016-11-30 16:42:31 +00:00
Sunny Goyal
2bcbe13c64 Moving ShortcutInfo creation in InstallShortcutReceiver to background thread
> Creating shortcut info requires iconCache access

Bug: 21325319
Change-Id: I3317d8b6824aa05b836f3ed3626f169d4d34f783
2016-11-30 05:47:57 +05:30
Sunny Goyal
70fc828256 Merge "Fixing wrong message sent on app widget host reset" into ub-launcher3-master 2016-11-30 00:10:06 +00:00
Sunny Goyal
72db9afef4 Fixing wrong message sent on app widget host reset
Change-Id: If5842d4ebbf3fa0ef8596f22788f909748f01ac5
2016-11-29 07:26:20 +05:30
Sunny Goyal
1c581c6d61 Bug fix: QSB sometimes gets stuck to transparent.
At some places, we were calling removeAllListeners before calling cancel
 on an animation. AnimationListeners are also used to track states, and
 removing listeners before canceling will prevent onAnimationEnd to be
 called, thus preventing state cleanup.
 PinchAnimationManager was causing ZeroAlphaAnimatorListener to be removing
 from Qsb alpha animation, making the MultiStateAlphaController think there
 is a zeroAlpha animation running.

> Removing all instances of removeAllListeners
> Updating various affected listeners to handle onAnimatinoCancel
> Fixing WorkspaceStateTransitionAnimation, which was animation QSB alpha
  on page scroll index

Bug: 31910152
Change-Id: Ie7f31b67d4c502badcdd41f7b04867d1f35f5d27
2016-11-24 15:32:45 +05:30
Jon Miranda
7ae64ffbe1 Scale widgets in multi-window mode.
To keep this CL small and focused, I'm going to create
a separate CL that handles the scaling for the widget in
drag and drop mode.

Bug: 32176631
Change-Id: Id6557d070edb664aa1f4851de7abf494cf8a0677
2016-11-23 10:32:42 -08:00
Jon Miranda
feba90fe80 Added logging for HOME_INTENT and BACK commands.
Document: go/false-longpress-overview

Change-Id: If6ba4996c861a44f4950b41acb4246e3a483d8f2
2016-11-21 17:01:24 -08:00
Hyunyoung Song
0860e41d50 Add logging for workspace rearrangement in overview mode
am: 0d4899026c

Change-Id: Ie6569ecafdd63981e167a910f852a8133697ae81
2016-11-21 19:48:08 +00:00
Sunny Goyal
d423a8b868 Merge "Changing DeepShortcutManager to have a singleton contructor instead of getting it from LauncherAppState" into ub-launcher3-master 2016-11-21 17:07:05 +00:00
Sunny Goyal
0993a37838 Merge "Adding a utility class to enforce that icons are always flattened on the background thread." into ub-launcher3-master 2016-11-21 17:02:10 +00:00
Sunny Goyal
dde4fd971e Changing DeepShortcutManager to have a singleton contructor instead
of getting it from LauncherAppState

This follows the design of other managers and makes it easier to access it
from other processes and non-ui thread.

Bug: 33032833
Change-Id: I8ad82ae5b6cc47bae885f9896985675c7dd0d5b8
2016-11-21 22:28:23 +05:30
Sunny Goyal
aa8a871e33 Removing widgetGap and heightGap from cellLayout
This values are always set to 0

Change-Id: Ic317efdc65baa22e915f4766c60c67c116bb94a8
2016-11-20 15:26:26 +05:30
Sunny Goyal
32f3dda802 Adding a utility class to enforce that icons are always flattened on
the background thread.

Bug: 21325319
Change-Id: I4d0f02557cdbf70cfa86750ac047faf2917e39bf
2016-11-19 23:40:07 +05:30
Sunny Goyal
db2fa049a6 Merge "Moving saving state transtion listener logic to individual views" into ub-launcher3-master 2016-11-18 01:17:51 +00:00
Sunny Goyal
0666592bea Merge "Fixing item check when user is enabled/disabled" into ub-launcher3-master 2016-11-17 22:41:35 +00:00
Hyunyoung Song
0d4899026c Add logging for workspace rearrangement in overview mode
b/32457561

Change-Id: Ic38fbd540616a74f26c19a09ab4247fe8f9174b4
2016-11-17 20:48:18 +00:00
Jonathan Miranda
dd126a362a Merge "Add bottom padding to hotseat in multi-window mode." into ub-launcher3-master 2016-11-16 16:31:20 +00:00
Sunny Goyal
4f9611a87c Fixing item check when user is enabled/disabled
Bug: 32747950
Change-Id: I278cbd7626ee30be6b803d617cf05f8359e5d940
2016-11-15 17:27:53 -08:00
Hyunyoung Song
6f59cff0d6 Make Launcher3 privileged module am: 7810d4bfa9
am: fb9fe7c157

Change-Id: I8cc95fd91df275defcc90b222be9ac166f98618d
2016-11-16 00:18:08 +00:00
Hyunyoung Song
fb9fe7c157 Make Launcher3 privileged module
am: 7810d4bfa9

Change-Id: Id58c4dab888e8a97ccab39b1934515e3f8bb0db0
2016-11-16 00:11:06 +00:00
Jon Miranda
c1b08c5b7f Add bottom padding to hotseat in multi-window mode.
In multi-window mode, the navigation bar is black which makes the
hotseat's top padding -- and lack of symmetric botom padding --
super apparent. We add bottom padding to the hotseat so that the
hotseat icons remain visually centered.

Bug: 32176631
Change-Id: I3eebf5ab98898c8ee092bda6ec48c6afdcd353b9
2016-11-15 14:37:56 -08:00
Jonathan Miranda
0b80aca9c5 Merge "Hide workspace text in multi-window mode." into ub-launcher3-master 2016-11-15 20:17:42 +00:00
Tony Wickham
075b878842 Merge "Animate icons back to where they were picked up." into ub-launcher3-master 2016-11-15 19:53:32 +00:00
Jon Miranda
93e1f04fa9 Hide workspace text in multi-window mode.
* Vertically centers workspace icons.
* New iconDisplay value so shortcut text is not overriden.

Bug: 32176631

Change-Id: I86753bab5b24aafc417e0f77d8c471fc4c0dc7f0
2016-11-15 11:19:03 -08:00
Sunny Goyal
f8d5370a9f Merge "Catching TransactionTooLargeException when binding widget." into ub-launcher3-master 2016-11-15 19:07:32 +00:00
Jonathan Miranda
5202aa7504 Merge "Using dimension defined for all apps search bar height." into ub-launcher3-master 2016-11-15 18:52:16 +00:00
Tony Wickham
078e688d30 Merge "Add ShortcutsLaunchTest and ShortcutsToHomeTest." into ub-launcher3-master 2016-11-15 18:03:07 +00:00
Sunny Goyal
db36437931 Moving saving state transtion listener logic to individual views
Change-Id: If5402b6961d7d6be0c50778f27a8746ed6f1bbfb
2016-11-14 17:43:31 -08:00
Sunny Goyal
b79692b26f Merge "Moving the setContentView at the end of onCreate" into ub-launcher3-master 2016-11-15 00:53:29 +00:00
Tony Wickham
f38d8593bd Add ShortcutsLaunchTest and ShortcutsToHomeTest.
- ShortcutsLaunchTest verifies that launching shortcut
  from the deep shortcuts container works.
- ShortcutsToHomeTest verifies that shortcuts can be
  dragged from the deep shortcuts container.

Change-Id: I6919b69d4ea1c9e0f13a8f236266745c12ef0715
2016-11-14 15:29:10 -08:00
Tony Wickham
05b20b0712 Fix drag and drop test by moving a bit if there are shortcuts.
Change-Id: Icd023f5d095610b6d1aadbf455d068ce7d700768
2016-11-14 14:14:19 -08:00
Hyunyoung Song
7810d4bfa9 Make Launcher3 privileged module
Make privileged module to enable Launcher to render search widget
without granting permission to gmscore.

Change-Id: I920233ced18325ecc8db70e9227993913a2d9762
(cherry picked from commit 3fa9954cf1)
2016-11-14 20:00:16 +00:00
Hyunyoung Song
14b64340ab Merge "Change support lib res path" into ub-launcher3-master 2016-11-14 19:00:35 +00:00
Hyunyoung Song
3fa9954cf1 Make Launcher3 privileged module
Make privileged module to enable Launcher to render search widget
without granting permission to gmscore.

Change-Id: I920233ced18325ecc8db70e9227993913a2d9762
2016-11-14 18:59:23 +00:00
Hyunyoung Song
426d089290 Change support lib res path
b/32869945

> warning message will be gone after $ tapas Launcher3 && make

Change-Id: I1780704e206c3cbb458ab76de623eef502b28b8c
2016-11-14 10:46:08 -08:00
Jon Miranda
145435ef6e Using dimension defined for all apps search bar height.
In portrait multi-window mode, hotseat cell height is
too small. Found that there was already a resource for
all_apps_search_bar_height so using that instead.

Change-Id: I56647eb55a7808e93bdcbb3334b1513f6ac23d7c
2016-11-11 14:35:20 -08:00
Sunny Goyal
0bbd5548ac Moving the setContentView at the end of onCreate
In multi-window mode, when the activity is resized, the window might
exist even before onCreate, which could call onAttachToWindow while
they are being inflated. Many Views in Launcher assume
onAttachToWindow to be called after onCreate has completed.

Bug: 32745705
Change-Id: Id6ee68826c4f3cc579880540812fd8ed834f8267
2016-11-11 13:43:13 -08:00
Jonathan Miranda
47a96054d9 Merge "Refactor edge of screen detection code." into ub-launcher3-master 2016-11-11 19:45:25 +00:00
Sunny Goyal
015bee7a6a Merge "Removing dependency on LauncherActivityInfoCompatV16" into ub-launcher3-master 2016-11-11 19:33:25 +00:00
Tony Wickham
6b910a235d Keep disabled FastBitmapDrawables disabled while fast scrolling.
Previously, they were animating to be colored because they were
set to have a FAST_SCROLL_UNLHIGHLIGHTED state. Now they retain
their disabled color when changing fast scroll states.

Specfically, we remove the DISABLED state and instead make it a
property of the FastBitmapDrawable.

Bug: 32642959
Change-Id: I6cb2da134a550c267eebfc756eff8c91a33f028c
2016-11-11 10:59:17 -08:00
Sunny Goyal
f4a0d1886f Merge "Enabling async inflation for AppWidgets" into ub-launcher3-master 2016-11-10 19:50:24 +00:00
Hyunyoung Song
9117e94e4c Reduce the scope of proguard rule to fix the broken build.
Change-Id: I27506dc26875d320a61d5d016f72bb2d221ca4d1
2016-11-09 19:30:06 -08:00
Hyunyoung Song
19e1b5a483 Fix broken build
am: ee7c1c1950

Change-Id: Ib8a7138a9566960462f4d574b8dce659f64eb2e5
2016-11-10 02:22:12 +00:00
Hyunyoung Song
ee7c1c1950 Fix broken build
Change-Id: I51af52c9ddcae1675d15eb37a2f48fd0b3cd09c3
2016-11-09 18:03:56 -08:00
Hyunyoung Song
f8f3196ef5 Fix all apps auto scroll issue on talkback mode b/30769215
am: 4d11a2a2a0

Change-Id: Idb995c7ac676287bc7f17ad11792996be8561479
2016-11-10 01:44:10 +00:00
Sunny Goyal
1ef74f5151 Merge "Moving various runnables in LauncherModel to individual tasks" into ub-launcher3-master 2016-11-10 00:50:22 +00:00
Sunny Goyal
4ece6ed261 Merge "Fixing build breakage due to proto compiler change" into ub-launcher3-master 2016-11-10 00:26:37 +00:00