OSDN Git Service

android-x86/packages-apps-Launcher3.git
7 years agoKeep disabled FastBitmapDrawables disabled while fast scrolling.
Tony Wickham [Tue, 8 Nov 2016 18:40:34 +0000 (10:40 -0800)]
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

7 years agoMerge "Enabling async inflation for AppWidgets" into ub-launcher3-master
Sunny Goyal [Thu, 10 Nov 2016 19:50:24 +0000 (19:50 +0000)]
Merge "Enabling async inflation for AppWidgets" into ub-launcher3-master

7 years agoReduce the scope of proguard rule to fix the broken build.
Hyunyoung Song [Thu, 10 Nov 2016 03:30:06 +0000 (19:30 -0800)]
Reduce the scope of proguard rule to fix the broken build.

Change-Id: I27506dc26875d320a61d5d016f72bb2d221ca4d1

7 years agoFix broken build
Hyunyoung Song [Thu, 10 Nov 2016 02:22:12 +0000 (02:22 +0000)]
Fix broken build
am: ee7c1c1950

Change-Id: Ib8a7138a9566960462f4d574b8dce659f64eb2e5

7 years agoFix broken build
Hyunyoung Song [Thu, 10 Nov 2016 02:03:56 +0000 (18:03 -0800)]
Fix broken build

Change-Id: I51af52c9ddcae1675d15eb37a2f48fd0b3cd09c3

7 years agoFix all apps auto scroll issue on talkback mode b/30769215
Hyunyoung Song [Thu, 10 Nov 2016 01:44:10 +0000 (01:44 +0000)]
Fix all apps auto scroll issue on talkback mode b/30769215
am: 4d11a2a2a0

Change-Id: Idb995c7ac676287bc7f17ad11792996be8561479

7 years agoMerge "Moving various runnables in LauncherModel to individual tasks" into ub-launche...
Sunny Goyal [Thu, 10 Nov 2016 00:50:22 +0000 (00:50 +0000)]
Merge "Moving various runnables in LauncherModel to individual tasks" into ub-launcher3-master

7 years agoMerge "Fixing build breakage due to proto compiler change" into ub-launcher3-master
Sunny Goyal [Thu, 10 Nov 2016 00:26:37 +0000 (00:26 +0000)]
Merge "Fixing build breakage due to proto compiler change" into ub-launcher3-master

7 years agoUpdate package names to work with the proto3 compiler
Tamas Berghammer [Mon, 31 Oct 2016 18:07:11 +0000 (18:07 +0000)]
Update package names to work with the proto3 compiler

Bug: b/28974522
Change-Id: I5f3adf4946ee4ba1e09e4f40afe83c151405972a
(cherry picked from commit f4f62cfb2d93637880279a7eb5b9ce2f6bddce82)

7 years agoFixing build breakage due to proto compiler change
Sunny Goyal [Thu, 10 Nov 2016 00:24:30 +0000 (16:24 -0800)]
Fixing build breakage due to proto compiler change

Change-Id: I5cfc8d42e58ff7836e1946f9a4719254fb1b144b

7 years agoMoving various runnables in LauncherModel to individual tasks
Sunny Goyal [Fri, 9 Sep 2016 22:47:55 +0000 (15:47 -0700)]
Moving various runnables in LauncherModel to individual tasks

> Adding tests for some of the runnable

Change-Id: I1a315d38878857df3371f0e69d622a41fc3b081a

7 years agoFix all apps auto scroll issue on talkback mode
Hyunyoung Song [Wed, 9 Nov 2016 20:08:56 +0000 (12:08 -0800)]
Fix all apps auto scroll issue on talkback mode
b/30769215

Change-Id: Idd0bbe1ac15c02d42eb28731955b80bab61ba6cc

7 years agoMerge "Changing status bar color extraction to use region decoder" into ub-launcher3...
Sunny Goyal [Tue, 8 Nov 2016 21:53:33 +0000 (21:53 +0000)]
Merge "Changing status bar color extraction to use region decoder" into ub-launcher3-master

7 years agoChanging status bar color extraction to use region decoder
Sunny Goyal [Tue, 8 Nov 2016 17:37:10 +0000 (09:37 -0800)]
Changing status bar color extraction to use region decoder

Change-Id: Ie9913a9cb28948128e6624dc3a335c790fa5a11a

7 years agoMerge "Use display metrics from resources." into ub-launcher3-master
Jonathan Miranda [Tue, 8 Nov 2016 17:19:43 +0000 (17:19 +0000)]
Merge "Use display metrics from resources." into ub-launcher3-master

7 years agoUse insets and hotseatCellHeightPx to set search container height.
Jon Miranda [Tue, 8 Nov 2016 00:57:54 +0000 (16:57 -0800)]
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

7 years agoUse display metrics from resources.
Jon Miranda [Tue, 8 Nov 2016 00:45:15 +0000 (16:45 -0800)]
Use display metrics from resources.

Change-Id: If23071528f76b2c7825337b1bc7ac7570b8844ed

7 years agoMerge "Using BitmapRegionDecoder to only parse partial bitmap during color extraction...
Sunny Goyal [Tue, 8 Nov 2016 00:17:03 +0000 (00:17 +0000)]
Merge "Using BitmapRegionDecoder to only parse partial bitmap during color extraction" into ub-launcher3-master

7 years agoFix bug where AllApps shadows weren't being completely clipped.
Jon Miranda [Mon, 7 Nov 2016 23:47:53 +0000 (15:47 -0800)]
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

7 years agoMerge "Calling buildLayer only on views which are actually visible" into ub-launcher3...
Sunny Goyal [Mon, 7 Nov 2016 18:09:43 +0000 (18:09 +0000)]
Merge "Calling buildLayer only on views which are actually visible" into ub-launcher3-master

7 years agoMerge "Simplifying mapCoordInSelfToDescendant" into ub-launcher3-master
Sunny Goyal [Mon, 7 Nov 2016 18:09:39 +0000 (18:09 +0000)]
Merge "Simplifying mapCoordInSelfToDescendant" into ub-launcher3-master

7 years agoUsing BitmapRegionDecoder to only parse partial bitmap during color extraction
Sunny Goyal [Mon, 7 Nov 2016 18:07:39 +0000 (10:07 -0800)]
Using BitmapRegionDecoder to only parse partial bitmap during color extraction

Change-Id: I3474c5e2f880144379b1810ccaef247f4a8d1330

7 years agoScale down folder cells to fit within bounds if necessary.
Jon Miranda [Thu, 3 Nov 2016 22:29:29 +0000 (15:29 -0700)]
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

7 years agoMerge "Match AllApps start and end paddings." into ub-launcher3-master
Jonathan Miranda [Fri, 4 Nov 2016 17:31:32 +0000 (17:31 +0000)]
Merge "Match AllApps start and end paddings." into ub-launcher3-master

7 years agoMerge "Remove unused Utilities methods related to motion event translation" into...
TreeHugger Robot [Thu, 3 Nov 2016 23:38:18 +0000 (23:38 +0000)]
Merge "Remove unused Utilities methods related to  motion event translation" into ub-launcher3-master

7 years agoMatch AllApps start and end paddings.
Jon Miranda [Thu, 3 Nov 2016 23:20:15 +0000 (16:20 -0700)]
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

7 years agoRemove unused Utilities methods related to motion event translation
Tony Wickham [Thu, 3 Nov 2016 22:51:55 +0000 (15:51 -0700)]
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

7 years agoEnabling async inflation for AppWidgets
Sunny Goyal [Wed, 2 Nov 2016 18:22:39 +0000 (11:22 -0700)]
Enabling async inflation for AppWidgets

Bug: 22839968
Change-Id: Id622053c2882f478b3a3ab3918a9f76750ead8c6

7 years agoMerge "Fixing screen center not getting calculated properly" into ub-launcher3-master
Sunny Goyal [Thu, 3 Nov 2016 01:02:36 +0000 (01:02 +0000)]
Merge "Fixing screen center not getting calculated properly" into ub-launcher3-master

7 years agoRemove unused code in DeviceProfile.
Jon Miranda [Wed, 2 Nov 2016 23:56:52 +0000 (16:56 -0700)]
Remove unused code in DeviceProfile.

Change-Id: I463302e6711ad39241257b8dff058d9f3e99d883

7 years agoCenter overview panel buttons.
Jon Miranda [Tue, 1 Nov 2016 23:55:56 +0000 (16:55 -0700)]
Center overview panel buttons.

Bug: 32313927
Change-Id: Ib6e82b12ef45d2fe59e46b5b2dd8945047eeb981

7 years agoMerge "Updating version check method names" into ub-launcher3-master
Sunny Goyal [Wed, 2 Nov 2016 17:51:27 +0000 (17:51 +0000)]
Merge "Updating version check method names" into ub-launcher3-master

7 years agoUpdating version check method names
Sunny Goyal [Wed, 2 Nov 2016 17:31:24 +0000 (10:31 -0700)]
Updating version check method names

Change-Id: If98851677545a9bbb9de308c23ff5c155a61a8bf

7 years agoFixing same drawable instance being used with 2 views
Sunny Goyal [Tue, 1 Nov 2016 20:42:23 +0000 (13:42 -0700)]
Fixing same drawable instance being used with 2 views

Drawable contain a reference to the view which is used to invalidate the view.
If the same drawable is used with two views, only once view will get invalidated.

Bug: 32575647
Change-Id: Ia22310a6bda55ce0a591712761ec8ab1cdbaccdf

7 years agoFixing screen center not getting calculated properly
Sunny Goyal [Tue, 1 Nov 2016 21:00:41 +0000 (14:00 -0700)]
Fixing screen center not getting calculated properly

Bug: 32578597
Change-Id: Icdf5dc2d82eab3d90b380736d7256ca2d9b2df2e

7 years agoCreate new DeviceProfile when in multi window mode.
Jon Miranda [Fri, 28 Oct 2016 00:15:27 +0000 (17:15 -0700)]
Create new DeviceProfile when in multi window mode.

This is just a first pass to help make the codebase ready for MW mode.
ie. won't see the effects of this unless resizeableActivity is set to true
in the Android Manifest.

Also allows long clicks from edge when in MW mode.

Bug: 32176631
Change-Id: I48e5cb3bd15e70627d9bf007d93bc731612fba2e

7 years agoMerge "Showing a toast when the default wallpaper app is disabled. If there is no...
Sunny Goyal [Mon, 31 Oct 2016 21:32:35 +0000 (21:32 +0000)]
Merge "Showing a toast when the default wallpaper app is disabled. If there is no default defined, showing an intent picker with all options" into ub-launcher3-master

7 years agoIntercept touches in DeepShortcutContainer after moving beyond touch slop
Tony Wickham [Mon, 31 Oct 2016 18:57:16 +0000 (11:57 -0700)]
Intercept touches in DeepShortcutContainer after moving beyond touch slop

Otherwise it's possible for a long press to trigger when swiping
on a shortcut, which causes it to drag far away from the finger.

Bug: 32309824
Change-Id: I40bd5c1daac49d6edb59744083a1e23dcf4f0ce6

7 years agoSimplifying mapCoordInSelfToDescendant
Sunny Goyal [Fri, 28 Oct 2016 17:01:00 +0000 (10:01 -0700)]
Simplifying mapCoordInSelfToDescendant

> Removing new object creation (during draw and touch handling)
> Simplifying matrix operation to call invert only once at the end

Change-Id: Iffadd6e9d84997baa36719ed688a7c3c1027e839

7 years agoMerge "Don't add focusables when getDescendantFocusability is FOCUS_BLOCK_DESCENDANTS...
Jonathan Miranda [Fri, 28 Oct 2016 00:25:11 +0000 (00:25 +0000)]
Merge "Don't add focusables when getDescendantFocusability is FOCUS_BLOCK_DESCENDANTS." into ub-launcher3-master

7 years agoMerge "Consume touch events in DeepShortcutsContainer" into ub-launcher3-master
Tony Wickham [Fri, 28 Oct 2016 00:17:45 +0000 (00:17 +0000)]
Merge "Consume touch events in DeepShortcutsContainer" into ub-launcher3-master

7 years agoConsume touch events in DeepShortcutsContainer
Tony Wickham [Fri, 28 Oct 2016 00:01:32 +0000 (17:01 -0700)]
Consume touch events in DeepShortcutsContainer

Previously, touches along the horizontal area next to the
deep shortcuts arrow went through to the background, allowing
things like going to overview with the shortcuts still open.

Bug: 32477287
Change-Id: I82d21d3051a13b23dfaac19e93facee120968aaa

7 years agoMerge "Catching OOM during widget preview generation" into ub-launcher3-master
Sunny Goyal [Thu, 27 Oct 2016 22:04:51 +0000 (22:04 +0000)]
Merge "Catching OOM during widget preview generation" into ub-launcher3-master

7 years agoDon't add focusables when getDescendantFocusability is FOCUS_BLOCK_DESCENDANTS.
Jon Miranda [Tue, 25 Oct 2016 23:19:17 +0000 (16:19 -0700)]
Don't add focusables when getDescendantFocusability is FOCUS_BLOCK_DESCENDANTS.

Bug: 32315286
Change-Id: I6fc6600fc9cbf83f720d9e6e878735076cd52cf1

7 years agoMerge "Restore mDragInfo when deferring onDropComplete() for uninstall." into ub...
Tony Wickham [Thu, 27 Oct 2016 21:05:52 +0000 (21:05 +0000)]
Merge "Restore mDragInfo when deferring onDropComplete() for uninstall." into ub-launcher3-master

7 years agoFixing wrong cache lookup call
Sunny Goyal [Thu, 27 Oct 2016 18:40:06 +0000 (11:40 -0700)]
Fixing wrong cache lookup call

Cache entry was saved using flattenToShortString, but the
lookup was using flattenToString

Change-Id: I4c012d5a90a89121989db059d31d3dd288fa5b8c

7 years agoCatching OOM during widget preview generation
Sunny Goyal [Thu, 27 Oct 2016 18:38:45 +0000 (11:38 -0700)]
Catching OOM during widget preview generation

Bug: 32365481
Change-Id: Ifc49b033c3ad83213d50793301d94bb6337a412d

7 years agoCalling buildLayer only on views which are actually visible
Sunny Goyal [Thu, 27 Oct 2016 01:32:38 +0000 (18:32 -0700)]
Calling buildLayer only on views which are actually visible

> Creating a common listener for handling buildLayer logic

Bug: 30138067
Change-Id: I803ef78b48e07e5ae5922e0392d390f274a87d75

7 years agoRemoving custom dispatchDraw logic and letting the system handle
Sunny Goyal [Wed, 26 Oct 2016 20:06:08 +0000 (13:06 -0700)]
Removing custom dispatchDraw logic and letting the system handle
selecting appropriate children for drawing.

> System already skips children which are outside the bounds. Originally
this logic was added because workspace layout is larger than the screen, and
we need to selectivly skip more children. But over time we have added many
special conditions and at present workspace actually draws more children than
needed at any given time.
> Fixing bug, where onBeginPageMoving was getting called during folder open

Bug: 12116740
Change-Id: Idee18ee9cd9d348ebc4dfd82f4ff6df14e0d22d2

7 years agoRemoving some deprecated code around page layers
Sunny Goyal [Wed, 26 Oct 2016 18:40:35 +0000 (11:40 -0700)]
Removing some deprecated code around page layers

1) setChildrenDrawnWithCacheEnabled: deprecated
2) Removing custom logic based on isHardwareAccelerated. This check was not being
used consistantly everywhere

Bug: 29761236
Change-Id: Ic4a9c764f154497e376e37de2351fe04d1b48500

7 years agoRestore mDragInfo when deferring onDropComplete() for uninstall.
Tony Wickham [Wed, 26 Oct 2016 19:51:14 +0000 (12:51 -0700)]
Restore mDragInfo when deferring onDropComplete() for uninstall.

We moved mDragInfo = null to onDragEnd() since onDropComplete()
isn't called for pre-drags, but this led to NPE when returning
from unistall or app info since onDropComplete() is called after
onDragEnd() in this case. So now we restore a copy of mDragInfo.

Bug: 32415014
Change-Id: I7ef4fb7145c3c78039af1131e77538969db58141

7 years agoShowing a toast when the default wallpaper app is disabled.
Sunny Goyal [Mon, 17 Oct 2016 08:59:01 +0000 (09:59 +0100)]
Showing a toast when the default wallpaper app is disabled.
If there is no default defined, showing an intent picker with all options

Bug: 32197478
Change-Id: Ia2337701a76a9bb00973ab64e2fa435607ce2820

7 years agoDon't move to adjacent page if it is full when dropping on it.
Tony Wickham [Mon, 24 Oct 2016 17:27:56 +0000 (10:27 -0700)]
Don't move to adjacent page if it is full when dropping on it.

Bug: 32003721
Change-Id: Ia81b75a73f510ad2a58764dec9eb7e57b9bf2dcd

7 years agoMerge "Don't allow multiple shortcuts to be dragged simultaneously." into ub-launcher...
Tony Wickham [Fri, 21 Oct 2016 18:51:49 +0000 (18:51 +0000)]
Merge "Don't allow multiple shortcuts to be dragged simultaneously." into ub-launcher3-master

7 years agoDon't allow multiple shortcuts to be dragged simultaneously.
Tony Wickham [Fri, 21 Oct 2016 18:37:25 +0000 (11:37 -0700)]
Don't allow multiple shortcuts to be dragged simultaneously.

When starting a drag when another is already in progress, the
original drag view is left dangling until launcher is killed.

Bug: 32231238
Change-Id: I5ff94b82971c539231f8f588059dc84845cc88f0

7 years agoUpdating the search illustrations to have transparent background
Sunny Goyal [Thu, 20 Oct 2016 10:45:14 +0000 (11:45 +0100)]
Updating the search illustrations to have transparent background

Bug: 32234314
Change-Id: If279e97acce6b7522ec587014afab8d48a2296dd

7 years agoFixing text search where a word starting with lower case was not being matched
Sunny Goyal [Thu, 20 Oct 2016 09:29:57 +0000 (09:29 +0000)]
Fixing text search where a word starting with lower case was not being matched
am: 28a64381b6

Change-Id: Ib5158d42219478c97d6bec5049e3354ee1087094

7 years agoMerge "Mark cells as unoccupied in onDragStart instead of startDrag." into ub-launche...
Tony Wickham [Wed, 19 Oct 2016 16:48:43 +0000 (16:48 +0000)]
Merge "Mark cells as unoccupied in onDragStart instead of startDrag." into ub-launcher3-master

7 years agoFixing text search where a word starting with lower case was
Sunny Goyal [Wed, 19 Oct 2016 06:53:43 +0000 (07:53 +0100)]
Fixing text search where a word starting with lower case was
not being matched

Bug: 32249413
Change-Id: I0f5e24052759a734fe0df3bd3d0bf2e7ef7f2713

7 years agoFixing static instance of Indexer being created in the model
Sunny Goyal [Thu, 13 Oct 2016 03:49:31 +0000 (20:49 -0700)]
Fixing static instance of Indexer being created in the model

Indexer depends on the locale and should be created when ever the config
changes. Moving the widget indexing to the adapter (similar to allApps)
which gets created whenever the activity is recreated.
This fixes the bug where widgets indexing breaks if locale changes while launcher
process is alive
Also fixing the bug in widget model cloning where the HashMap was not cloning
the underlying ArrayList

Change-Id: I7dbe6290e73299c4c07aa7fa564077a2649e1a4c

7 years agoMerge "Show error toast messages when there is no room for the item when icon is...
Jonathan Miranda [Tue, 18 Oct 2016 21:49:09 +0000 (21:49 +0000)]
Merge "Show error toast messages when there is no room for the item when icon is not to be added to folder." into ub-launcher3-master

7 years agoShow error toast messages when there is no room for the item when icon is not to...
Jon Miranda [Tue, 18 Oct 2016 18:47:42 +0000 (11:47 -0700)]
Show error toast messages when there is no room for the item when icon is not to be added to folder.

* when user tries to add item to full hot seat from workspace.
* when user tries to add item to full home screen from workspace.
* refactored so that Workspace handles displaying error messages.

Bug: 15574422
Change-Id: Ibc98c7f45bc0c646dc4636660fba62be9db22ac0

7 years agoMark cells as unoccupied in onDragStart instead of startDrag.
Tony Wickham [Tue, 18 Oct 2016 21:43:01 +0000 (14:43 -0700)]
Mark cells as unoccupied in onDragStart instead of startDrag.

Also move cleanup (resetting variables to null) to onDragEnd
instead of onDropCompleted. These changes are necessary because
pre-drags (for apps with shortcuts) don't call onDragStart
or onDropCompleted.

Bug: 32246571
Change-Id: Ib18fac64555e9158b776f9c12afc2cb807b3c355

7 years agoMerge "Alienating QSB" into ub-launcher3-master
Sunny Goyal [Tue, 18 Oct 2016 20:57:46 +0000 (20:57 +0000)]
Merge "Alienating QSB" into ub-launcher3-master

7 years agoMerge "Removing unused background padding from base recycler view" into ub-launcher3...
Sunny Goyal [Tue, 18 Oct 2016 20:44:54 +0000 (20:44 +0000)]
Merge "Removing unused background padding from base recycler view" into ub-launcher3-master

7 years agoRemoving unused background padding from base recycler view
Sunny Goyal [Tue, 18 Oct 2016 13:23:46 +0000 (14:23 +0100)]
Removing unused background padding from base recycler view

Change-Id: I36f68a143df8f3668074b3539aa9af170a91e511

7 years agoRemoving some bitmap drawables.
Sunny Goyal [Tue, 18 Oct 2016 14:55:22 +0000 (15:55 +0100)]
Removing some bitmap drawables.
Loading the edge drawables only when legacy DND is enabled

Change-Id: I1c66d03146fb7fa7d61a4abf8c2e5a4289a117b9

7 years agoAlienating QSB
Sunny Goyal [Fri, 7 Oct 2016 23:17:19 +0000 (16:17 -0700)]
Alienating QSB

> Moving all QSB widget handling code in a separate package
> QSB is handled on a separate host, independent of the main
host. This allows us to safely reset either of the two hosts
> Also removing the logic around closeSystemDialog:
   Launcher does not use any panels which need closing
   System sends an onActivityResult(RESULT_CANCELLED), we do
   not need special handling for waitingForResult
> Fixing bug when auto-generated qsb widget id was not being saved

Change-Id: I2d889b7b1c80b14785d14f35624142a4b78452de

7 years agoMissing call in write to parcel
Sunny Goyal [Tue, 18 Oct 2016 08:27:00 +0000 (08:27 +0000)]
Missing call in write to parcel
am: a833b6d720

Change-Id: Ifc9dc38a0ddc6787f78fddadd2c2307d2e413c4f

7 years agoMissing call in write to parcel
Sunny Goyal [Tue, 18 Oct 2016 07:50:56 +0000 (08:50 +0100)]
Missing call in write to parcel

Bug: 17924700
Change-Id: Ie48757fc53674979b8e92f96b5281f965e2ef3b4

7 years agoRemoving the logic around closeSystemDialog on ACTION_CLOSE_SYSTEM_DIALOGS Launcher...
Sunny Goyal [Mon, 17 Oct 2016 23:42:28 +0000 (23:42 +0000)]
Removing the logic around closeSystemDialog on ACTION_CLOSE_SYSTEM_DIALOGS Launcher does not use any panels which need closing & system sends an onActivityResult(RESULT_CANCELLED), we do  not need special handling for waitingForResult
am: f4b457709f

Change-Id: I2880167fbf37ff62ec4af88e233ab0b555453dae

7 years agoRemoving the logic around closeSystemDialog on ACTION_CLOSE_SYSTEM_DIALOGS
Sunny Goyal [Mon, 17 Oct 2016 23:16:53 +0000 (00:16 +0100)]
Removing the logic around closeSystemDialog on ACTION_CLOSE_SYSTEM_DIALOGS
Launcher does not use any panels which need closing & system sends an
onActivityResult(RESULT_CANCELLED), we do  not need special handling for
waitingForResult

Bug: 32127718
Change-Id: Iff5161444bc909442f6acbe52cb3fb5a2d9ae4da

7 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 14 Oct 2016 09:22:54 +0000 (09:22 +0000)]
Import translations. DO NOT MERGE
am: 3cca5a0cae  -s ours

Change-Id: Iafd1f484aa07db9cdde2e934a8bfb3dc24e61725

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 13 Oct 2016 23:57:53 +0000 (16:57 -0700)]
Import translations. DO NOT MERGE

Change-Id: I086069707cac0763e3d3704db8ba414c514b83d3
Auto-generated-cl: translation import

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 13 Oct 2016 23:56:31 +0000 (16:56 -0700)]
Import translations. DO NOT MERGE

Change-Id: I93bb668512491ac8c026e8a75b8a50b0252965d4
Auto-generated-cl: translation import

7 years agoMerge "Fixing crash in folder" into ub-launcher3-master
Sunny Goyal [Thu, 13 Oct 2016 19:32:19 +0000 (19:32 +0000)]
Merge "Fixing crash in folder" into ub-launcher3-master

7 years agoFixing crash in folder
Sunny Goyal [Thu, 13 Oct 2016 16:49:04 +0000 (09:49 -0700)]
Fixing crash in folder

Getting the parent, before the folder is removed from DragLayer

Bug: 32141195
Change-Id: I0bd3163a1425c994280cd61197845afab3c2c185

7 years agoRemoving the section break UI support
Sunny Goyal [Thu, 13 Oct 2016 16:31:24 +0000 (09:31 -0700)]
Removing the section break UI support

This was an exploration for an alternative UI in all apps, where we
show section headers before every section. This was never released.

Change-Id: I2d36f1d078cc9a6f3ba6f0ec9655412182c9b016

7 years agoMerge "Add feature flag to disable light status bar" into ub-launcher3-calgary-polish
Tony Wickham [Thu, 13 Oct 2016 00:53:15 +0000 (00:53 +0000)]
Merge "Add feature flag to disable light status bar" into ub-launcher3-calgary-polish
am: 1d29c6f7d2

Change-Id: Ic526e6ed254d7af5832afa4ce3dc47747031fec3

7 years agoAdd feature flag to disable light status bar
Tony Wickham [Thu, 13 Oct 2016 00:53:13 +0000 (00:53 +0000)]
Add feature flag to disable light status bar
am: 0fed55bf03

Change-Id: Ia42af86a0e052bb05f0ed2ce6e8372b4408fed13

7 years agoMerge "Add feature flag to disable light status bar" into ub-launcher3-calgary-polish
Tony Wickham [Thu, 13 Oct 2016 00:41:57 +0000 (00:41 +0000)]
Merge "Add feature flag to disable light status bar" into ub-launcher3-calgary-polish

7 years agoAdd feature flag to disable light status bar
Tony Wickham [Wed, 12 Oct 2016 21:55:46 +0000 (14:55 -0700)]
Add feature flag to disable light status bar

Bug: 32085545
Change-Id: I4860145b00893c20f7e37817e9659ccd90409966

7 years agoMerge "Use Launcher.getLauncher(Context) instead of type-casting." into ub-launcher3...
Tony Wickham [Wed, 12 Oct 2016 21:48:32 +0000 (21:48 +0000)]
Merge "Use Launcher.getLauncher(Context) instead of type-casting." into ub-launcher3-calgary-polish
am: cf6195268d

Change-Id: I6b2d73ab0f3053d088f7d579330592dae637db9d

7 years agoresolve merge conflicts of 2fd0208 to ub-launcher3-master
Tony Wickham [Wed, 12 Oct 2016 21:38:43 +0000 (14:38 -0700)]
resolve merge conflicts of 2fd0208 to ub-launcher3-master

Change-Id: I20ad6eaace81786be080e28d6eb551908add6d90

7 years agoMerge "Use Launcher.getLauncher(Context) instead of type-casting." into ub-launcher3...
Tony Wickham [Wed, 12 Oct 2016 21:22:05 +0000 (21:22 +0000)]
Merge "Use Launcher.getLauncher(Context) instead of type-casting." into ub-launcher3-calgary-polish

7 years agoMaking the width of the fast scroller popup as wrap_content
Sunny Goyal [Tue, 11 Oct 2016 22:49:42 +0000 (15:49 -0700)]
Making the width of the fast scroller popup as wrap_content

Adding minWidth and width=wrap_content, so that the popup can
grow for wider characters.

Change-Id: I6e0c4087df51e37f696c47f20f146f32d41e8bc8

7 years agoMerge "Simplifying fast scroller logic" into ub-launcher3-master
Sunny Goyal [Tue, 11 Oct 2016 22:09:48 +0000 (22:09 +0000)]
Merge "Simplifying fast scroller logic" into ub-launcher3-master

7 years agoAnnouncing the final action when the drag-drop completes
Sunny Goyal [Tue, 11 Oct 2016 20:12:59 +0000 (20:12 +0000)]
Announcing the final action when the drag-drop completes
am: 3f8864069b

Change-Id: Iba49c7ba1d1c2d1f4c279970bbcc3ff96af5ccc0

7 years agoAnnouncing the final action when the drag-drop completes
Sunny Goyal [Tue, 11 Oct 2016 17:54:39 +0000 (10:54 -0700)]
Announcing the final action when the drag-drop completes

Bug:31926812
Change-Id: Id0566cc7dc15732981320807a02fb9cae8a885e6

7 years agoMerge "Import translations. DO NOT MERGE" into ub-launcher3-master
TreeHugger Robot [Tue, 11 Oct 2016 07:22:03 +0000 (07:22 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-master

7 years agoMerge "Moving come helper methods to corresponding classes" into ub-launcher3-master
Sunny Goyal [Mon, 10 Oct 2016 21:19:00 +0000 (21:19 +0000)]
Merge "Moving come helper methods to corresponding classes" into ub-launcher3-master

7 years agoMerge "Using common method for updating icons in cache" into ub-launcher3-master
Sunny Goyal [Mon, 10 Oct 2016 21:18:45 +0000 (21:18 +0000)]
Merge "Using common method for updating icons in cache" into ub-launcher3-master

7 years agoMerge "Updating the folder cell dimensions to be closer to a square" into ub-launcher...
Sunny Goyal [Mon, 10 Oct 2016 21:17:28 +0000 (21:17 +0000)]
Merge "Updating the folder cell dimensions to be closer to a square" into ub-launcher3-calgary-polish
am: 327f7b7125

Change-Id: I5d1dfd626223cdd27de2f58ca84426d2c7de630b

7 years agoUpdating the folder cell dimensions to be closer to a square
Sunny Goyal [Mon, 10 Oct 2016 21:17:28 +0000 (21:17 +0000)]
Updating the folder cell dimensions to be closer to a square
am: 68f240eb54

Change-Id: I68047a8eba8b3a0c8117fedbc45b6100dd04b023

7 years agoSimplifying fast scroller logic
Sunny Goyal [Sun, 9 Oct 2016 00:43:48 +0000 (17:43 -0700)]
Simplifying fast scroller logic

> Using a separate view for drawing the popup. This allows us to use elevation
  property instead of drawing the shadow as bitmap.
> During the thumb animation, invalidating the full track width, instead of
  invalidating the track and thumb separately.
> The thumb path is calculated at 0,0 and drawn using canvas.translate().
   This avoids recalculating the path on every scroll.

Change-Id: I48741e5b4432df0d939016db284d7aaf52cc2aa6

7 years agoMerge "Refactoring floating view opening/closing logic" into ub-launcher3-master
Sunny Goyal [Mon, 10 Oct 2016 21:00:09 +0000 (21:00 +0000)]
Merge "Refactoring floating view opening/closing logic" into ub-launcher3-master

7 years agoMerge "Refactoring AppWidgetResizeFrame" into ub-launcher3-master
Sunny Goyal [Mon, 10 Oct 2016 20:59:34 +0000 (20:59 +0000)]
Merge "Refactoring AppWidgetResizeFrame" into ub-launcher3-master

7 years agoMoving come helper methods to corresponding classes
Sunny Goyal [Mon, 10 Oct 2016 17:41:41 +0000 (10:41 -0700)]
Moving come helper methods to corresponding classes

> Moving isPackageEnabled to InstallShortcutReceiver
> Moving the deep shortcut map to the data model
> Removing appInfo.flags. Instead fetching the flags when needed

Change-Id: I654dd8acefa7b7d183b0419afbe112bef001d536

7 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 10 Oct 2016 20:48:58 +0000 (13:48 -0700)]
Import translations. DO NOT MERGE

Change-Id: I0f12c5e0414f45e751b726160759de71287b9686
Auto-generated-cl: translation import

7 years agoMerge "Updating the folder cell dimensions to be closer to a square" into ub-launcher...
Sunny Goyal [Mon, 10 Oct 2016 20:37:51 +0000 (20:37 +0000)]
Merge "Updating the folder cell dimensions to be closer to a square" into ub-launcher3-calgary-polish