Commit Graph

12902 Commits

Author SHA1 Message Date
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
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
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
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