Commit Graph

49925 Commits

Author SHA1 Message Date
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
Tamas Berghammer e54852d9f4 Update package names to work with the proto3 compiler
Bug: b/28974522
Change-Id: I5f3adf4946ee4ba1e09e4f40afe83c151405972a
(cherry picked from commit f4f62cfb2d)
2016-11-10 00:25:46 +00:00
Sunny Goyal 58bcd5a8a3 Fixing build breakage due to proto compiler change
Change-Id: I5cfc8d42e58ff7836e1946f9a4719254fb1b144b
2016-11-09 16:24:48 -08:00
Sunny Goyal f0ba8b7ca1 Moving various runnables in LauncherModel to individual tasks
> Adding tests for some of the runnable

Change-Id: I1a315d38878857df3371f0e69d622a41fc3b081a
2016-11-09 15:50:08 -08:00
Sunny Goyal 712ee53c67 Catching TransactionTooLargeException when binding widget.
A widget can potentially bypass binder size limit with remote views when
using partual updates (as the merging happens on the system service). In
such a case, show the widget in error state.

Bug: 32365088
Change-Id: Id1c4425958a06463273731464e31f05908c35ec7
2016-11-09 12:43:11 -08:00
Hyunyoung Song 4d11a2a2a0 Fix all apps auto scroll issue on talkback mode
b/30769215

Change-Id: Idd0bbe1ac15c02d42eb28731955b80bab61ba6cc
2016-11-09 12:08:56 -08:00
Sunny Goyal 1582f1673b Removing dependency on LauncherActivityInfoCompatV16
Bug: 32745285
Change-Id: Iece352c891dd9e573c526831c62833f5387ce2b6
2016-11-08 14:41:15 -08:00
Sunny Goyal 0d547bfd57 Merge "Changing status bar color extraction to use region decoder" into ub-launcher3-master 2016-11-08 21:53:33 +00:00
Sunny Goyal a9f1e720f9 Changing status bar color extraction to use region decoder
Change-Id: Ie9913a9cb28948128e6624dc3a335c790fa5a11a
2016-11-08 09:37:34 -08:00
Jonathan Miranda 5e44e2b1ad Merge "Use display metrics from resources." into ub-launcher3-master 2016-11-08 17:19:43 +00:00
Jon Miranda f92af1d440 Use insets and hotseatCellHeightPx to set search container height.
In a previous refactor, I mistakenly used hotseatBarHeightPx instead of
hotseatCellHeightPx.

Bug: 32176631
Change-Id: I53ef8fa29a6980dcb33bb979d1bed98317c8ade2
2016-11-07 17:05:14 -08:00
Jon Miranda 3ca089905b Use display metrics from resources.
Change-Id: If23071528f76b2c7825337b1bc7ac7570b8844ed
2016-11-07 16:45:15 -08:00
Sunny Goyal 99014e5c43 Merge "Using BitmapRegionDecoder to only parse partial bitmap during color extraction" into ub-launcher3-master 2016-11-08 00:17:03 +00:00
Jon Miranda 2b073be654 Fix bug where AllApps shadows weren't being completely clipped.
Worked fine in normal launcher conditions, but surfaced when
using AllApps in multi-window mode.

Bug: 32176631
Change-Id: Ic973f707a69dd5d8c5eafa0dc2d154aa6ab0e001
2016-11-07 16:01:20 -08:00
Jon Miranda 51f037d674 Refactor edge of screen detection code.
There were two resources that both defined the edge of the screen.

Change-Id: I82ab553cc3123ef54ff1f0c692d29f3678ad04ac
2016-11-07 10:11:49 -08:00
Sunny Goyal c48a89e59c Merge "Calling buildLayer only on views which are actually visible" into ub-launcher3-master 2016-11-07 18:09:43 +00:00
Sunny Goyal 47564ca3a1 Merge "Simplifying mapCoordInSelfToDescendant" into ub-launcher3-master 2016-11-07 18:09:39 +00:00
Sunny Goyal 1b997d3383 Using BitmapRegionDecoder to only parse partial bitmap during color extraction
Change-Id: I3474c5e2f880144379b1810ccaef247f4a8d1330
2016-11-07 10:08:21 -08:00
Jon Miranda bf7d8121ea Scale down folder cells to fit within bounds if necessary.
The number of folder cols/rows are set in InvariantDeviceProfile.
Because of this, we may need to scale down the folder cells in
multi-window mode.

Bug: 32176631
Change-Id: I925d5ac9d29439c5d61cf089e7784065a8cb5ebd
2016-11-04 14:15:33 -07:00
Jonathan Miranda 8f6ada9563 Merge "Match AllApps start and end paddings." into ub-launcher3-master 2016-11-04 17:31:33 +00:00
TreeHugger Robot 724943dcbd Merge "Remove unused Utilities methods related to motion event translation" into ub-launcher3-master 2016-11-03 23:38:18 +00:00
Jon Miranda 068953bccc Match AllApps start and end paddings.
Padding was only on the end to account for the scrollbar. Adding
padding to the left allows the icons on AllApps to align with the icons
on the workspace.

Bug: 32640697
Change-Id: Iced9287979a11afda98bc6bfc926fe87182bee68
2016-11-03 16:20:15 -07:00
Tony Wickham aa7d8776c8 Remove unused Utilities methods related to motion event translation
These were necessary when we had the ShortcutsContainerListener with
touch forwarding, but they are no longer used since we removed that
listener when we moved to the pre-drag model.

Change-Id: I845d4a1a73fa1a675cef1c52fe304357674a2f68
2016-11-03 15:51:55 -07:00
Sunny Goyal dcc0ba29a5 Enabling async inflation for AppWidgets
Bug: 22839968
Change-Id: Id622053c2882f478b3a3ab3918a9f76750ead8c6
2016-11-03 15:25:23 -07:00
Sunny Goyal ff646727fd Merge "Fixing screen center not getting calculated properly" into ub-launcher3-master 2016-11-03 01:02:37 +00:00
Jon Miranda c3e4e228b1 Remove unused code in DeviceProfile.
Change-Id: I463302e6711ad39241257b8dff058d9f3e99d883
2016-11-02 16:56:52 -07:00
Tony Wickham ea62fe0be1 Animate icons back to where they were picked up.
We do this for pre-dragged icons instead of calling onDrop().
- Removes need for special logic in onDrop() to check if mIsInPreDrag
- Dropping from pre-drag in all apps also animates instead of jumping

We also do this when dropping an icon while still transitioning
to spring-loaded mode, to avoid having a janky jump at the end
- Bug: 27135377

Change-Id: I4548c3e2fef3423d1ba36057fb53807b1b4ad0fc
2016-11-02 15:07:57 -07:00