OSDN Git Service

android-x86/packages-apps-Launcher3.git
8 years agoMerge "Fix issue with source params not reporting predicted apps." into ub-launcher3...
Winson Chung [Fri, 16 Oct 2015 22:20:14 +0000 (22:20 +0000)]
Merge "Fix issue with source params not reporting predicted apps." into ub-launcher3-burnaby-polish

8 years agoFix issue with source params not reporting predicted apps.
Winson [Fri, 16 Oct 2015 21:57:24 +0000 (14:57 -0700)]
Fix issue with source params not reporting predicted apps.

Bug: 25020080
Change-Id: Iaa67ccbb3e3a6c264aaa4fa3c915faad8a69bbbc

8 years agoAdd LauncherCallbacks method to add additional search widget options.
Tony Wickham [Fri, 16 Oct 2015 20:40:34 +0000 (20:40 +0000)]
Add LauncherCallbacks method to add additional search widget options.
am: 775455c4a8

* commit '775455c4a8266655bf43b943e969d42ac32609ec':
  Add LauncherCallbacks method to add additional search widget options.

8 years agoMerge "Preventing activity to restart when keyboard is connected or keyboard type...
Sunny Goyal [Fri, 16 Oct 2015 18:32:43 +0000 (18:32 +0000)]
Merge "Preventing activity to restart when keyboard is connected or keyboard type changes" into ub-launcher3-burnaby-polish

8 years agoAdd LauncherCallbacks method to add additional search widget options.
Tony Wickham [Fri, 16 Oct 2015 16:49:32 +0000 (09:49 -0700)]
Add LauncherCallbacks method to add additional search widget options.

Bug: 25000458
Change-Id: I5e8d48617568569bc6e4f284749c3ed9fb20a68f

8 years agoClose some Cursors and call super.onFinishInflate().
Tony Wickham [Fri, 16 Oct 2015 17:12:23 +0000 (10:12 -0700)]
Close some Cursors and call super.onFinishInflate().

Android Studio gave these warnings, and they seem like good ideas.

Change-Id: I9a4d3997fd18e86e007e4511e1ac9e8a75509265

8 years agoMerge "Fix "The specified child already has a parent" IllegalStateException." into...
Tony Wickham [Thu, 15 Oct 2015 18:00:59 +0000 (18:00 +0000)]
Merge "Fix "The specified child already has a parent" IllegalStateException." into ub-launcher3-burnaby-polish

8 years agoFix "The specified child already has a parent" IllegalStateException.
Tony Wickham [Wed, 14 Oct 2015 22:23:04 +0000 (15:23 -0700)]
Fix "The specified child already has a parent" IllegalStateException.

The problem was due to a race condition between removing a prebound
widget view from the drag layer and adding the same view to the
workspace upon dropping it; if you let go of the widget immediately
after picking it up, the latter happened before the former.

Specifically, the flow was: long-click a widget --> drop --> remove
the view from the drag layer if it's not null (it is, so nothing
happens) --> the view is finally bound/inflated and added to the drag
layer --> add the view to the workspace --> already has a parent.

There are actually 2 problems here: one is that the bind/inflate is
asynchronous, and can therefore happen after dropping the widget view
being inflated, and the other is that the view is added to the
workspace even though the transition has barely started (we usually
ignore drops if the transition is less than half complete). It turns
out that this second problem was also due to a race condition, this
time between dropping a widget or app onto the workspace and calling
LauncherStateTransitionAnimation.dispatchOnLauncherTransitionStart().
If the drop happened before the dispatch, as in the case of the
crash, then the drop was accepted because the transition progress was
still 1.0 from the previous transition.

I fixed the first problem by removing the drag layer widget view
in Launcher where it is potentially used instead of Workspace. And I
fixed the second problem by setting mTransitionProgress to 0 in
Workspace.onLauncherTransitionPrepare().

I also added some debugging logs.

Bug: 23896857
Change-Id: I66944e6d3f23b70dea15f7fb01af0763a1bfcbda

8 years agoam 28c6b963: Showing a permission prompt for direct call shortcuts
Sunny Goyal [Wed, 14 Oct 2015 19:16:24 +0000 (19:16 +0000)]
am 28c6b963: Showing a permission prompt for direct call shortcuts

* commit '28c6b963d4ccac73ab857c839420513dd560945c':
  Showing a permission prompt for direct call shortcuts

8 years agoPreventing activity to restart when keyboard is connected or keyboard type changes
Sunny Goyal [Wed, 14 Oct 2015 18:53:04 +0000 (11:53 -0700)]
Preventing activity to restart when keyboard is connected or keyboard type changes

Bug: 20820889
Change-Id: Ib0b21c04290607ddd67cef2003e6d89f5d6492d8

8 years agoFixing issue with overview panel buttons.
Winson [Tue, 13 Oct 2015 17:47:51 +0000 (10:47 -0700)]
Fixing issue with overview panel buttons.

Bug: 22699895
Change-Id: I8a2f05a6008343327e34cbd3169e4056729e0b75

8 years agoIncrease folder cell width slightly.
Tony Wickham [Mon, 12 Oct 2015 22:57:23 +0000 (15:57 -0700)]
Increase folder cell width slightly.

The increased breathing room makes it more likely that long app names
will fit in the folder cells without being cut off.

Bug: 22462641
Change-Id: I110ede040f9e8fdddbf0c4e7a395ac71435559f3

8 years agoShowing a permission prompt for direct call shortcuts
Sunny Goyal [Mon, 12 Oct 2015 18:42:05 +0000 (11:42 -0700)]
Showing a permission prompt for direct call shortcuts

Bug: 24580949
Change-Id: Idc92f9f5979a730f43b4905af2bc47b6834dc7a7

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 12 Oct 2015 14:00:09 +0000 (07:00 -0700)]
Import translations. DO NOT MERGE

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

8 years agoMerge "Actually call LauncherTransitionable.onLauncherTransitionStep()." into ub...
Tony Wickham [Fri, 9 Oct 2015 22:37:02 +0000 (22:37 +0000)]
Merge "Actually call LauncherTransitionable.onLauncherTransitionStep()." into ub-launcher3-burnaby-polish

8 years agoam 37860923: Merge "Added launcher callback to specify search bar height." into ub...
Tony Wickham [Fri, 9 Oct 2015 01:40:31 +0000 (01:40 +0000)]
am 37860923: Merge "Added launcher callback to specify search bar height." into ub-launcher3-burnaby

* commit '37860923619b1e467975a74764dff03ab657bdc7':
  Added launcher callback to specify search bar height.

8 years agoMerge "Added launcher callback to specify search bar height." into ub-launcher3-burnaby
Tony Wickham [Fri, 9 Oct 2015 01:37:39 +0000 (01:37 +0000)]
Merge "Added launcher callback to specify search bar height." into ub-launcher3-burnaby

8 years agoam d6b4037b: Grid adjustments, specifically for Ryu.
Tony Wickham [Fri, 9 Oct 2015 00:38:29 +0000 (00:38 +0000)]
am d6b4037b: Grid adjustments, specifically for Ryu.

* commit 'd6b4037b093445fefa7d036da339dd549fae7a9b':
  Grid adjustments, specifically for Ryu.

8 years agoAdded launcher callback to specify search bar height.
Tony Wickham [Wed, 23 Sep 2015 21:55:17 +0000 (14:55 -0700)]
Added launcher callback to specify search bar height.

The search bar can now be be normal or tall. When it is set to tall,
the hotseat and page indicators move down so that the workspace isn't
compressed quite as much.

Change-Id: Id92a946eab3a93524999f92efd847a501a95f002

8 years agoVerify that the widget id is valid, before binding the widget
Sunny Goyal [Fri, 25 Sep 2015 19:55:01 +0000 (12:55 -0700)]
Verify that the widget id is valid, before binding the widget

Bug: 23820213
Bug: 24054205
Bug: 24582322
Change-Id: I25a09b0a2a706812a7d82729b5dc554ffba84a2a

8 years agoMerge "Null check in PackageInstallerCompat" into ub-launcher3-burnaby-polish
Sunny Goyal [Thu, 8 Oct 2015 20:59:19 +0000 (20:59 +0000)]
Merge "Null check in PackageInstallerCompat" into ub-launcher3-burnaby-polish

8 years agoMerge "Update the widget spans after the provider changes" into ub-launcher3-burnaby...
Sunny Goyal [Thu, 8 Oct 2015 20:57:51 +0000 (20:57 +0000)]
Merge "Update the widget spans after the provider changes" into ub-launcher3-burnaby-polish

8 years agoNull check in PackageInstallerCompat
Sunny Goyal [Thu, 8 Oct 2015 20:56:37 +0000 (13:56 -0700)]
Null check in PackageInstallerCompat

Bug: 24582224
Change-Id: I2cd4ca12d48b3316a8a519092118d9e2970d944d

8 years agoGrid adjustments, specifically for Ryu.
Tony Wickham [Thu, 24 Sep 2015 01:37:57 +0000 (18:37 -0700)]
Grid adjustments, specifically for Ryu.

> Less than 14% of the screen is used for left/right workspace padding.
  (To be clear, this means 7% for the left and 7% for the right.)
> Hotseat icons are the same size as workspace icons.
> Far left and right hotseat edges line up with workspace edges.
> All Apps button is scaled down 8dp.

Bug: 24003478

Change-Id: Idb057ab0f6ba29e7fd93feac7573ca2e07c7e839

8 years agoUsing 23 instead of Build.Versoin.M until the final SDK is available.
Sunny Goyal [Thu, 8 Oct 2015 14:41:15 +0000 (07:41 -0700)]
Using 23 instead of Build.Versoin.M until the final SDK is available.

Change-Id: I9f8f6fe049afcd0ceb0797ddc803a2e77bab0437

8 years agoMoving a few testing classes to a separate package
Sunny Goyal [Fri, 26 Jun 2015 02:35:49 +0000 (19:35 -0700)]
Moving a few testing classes to a separate package

Change-Id: Ied1c063de3e938695493e4937f554686e0719dad

8 years agoMerge "Fixing overscroll effect when the navigation bar is opaque" into ub-launcher3...
Sunny Goyal [Wed, 7 Oct 2015 17:22:44 +0000 (17:22 +0000)]
Merge "Fixing overscroll effect when the navigation bar is opaque" into ub-launcher3-burnaby-polish

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 7 Oct 2015 14:19:53 +0000 (07:19 -0700)]
Import translations. DO NOT MERGE

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

8 years agoVerifying that the table was successfully created during initialzation
Sunny Goyal [Wed, 23 Sep 2015 18:40:53 +0000 (11:40 -0700)]
Verifying that the table was successfully created during initialzation

Table creation sometimes fails scilently, which leads to a crash loop.
This way, we will try to create a table every time after crash, so
the device would eventually be able to recover.

Bug: 24263894
Change-Id: Ic0169d33f4092042423afa24320182786c544d47

8 years agoam 53d3be63: (-s ours) Import translations. DO NOT MERGE
Geoff Mendal [Tue, 6 Oct 2015 21:15:30 +0000 (21:15 +0000)]
am 53d3be63: (-s ours) Import translations. DO NOT MERGE

* commit '53d3be63a5ab056280279bcb13089faae0e7796f':
  Import translations. DO NOT MERGE

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Tue, 6 Oct 2015 21:06:53 +0000 (14:06 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 22482938
Change-Id: I758693c47b7d200da62bc1e9df4d0faaf9b147f2

8 years agoam 3a3517fb: Add widget size options for QSB.
Tony Wickham [Tue, 6 Oct 2015 20:53:46 +0000 (20:53 +0000)]
am 3a3517fb: Add widget size options for QSB.

* commit '3a3517fb6c17120c6d11e5c95a0de4e81205d0ae':
  Add widget size options for QSB.

8 years agoAdd widget size options for QSB.
Tony Wickham [Tue, 6 Oct 2015 18:27:04 +0000 (11:27 -0700)]
Add widget size options for QSB.

Bug: 24704753
Change-Id: I3e16c1f67a67b08b3843f7f38312447bdfa6a91e

8 years agoActually call LauncherTransitionable.onLauncherTransitionStep().
Tony Wickham [Fri, 2 Oct 2015 23:22:08 +0000 (16:22 -0700)]
Actually call LauncherTransitionable.onLauncherTransitionStep().

Previously, it was only called at the start and end of the transition;
now it is called as the animation interpolates. Specifically, a dummy
ValueAnimator is played alongside the transition animation and calls
dispatchOnLauncherTransitionStep() as it goes.

One place where this is important is in Workspace, where
mTransitionProgress is used to determine things like whether the
workspace should accept a drop - hence the bug that caused apps dragged
from All Apps to vanish when dropped before the transition ended.

Bug: 24215358
Change-Id: I32cd633c53557305caf84e87c9a4d4f07eef2223

8 years agoUpdate the widget spans after the provider changes
Sunny Goyal [Mon, 5 Oct 2015 17:36:54 +0000 (10:36 -0700)]
Update the widget spans after the provider changes

Bug: 24003213
Change-Id: I51ad5919a808ef10385d62a48a94589eefcb06bc

8 years agoMerge "Jailing the saved instance state of all the dynamically generated views" into...
Sunny Goyal [Mon, 5 Oct 2015 18:26:19 +0000 (18:26 +0000)]
Merge "Jailing the saved instance state of all the dynamically generated views" into ub-launcher3-burnaby-polish

8 years agoJailing the saved instance state of all the dynamically generated views
Sunny Goyal [Fri, 28 Aug 2015 00:45:46 +0000 (17:45 -0700)]
Jailing the saved instance state of all the dynamically generated views

Using itemId instead of generating a new id for each item. This is because
if the process gets killed, View.generateId will get reset but we will still
receive the generated item id map in onRestoreInstance. This will cause
conflicts with newly generated item ids.

We wrap all the generated homescreen views inside a single sparse array. This
ensures that we do not cause any conflict with dynamically generated views in
other parts of the UI.

Bug: 16840760
Change-Id: I6fe69c2e1dd463402f51222715fae31b9d4dd240

8 years agoMerge "Fixing regression when removing last item from folder." into ub-launcher3...
Winson Chung [Mon, 5 Oct 2015 17:58:42 +0000 (17:58 +0000)]
Merge "Fixing regression when removing last item from folder." into ub-launcher3-burnaby-polish

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 5 Oct 2015 14:19:24 +0000 (07:19 -0700)]
Import translations. DO NOT MERGE

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

8 years agoFixing regression when removing last item from folder.
Winson [Sat, 3 Oct 2015 00:14:14 +0000 (17:14 -0700)]
Fixing regression when removing last item from folder.

- The regression caused the folder and all its contents to be removed
  before the new item could be moved to the place of the folder.  In
  addition, in this case, the LauncherModel would get out of sync with
  the db because we move the last item to the workspace, but don’t
  remove it from the contents, so deleting the folder would remove the
  item’s mapping in sBgItemIdMap.

Bug: 24620815
Change-Id: I17137f28b0f1617a890488c7a9c5b8a9e8df0e91

8 years agoam c84e6e19: Disabling widget debug
Sunny Goyal [Fri, 2 Oct 2015 20:23:05 +0000 (20:23 +0000)]
am c84e6e19: Disabling widget debug

* commit 'c84e6e19363c590bbfbac17e9ab7cc61a04d552a':
  Disabling widget debug

8 years agoDisabling widget debug
Sunny Goyal [Fri, 2 Oct 2015 19:48:37 +0000 (12:48 -0700)]
Disabling widget debug

Change-Id: I876a904358ce455c97a7a25a34c66af5e9316469

8 years agoFixing regression in removing widgets via accessibility.
Winson [Fri, 2 Oct 2015 18:25:46 +0000 (11:25 -0700)]
Fixing regression in removing widgets via accessibility.

- Regression was introduced in ag/765323, but not visible in normal
  drag and drop because the view is already removed from the parent.
  However, when accessibility is enabled, it was only removing it from
  the db, but not from the parents.

Change-Id: I37483d0cd6306d270441b11e6f05247d58b88521

8 years agoMerge "Do not reinflate/rebind widgets if we are going the rebind the full workspace...
Sunny Goyal [Fri, 2 Oct 2015 17:40:35 +0000 (17:40 +0000)]
Merge "Do not reinflate/rebind widgets if we are going the rebind the full workspace anyway." into ub-launcher3-burnaby-polish

8 years agoam 058c21db: Ensure accessibility delegate is set on all apps icons.
Winson [Fri, 2 Oct 2015 17:21:59 +0000 (17:21 +0000)]
am 058c21db: Ensure accessibility delegate is set on all apps icons.

* commit '058c21db49f4f058b7d84c8de55d3c649918ab70':
  Ensure accessibility delegate is set on all apps icons.

8 years agoEnsure accessibility delegate is set on all apps icons.
Winson [Fri, 2 Oct 2015 17:14:14 +0000 (10:14 -0700)]
Ensure accessibility delegate is set on all apps icons.

Bug: 24605237
Change-Id: I801e2aca1732c021b06d996d907f368f97277cf9

8 years agoMake sure that the dimensions are not negative when drawing pending widget
Sunny Goyal [Fri, 2 Oct 2015 02:35:03 +0000 (19:35 -0700)]
Make sure that the dimensions are not negative when drawing pending widget

Bug: 24585203
Change-Id: I3d328d0e1fe81d2704bb5b9d4b340a367bfb9249

8 years agoDo not reinflate/rebind widgets if we are going the rebind the full
Sunny Goyal [Fri, 2 Oct 2015 01:50:48 +0000 (18:50 -0700)]
Do not reinflate/rebind widgets if we are going the rebind the full
workspace anyway.

Bug: 23820213
Bug: 24582781
Change-Id: I2cb4927916fed64a69100beb41ee14653ea1d70a

8 years agoMerge "Replace Long.compare() with implementation." into ub-launcher3-burnaby-polish
Winson Chung [Thu, 1 Oct 2015 22:53:15 +0000 (22:53 +0000)]
Merge "Replace Long.compare() with implementation." into ub-launcher3-burnaby-polish

8 years agoReplace Long.compare() with implementation.
Winson [Thu, 1 Oct 2015 22:34:08 +0000 (15:34 -0700)]
Replace Long.compare() with implementation.

- Long.compare() was added in API level 19.

Change-Id: Ic7020c941403c10daa6feacdc737c6a82676ada0

8 years agoMerge "Fixing regression in search bar animation." into ub-launcher3-burnaby-polish
Winson Chung [Thu, 1 Oct 2015 19:33:58 +0000 (19:33 +0000)]
Merge "Fixing regression in search bar animation." into ub-launcher3-burnaby-polish

8 years agoFixing regression in search bar animation.
Winson [Thu, 1 Oct 2015 19:19:23 +0000 (12:19 -0700)]
Fixing regression in search bar animation.

- The other case should fall through to the animation even
  when there is no search bar overlay.

Change-Id: Id91bea78b56934cc1c3379777068adc100f11dba

8 years agoMerge "Adding progress information for preload icons in content description" into...
Sunny Goyal [Thu, 1 Oct 2015 18:36:29 +0000 (18:36 +0000)]
Merge "Adding progress information for preload icons in content description" into ub-launcher3-burnaby-polish

8 years agoMerge "Fixing 'Item removed' announced twice when using accessible DnD" into ub-launc...
Sunny Goyal [Thu, 1 Oct 2015 18:25:28 +0000 (18:25 +0000)]
Merge "Fixing 'Item removed' announced twice when using accessible DnD" into ub-launcher3-burnaby-polish

8 years agoAdding progress information for preload icons in content description
Sunny Goyal [Thu, 1 Oct 2015 18:24:23 +0000 (11:24 -0700)]
Adding progress information for preload icons in content description

Bug: 24086091
Change-Id: Id8fb024973f4affd998627d30077e2764b07edc4

8 years agoMerge "Don’t create dummy app info." into ub-launcher3-burnaby-polish
Winson Chung [Wed, 30 Sep 2015 23:00:57 +0000 (23:00 +0000)]
Merge "Don’t create dummy app info." into ub-launcher3-burnaby-polish

8 years agoDon’t create dummy app info.
Winson [Wed, 30 Sep 2015 22:33:00 +0000 (15:33 -0700)]
Don’t create dummy app info.

Bug: 24539514
Change-Id: I5d14a4d9993e072451f8e7ed9a4cea219ae5d246

8 years agoam 91dd0872: (-s ours) Import translations. DO NOT MERGE
Geoff Mendal [Wed, 30 Sep 2015 20:04:22 +0000 (20:04 +0000)]
am 91dd0872: (-s ours) Import translations. DO NOT MERGE

* commit '91dd087271807980638a490fd8072d28a39ada8d':
  Import translations. DO NOT MERGE

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 30 Sep 2015 19:08:36 +0000 (14:08 -0500)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 22482938
Change-Id: Id607b75f77fe89ee801336c8bc3e7d7db3ad59fa

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 30 Sep 2015 14:12:17 +0000 (07:12 -0700)]
Import translations. DO NOT MERGE

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

8 years agoMerge "Fixing other missing cases of truncated sorts." into ub-launcher3-burnaby...
Winson Chung [Wed, 30 Sep 2015 00:06:55 +0000 (00:06 +0000)]
Merge "Fixing other missing cases of truncated sorts." into ub-launcher3-burnaby-polish

8 years agoFixing other missing cases of truncated sorts.
Winson [Tue, 29 Sep 2015 23:58:02 +0000 (16:58 -0700)]
Fixing other missing cases of truncated sorts.

Bug: 24505761
Change-Id: I9b9358e8b134f0c4aac32ac536d9c8a1f0629957

8 years agoFlipped widths of Nexus 4 and Nexus 5 in InvariantDeviceProfile.
Tony Wickham [Tue, 29 Sep 2015 22:15:53 +0000 (15:15 -0700)]
Flipped widths of Nexus 4 and Nexus 5 in InvariantDeviceProfile.

Without this change, Nexus 4 uses the Nexus 5 device profile and
vice versa. But because the profiles have exactly the same values,
it didn't matter that they were flopped.

Change-Id: I3fd788e040feb8de5bb5f5e336acbd4ac995dc0f

8 years agoHighlighting sectioned apps on fast-scroll.
Winson [Fri, 21 Aug 2015 18:16:27 +0000 (11:16 -0700)]
Highlighting sectioned apps on fast-scroll.

- This CL fixes an old assumption we had about the height
  of rows in AllApps, and ensures that we account for the
  difference in height between the predictive icons and the
  normal icons.
- In addition, we refactor FastBitmapDrawable to have multiple
  states, which it manages in drawing itself, including the
  press state and fast scroll focus states.  And we also refactor
  some of the fast scroll logic in the all apps recycler view
  out to its own class.

Change-Id: I1988159b2767df733bbbfc7dc601859cde6c9943

8 years agoam e1899e44: Merge "Adding size check when generating holographic outline" into ub...
Sunny Goyal [Mon, 28 Sep 2015 19:21:58 +0000 (19:21 +0000)]
am e1899e44: Merge "Adding size check when generating holographic outline" into ub-launcher3-burnaby

* commit 'e1899e44368f7602afc5b87a75102e7ff551982c':
  Adding size check when generating holographic outline

8 years agoMerge "Adding size check when generating holographic outline" into ub-launcher3-burnaby
Sunny Goyal [Mon, 28 Sep 2015 19:17:25 +0000 (19:17 +0000)]
Merge "Adding size check when generating holographic outline" into ub-launcher3-burnaby

8 years agoam de9590be: Adding null check when creating icon bitmap
Sunny Goyal [Mon, 28 Sep 2015 18:46:18 +0000 (18:46 +0000)]
am de9590be: Adding null check when creating icon bitmap

* commit 'de9590be4ca2779ae0f7f64a48ac8b90472484f8':
  Adding null check when creating icon bitmap

8 years agoAdding size check when generating holographic outline
Sunny Goyal [Mon, 28 Sep 2015 18:33:36 +0000 (11:33 -0700)]
Adding size check when generating holographic outline

Bug: 24426913
Change-Id: Ic7c9c767ea60ae4b25e064127105d94104233596

8 years agoAdding null check when creating icon bitmap
Sunny Goyal [Wed, 23 Sep 2015 19:56:51 +0000 (12:56 -0700)]
Adding null check when creating icon bitmap

Bug: 24299267
Change-Id: I596e4a8dbd4e45cffff75e6cf7bbbf7ec45c8ec9

8 years agoFixing regression in L3 with search bar transition.
Winson [Fri, 25 Sep 2015 23:12:35 +0000 (16:12 -0700)]
Fixing regression in L3 with search bar transition.

Change-Id: Ia4155a653012c5d23df21167233fe766e5479347

8 years agoUse Long.compare() instead of truncating values for comparison.
Winson [Fri, 25 Sep 2015 23:01:24 +0000 (16:01 -0700)]
Use Long.compare() instead of truncating values for comparison.

Bug: 24116808

8 years agoMerge "Inform users when "Set wallpaper" fails." into ub-launcher3-burnaby-polish
Tony Wickham [Fri, 25 Sep 2015 21:22:44 +0000 (21:22 +0000)]
Merge "Inform users when "Set wallpaper" fails." into ub-launcher3-burnaby-polish

8 years agoInform users when "Set wallpaper" fails.
Tony Wickham [Fri, 25 Sep 2015 20:05:50 +0000 (13:05 -0700)]
Inform users when "Set wallpaper" fails.

Bug: 23716897
Change-Id: I06cd63d9ee869235c6a4c3140e574bf4c710454e

8 years agoCancelling the stateannouncer when entering button drop target
Sunny Goyal [Fri, 25 Sep 2015 19:17:08 +0000 (12:17 -0700)]
Cancelling the stateannouncer when entering button drop target

Change-Id: Ia10298e1d4862fc5f46894fa6d934207d6e9c117

8 years agoFixing 'Item removed' announced twice when using accessible DnD
Sunny Goyal [Fri, 25 Sep 2015 19:06:13 +0000 (12:06 -0700)]
Fixing 'Item removed' announced twice when using accessible DnD

Change-Id: I2d8781155619d22a41c3f363be7909d411c62fa9

8 years agoAccessibility fixes
Sunny Goyal [Thu, 24 Sep 2015 18:23:31 +0000 (11:23 -0700)]
Accessibility fixes

1) Use a different content description for temporary new page
2) Use different accessibility description for add widget toast
3) Announce when an item is deleted
4) Announce when hovering over a drop target
5) Announce state during drag-n-drop and widget resize (similar to seekbar)

Bug: 2357332124057944
Change-Id: Icabb317625e70c78e11c0b4f99b9339172d93594

8 years agoFixing talk-back folder icon removal regression.
Winson [Thu, 24 Sep 2015 16:56:11 +0000 (09:56 -0700)]
Fixing talk-back folder icon removal regression.

Change-Id: I0b7fff645828d5198500973f1c9ea74f406a1a43

8 years agoAdding small padding between icons in AllApps.
Winson [Wed, 23 Sep 2015 23:11:35 +0000 (16:11 -0700)]
Adding small padding between icons in AllApps.

Bug: 23948851
Change-Id: If7daf84be0c5b314c5afd896d2601028ee243c80

8 years agoresolved conflicts for 8ac727b2 to ub-launcher3-burnaby-polish
Sunny Goyal [Wed, 23 Sep 2015 23:12:02 +0000 (16:12 -0700)]
resolved conflicts for 8ac727b2 to ub-launcher3-burnaby-polish

Change-Id: I34e679bae7faae3c7ca725263fe6cc7c5611e63a

8 years agoMerge "Fixing workspace state issue with option menu." into ub-launcher3-burnaby...
Winson Chung [Wed, 23 Sep 2015 22:51:27 +0000 (22:51 +0000)]
Merge "Fixing workspace state issue with option menu." into ub-launcher3-burnaby-polish

8 years agoUsing custom threadpool executor instead of the one defined in AsyncTask
Sunny Goyal [Wed, 23 Sep 2015 22:38:09 +0000 (15:38 -0700)]
Using custom threadpool executor instead of the one defined in AsyncTask

Change-Id: I8fe95d932c5de14c74f0576bfc3d1f641d12b448

8 years agoam ce0a8946: Merge "Preventing nullpointer exception when cloning rawList" into ub...
Sunny Goyal [Wed, 23 Sep 2015 18:40:52 +0000 (18:40 +0000)]
am ce0a8946: Merge "Preventing nullpointer exception when cloning rawList" into ub-launcher3-burnaby

* commit 'ce0a89461a7e72917c052844f8e9339d2047b1d0':
  Preventing nullpointer exception when cloning rawList

8 years agoMerge "Preventing nullpointer exception when cloning rawList" into ub-launcher3-burnaby
Sunny Goyal [Wed, 23 Sep 2015 18:34:56 +0000 (18:34 +0000)]
Merge "Preventing nullpointer exception when cloning rawList" into ub-launcher3-burnaby

8 years agoam 7ca99110: Using an executor with increased queue size for loading previews
Sunny Goyal [Wed, 23 Sep 2015 18:03:02 +0000 (18:03 +0000)]
am 7ca99110: Using an executor with increased queue size for loading previews

* commit '7ca991104e3ac2e99fcde5599416f82b4d66aad1':
  Using an executor with increased queue size for loading previews

8 years agoUsing an executor with increased queue size for loading previews
Sunny Goyal [Wed, 23 Sep 2015 17:16:38 +0000 (10:16 -0700)]
Using an executor with increased queue size for loading previews

An async task can be in the queue even if it has been cancelled. It
is removed only after it gets executed once. So the executor can get
blocked if there are some tasks which are running, and we keep posting
and cancelling preview load tasks.

Bug: 24306650
Change-Id: I836c8d53258542cc6f31952dff84323cc057437c

8 years agoMerge "Show a spinner while wallpaper is being cropped." into ub-launcher3-burnaby...
Tony Wickham [Wed, 23 Sep 2015 00:39:36 +0000 (00:39 +0000)]
Merge "Show a spinner while wallpaper is being cropped." into ub-launcher3-burnaby-polish

8 years agoFixing workspace state issue with option menu.
Winson [Wed, 23 Sep 2015 00:31:56 +0000 (17:31 -0700)]
Fixing workspace state issue with option menu.

- Hitting a ctrl key combo will actually call onPrepareOptionsMenu(), which
  will change the state of the workspace incorrectly.  Instead, listen for
  the menu button, and only allow the user to enter overview mode if they
  are currently not dragging or in an overlay state (like all apps or
  widgets).
- Also making the overview buttons focusable so that they are focused when
  you go into overview mode.

Bug: 22483367
Change-Id: Ie6e9febd8a5a4e7ad25d745639d42d1c7b9801b4

8 years agoShow a spinner while wallpaper is being cropped.
Tony Wickham [Sat, 19 Sep 2015 01:22:14 +0000 (18:22 -0700)]
Show a spinner while wallpaper is being cropped.

Bug: 23599411

Change-Id: I6c5f75554fd59b7caa3a61f1b11b4a2a6aa21e7c

8 years agoAdjust cropped bitmap bounds to correctly fit in original bitmap bounds.
Tony Wickham [Tue, 22 Sep 2015 20:21:20 +0000 (13:21 -0700)]
Adjust cropped bitmap bounds to correctly fit in original bitmap bounds.

Bug: 22631531

Change-Id: Ia0c1bccf4b8af3a8b335b865974c5d08f9836689

8 years agoPreventing nullpointer exception when cloning rawList
Sunny Goyal [Tue, 22 Sep 2015 23:56:55 +0000 (16:56 -0700)]
Preventing nullpointer exception when cloning rawList

Bug: 24299525
Change-Id: I92018a3da7d75afc2c6997302f8e0492eb78e62f

8 years agoFixing overscroll effect when the navigation bar is opaque
Sunny Goyal [Tue, 23 Jun 2015 17:53:59 +0000 (10:53 -0700)]
Fixing overscroll effect when the navigation bar is opaque

The navigation bar is opaque on mobile devices in landscape mode.
Launcher should ignore the right insets and draw the edge effect appropriately.
Also draw the black bar under the navigation bar, just in case we assume it
to be opaque, but it was not actually opaque.

Bug: 18526657
Change-Id: I1d49dcb82b8a5ee25009bc738cd9b8c0c5c88263

8 years agoam b3fff9d9: Merge "Cleanup some incorrect / noisey calls to CustomContentCallbacks...
Adam Cohen [Mon, 21 Sep 2015 17:40:50 +0000 (17:40 +0000)]
am b3fff9d9: Merge "Cleanup some incorrect / noisey calls to CustomContentCallbacks#onShow / onHide" into ub-launcher3-burnaby

* commit 'b3fff9d98a3e3c886d4efa912d7ad6753dd7ec9c':
  Cleanup some incorrect / noisey calls to CustomContentCallbacks#onShow / onHide

8 years agoMerge "Cleanup some incorrect / noisey calls to CustomContentCallbacks#onShow / onHid...
Adam Cohen [Mon, 21 Sep 2015 17:34:05 +0000 (17:34 +0000)]
Merge "Cleanup some incorrect / noisey calls to CustomContentCallbacks#onShow / onHide" into ub-launcher3-burnaby

8 years agoam 36bde9a9: Merge "Add fake CustomContent screen for testing Launcher interface...
Adam Cohen [Sat, 19 Sep 2015 00:35:57 +0000 (00:35 +0000)]
am 36bde9a9: Merge "Add fake CustomContent screen for testing Launcher interface" into ub-launcher3-burnaby

* commit '36bde9a9e50412329237081e595d732b7da93e0b':
  Add fake CustomContent screen for testing Launcher interface

8 years agoMerge "Add fake CustomContent screen for testing Launcher interface" into ub-launcher...
Adam Cohen [Sat, 19 Sep 2015 00:32:53 +0000 (00:32 +0000)]
Merge "Add fake CustomContent screen for testing Launcher interface" into ub-launcher3-burnaby

8 years agoCleanup some incorrect / noisey calls to CustomContentCallbacks#onShow / onHide
Adam Cohen [Fri, 18 Sep 2015 19:15:19 +0000 (12:15 -0700)]
Cleanup some incorrect / noisey calls to CustomContentCallbacks#onShow / onHide

-> In some instances, onResume would incorrectly call onShow
-> When pressing Home from CustomContent, we'd get a sequence of onHide,
   onShow, and then onHide due to some deferred actions in onNewIntent.
   Got rid of the onShow.

issue 17629011

Change-Id: I9b4f2ef682f5a7060e68210866fa05452076e428

8 years agoam 6ed058cb: Wallpaper preview parallax matches the actual wallpaper\'s.
Tony Wickham [Fri, 18 Sep 2015 20:41:14 +0000 (20:41 +0000)]
am 6ed058cb: Wallpaper preview parallax matches the actual wallpaper\'s.

* commit '6ed058cb6bfbb5756721e0d7f4a80a1c08ee665c':
  Wallpaper preview parallax matches the actual wallpaper's.

8 years agoWallpaper preview parallax matches the actual wallpaper's.
Tony Wickham [Thu, 10 Sep 2015 01:21:49 +0000 (18:21 -0700)]
Wallpaper preview parallax matches the actual wallpaper's.

Cherry picking the following changes from ub-launcher3-master:
Change-Id: I41c5bbbfdabfeb4e20d77e9b5804842a03211edf
Change-Id: I69afa3f8cc59c77e9c4c25e29e8db8c4beb87462
Change-Id: I82b7ba506d51ee4b3812af5fbdf95d3303b37aef
Change-Id: Id7c2b5483c5535d59be2f8a459ce7788e3c8318a

Bug: 23568800
Change-Id: I343169b9fdc5ceaab3d4b39044627d78b7267868
(cherry picked from commit 3e776a87dc5178ab7d2c31a8db06fe5657db4e4a)

8 years agoAdd fake CustomContent screen for testing Launcher interface
Adam Cohen [Fri, 18 Sep 2015 19:11:16 +0000 (12:11 -0700)]
Add fake CustomContent screen for testing Launcher interface

Change-Id: I5f2aee1768fe59ee3079d069ff0be21cdf9282ea

8 years agoMerge "Requiring key chord to delete icons and folders on the workspace" into ub...
Winson Chung [Fri, 18 Sep 2015 18:49:25 +0000 (18:49 +0000)]
Merge "Requiring key chord to delete icons and folders on the workspace" into ub-launcher3-burnaby-polish