OSDN Git Service

android-x86/packages-apps-Launcher3.git
8 years agoEnable selection action mode for Android M+.
Yohei Yukawa [Sat, 31 Oct 2015 01:54:58 +0000 (18:54 -0700)]
Enable selection action mode for Android M+.

Since I62963d225e6ea5d2ec9d8ebc8a6d73099f5d6c7f, we have disabled
selection action mode in the folder-name editing mode on Launcher,
mainly because it messed up the view on phones.  However that is no
longer the case in Android M and later, where floating action mode
is available.

With this CL, we start relying on the default floating action mode
in Android M and later.

Bug: 22210697
Change-Id: Ie19e7844194acd86cdb013254a1923f0b1d78e11

8 years agoMerge "resolve merge conflicts of 4530aca912 to ub-launcher3-master." into ub-launche...
Tony Wickham [Fri, 30 Oct 2015 18:48:11 +0000 (18:48 +0000)]
Merge "resolve merge conflicts of 4530aca912 to ub-launcher3-" into ub-launcher3-master

8 years agoAdded Gravity.CENTER_HORIZONTAL to drop target layout params.
Tony Wickham [Fri, 30 Oct 2015 18:03:51 +0000 (11:03 -0700)]
Added Gravity.CENTER_HORIZONTAL to drop target layout params.

I'm not sure if it is strictly necessary, but it is probably good to
be more explicit regardless.

Change-Id: Ib7647dbcb5449e22ef87da8d49b4e7804ba5c17f

8 years agoresolve merge conflicts of 4530aca912 to ub-launcher3-master.
Tony Wickham [Fri, 30 Oct 2015 18:09:44 +0000 (11:09 -0700)]
resolve merge conflicts of 4530aca912 to ub-launcher3-

Change-Id: I55a0cd751cbcce8fcc8efa23a0a88a01ec08522b

8 years agoresolve merge conflicts of a3c74d10a7 to ub-launcher3-master.
Tony Wickham [Fri, 30 Oct 2015 17:37:43 +0000 (10:37 -0700)]
resolve merge conflicts of a3c74d10a7 to ub-launcher3-

Change-Id: Ibeb2499ac278e4094a2922501cfffad2489e58ed

8 years agoBuild fix
Sunny Goyal [Fri, 30 Oct 2015 17:27:08 +0000 (10:27 -0700)]
Build fix

Change-Id: I0bf4241aa48f25f2b5774726d1d75dfb5a20a2e5

8 years agoSet parallax offset to be 0.5f for default wallpapers.
Tony Wickham [Fri, 30 Oct 2015 16:52:22 +0000 (09:52 -0700)]
Set parallax offset to be 0.5f for default wallpapers.

This ensures they are centered as they were without any offset.

Bug: 25347076
Change-Id: Id773cd89463d47b350e60878c00e1112e0244414

8 years agoMerge "Refactoring WallpaperOffsetInterpolator to a new file Removing some us unused...
Sunny Goyal [Fri, 30 Oct 2015 00:33:46 +0000 (00:33 +0000)]
Merge "Refactoring WallpaperOffsetInterpolator to a new file Removing some us unused methods" into ub-launcher3-master

8 years agoSetting correct height for search bar widget options bundle.
Tony Wickham [Fri, 23 Oct 2015 18:43:47 +0000 (11:43 -0700)]
Setting correct height for search bar widget options bundle.

- Seperate search bar height from its top and bottom paddings
- Report this height plus 8dps top and bottom for the widget options
- Use a separate bottom padding to adjust spacing between QSB and
  the workspace
- Add tests to verify the height of the search bar in both normal and
  tall modes (ran on Nexus 6, 7, and 10)
Change-Id: Ia7557785d1b38194eee869d0460456e8f33447d5

8 years agoMerge "Disabling the desaturation of fast scroll items." into ub-launcher3-burnaby...
Winson Chung [Wed, 28 Oct 2015 22:38:28 +0000 (22:38 +0000)]
Merge "Disabling the desaturation of fast scroll items." into ub-launcher3-burnaby-polish
am: cbdb153893

* commit 'cbdb15389330aac3e4f5f404c20195ba13991dbb':
  Disabling the desaturation of fast scroll items.

8 years agoMerge "Disabling the desaturation of fast scroll items." into ub-launcher3-burnaby...
Winson Chung [Wed, 28 Oct 2015 22:35:00 +0000 (22:35 +0000)]
Merge "Disabling the desaturation of fast scroll items." into ub-launcher3-burnaby-polish

8 years agoDisabling the desaturation of fast scroll items.
Winson [Wed, 28 Oct 2015 22:30:38 +0000 (15:30 -0700)]
Disabling the desaturation of fast scroll items.

Change-Id: I7e90e3b35dc6473ba5e2319abcea5c0c76cbd708

8 years agoMerge "Making all provider calls using content resolver." into ub-launcher3-master
Sunny Goyal [Wed, 28 Oct 2015 22:24:35 +0000 (22:24 +0000)]
Merge "Making all provider calls using content resolver." into ub-launcher3-master

8 years agoMerge "Add null check in Launcher onNewIntent() before moveToDefaultScreen()." into...
Tony Wickham [Tue, 27 Oct 2015 01:06:08 +0000 (01:06 +0000)]
Merge "Add null check in Launcher onNewIntent() before moveToDefaultScreen()." into ub-launcher3-burnaby-polish
am: c3d76582b6

* commit 'c3d76582b656fdabc92a470ebe0d986b58c44751':
  Add null check in Launcher onNewIntent() before moveToDefaultScreen().

8 years agoMerge "Add null check in Launcher onNewIntent() before moveToDefaultScreen()." into...
Tony Wickham [Tue, 27 Oct 2015 01:02:26 +0000 (01:02 +0000)]
Merge "Add null check in Launcher onNewIntent() before moveToDefaultScreen()." into ub-launcher3-burnaby-polish

8 years agoFixing null check when calling mutateOnMainThread
Sunny Goyal [Mon, 26 Oct 2015 18:02:31 +0000 (18:02 +0000)]
Fixing null check when calling mutateOnMainThread
am: 1ba7e36cc8

* commit '1ba7e36cc8901b34b91d06fdc868a63f9a8fad2d':
  Fixing null check when calling mutateOnMainThread

8 years agoFixing null check when calling mutateOnMainThread
Sunny Goyal [Mon, 26 Oct 2015 17:42:12 +0000 (10:42 -0700)]
Fixing null check when calling mutateOnMainThread

Bug: 25269169
Change-Id: I74f7fb833a374f59a16487099f1bf72b086e88ee

8 years agoAdd null check in Launcher onNewIntent() before moveToDefaultScreen().
Tony [Mon, 26 Oct 2015 00:39:37 +0000 (17:39 -0700)]
Add null check in Launcher onNewIntent() before moveToDefaultScreen().

There is a race condition that occurs primarily (maybe entirely) with
Android Auto, it seems because they hijack the Home intent or something
similar. I'm not exactly sure how Android Auto works, but if I pair my
phone with the Desktop Head Unit (car dashboard emulator), I can repro
the NPE fairly easily by simply force closing Android Auto and then
disconnecting my phone from the DHU. If I don't force close Android
Auto, then pressing home launches Android Auto or other apps that I
assume handle some custom intent, such as Car Home Ultra, instead of
normal Home intents such as Launcher3/Google Now Launcher. So I think
what's happening is that, when the phone is disconnected from the car,
Android Auto restores and launches the real home intent (Launcher 3)
around the same time that it destroys the previous home intent
(Android Auto, Car Home Ultra, etc.). This could cause the NPE if both
intents are actually Launcher 3, as is the case when Android Auto is
already closed, because mWorkspace is set to null in
Launcher#onDestroy() (something like onNewIntent() --> post() called
--> onDestroy() --> post() runs). This is consistent with the fact
that I can guarantee a repro if I use postDelayed() instead of post().

Long-winded explanation aside, I think this fix is safe, especially
since we already have a null check for mWorkspace in onNewIntent(),
just not inside the post().

Bug: 24610231

Change-Id: I42f75b83946f375d947be1961a1f2a03a3707a84

8 years agoresolve merge conflicts of 52040c2d51 to ub-launcher3-master.
Tony Wickham [Fri, 23 Oct 2015 19:23:15 +0000 (12:23 -0700)]
resolve merge conflicts of 52040c2d51 to ub-launcher3-

Change-Id: Ie3cf72ef11b43e2c681d6d614c668062c7e7b74c

8 years agoMerge "Set search bar height before setting up views in Launcher." into ub-launcher3...
Tony Wickham [Fri, 23 Oct 2015 18:38:46 +0000 (18:38 +0000)]
Merge "Set search bar height before setting up views in Launcher." into ub-launcher3-burnaby-polish

8 years agoDon\'t add cells to FocusLogic sparse matrix if they aren\'t focusable.
Tony Wickham [Thu, 22 Oct 2015 01:12:49 +0000 (01:12 +0000)]
Don\'t add cells to FocusLogic sparse matrix if they aren\'t focusable.
am: df315180f0

* commit 'df315180f0653702b470beea62f27927e45fab4b':
  Don't add cells to FocusLogic sparse matrix if they aren't focusable.

8 years agoDon't add cells to FocusLogic sparse matrix if they aren't focusable.
Tony Wickham [Thu, 22 Oct 2015 00:50:22 +0000 (17:50 -0700)]
Don't add cells to FocusLogic sparse matrix if they aren't focusable.

Previously, any child of ShortcutAndWidgetContainer was added to the
matrix, causing widgets (which aren't focusable) to be considered as
potential targets to gain focus when an arrow key was pressed. But if
the algorithm chose them, they couldn't take the focus so nothing
happened (i.e. the focus stayed on the app/folder it was on before).

Bug: 25126768
Change-Id: Id55fc310f7f58fb8795cce51dcefe4fd1210f788

8 years agoresolve merge conflicts of d5d7fa10af to ub-launcher3-master.
Tony Wickham [Wed, 21 Oct 2015 21:41:25 +0000 (14:41 -0700)]
resolve merge conflicts of d5d7fa10af to ub-launcher3-

Change-Id: I324b1a9cd3c6dce1d5d3b14d3ef95f798e5bc243

8 years agoMerge "Hide the "Set Wallpaper" action bar when clicked." into ub-launcher3-burnaby...
Tony Wickham [Wed, 21 Oct 2015 21:21:14 +0000 (21:21 +0000)]
Merge "Hide the "Set Wallpaper" action bar when clicked." into ub-launcher3-burnaby-polish

8 years agoDo not animate folder when it is closed while changing activity state
Sunny Goyal [Wed, 21 Oct 2015 21:06:50 +0000 (21:06 +0000)]
Do not animate folder when it is closed while changing activity state
am: 935fca1857

* commit '935fca185741e51ab634e5df63c6369d2d55dba5':
  Do not animate folder when it is closed while changing activity state

8 years agoHide the "Set Wallpaper" action bar when clicked.
Tony Wickham [Wed, 21 Oct 2015 20:56:59 +0000 (13:56 -0700)]
Hide the "Set Wallpaper" action bar when clicked.

This already happens everywhere except for the case where an external
app such as Photos started the wallpaper picker. So not only is this
more consistent, it also prevents crashes and other potential issues
caused by clicking "Set Wallpaper" too many times.

Bug: 25026717

Change-Id: I63c6a0ce68656e6e68094e88074a836d8c1034f9

8 years agoDo not animate folder when it is closed while changing activity state
Sunny Goyal [Tue, 13 Oct 2015 17:19:01 +0000 (10:19 -0700)]
Do not animate folder when it is closed while changing activity state

Bug: 21733536
Change-Id: I36aa3041b9300c917e320b511e00a1721e44f854

8 years agoSet search bar height before setting up views in Launcher.
Tony Wickham [Tue, 20 Oct 2015 20:24:36 +0000 (13:24 -0700)]
Set search bar height before setting up views in Launcher.

This ensures that the QSB widget options are set correctly the first
time they are used.

Bug: 24704753
Change-Id: I2bb13ff012b6f13ca076deed61f0b08a7037e2fa

8 years agoImport translations. DO NOT MERGE am: 6ce85953ac -s ours
Geoff Mendal [Wed, 21 Oct 2015 15:58:40 +0000 (15:58 +0000)]
Import translations. DO NOT MERGE am: 6ce85953ac  -s ours
am: 56070d4b67  -s ours

* commit '56070d4b67490b371fa0839997aaddac46e1758a':
  Import translations. DO NOT MERGE

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 21 Oct 2015 15:54:05 +0000 (15:54 +0000)]
Import translations. DO NOT MERGE
am: 6ce85953ac  -s ours

* commit '6ce85953acf0399965c6c8a75f5e6eea5a643678':
  Import translations. DO NOT MERGE

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 21 Oct 2015 15:53:42 +0000 (15:53 +0000)]
Import translations. DO NOT MERGE
am: 8a9f7abcf1  -s ours

* commit '8a9f7abcf169e0dbd38e8ea4be9e1229f8f71488':
  Import translations. DO NOT MERGE

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 21 Oct 2015 15:04:52 +0000 (08:04 -0700)]
Import translations. DO NOT MERGE

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

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 21 Oct 2015 15:03:43 +0000 (08:03 -0700)]
Import translations. DO NOT MERGE

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

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 21 Oct 2015 15:02:37 +0000 (08:02 -0700)]
Import translations. DO NOT MERGE

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

8 years agoMerge "Fixing disabled icon getting changed back to normal state on long press" into...
Sunny Goyal [Wed, 21 Oct 2015 00:21:47 +0000 (00:21 +0000)]
Merge "Fixing disabled icon getting changed back to normal state on long press" into ub-launcher3-burnaby-polish
am: 5c6f99e290

* commit '5c6f99e29077aea5ab946e2ec30a5705e95a822b':
  Fixing disabled icon getting changed back to normal state on long press

8 years agoMerge "Fixing disabled icon getting changed back to normal state on long press" into...
Sunny Goyal [Wed, 21 Oct 2015 00:18:25 +0000 (00:18 +0000)]
Merge "Fixing disabled icon getting changed back to normal state on long press" into ub-launcher3-burnaby-polish

8 years agoFix regression where keyboard couldn\'t switch between workspace pages.
Tony Wickham [Tue, 20 Oct 2015 23:49:58 +0000 (23:49 +0000)]
Fix regression where keyboard couldn\'t switch between workspace pages.
am: c2bc0ef1c3

* commit 'c2bc0ef1c313698fd931fc84ec2f11882c38cdba':
  Fix regression where keyboard couldn't switch between workspace pages.

8 years agoFix regression where keyboard couldn't switch between workspace pages.
Tony Wickham [Tue, 20 Oct 2015 23:24:53 +0000 (16:24 -0700)]
Fix regression where keyboard couldn't switch between workspace pages.

Bug: 25122302
Change-Id: Id1d7628753ce7ef37af50e8594e541dcb6bea13e

8 years agoFixing disabled icon getting changed back to normal state on long press
Sunny Goyal [Tue, 20 Oct 2015 22:17:00 +0000 (15:17 -0700)]
Fixing disabled icon getting changed back to normal state on long press

Change-Id: I4f35c1cbecfef7891f8b1187ba3be0af695d4fd5

8 years agoFixing ConcurrentModificationException in tests am: ec7c9178dd
Sunny Goyal [Tue, 20 Oct 2015 18:24:07 +0000 (18:24 +0000)]
Fixing ConcurrentModificationException in tests am: ec7c9178dd
am: 93229c40bc

* commit '93229c40bc1cf31c9864a6e4948b8479790345bc':
  Fixing ConcurrentModificationException in tests

8 years agoFixing ConcurrentModificationException in tests
Sunny Goyal [Tue, 20 Oct 2015 18:05:22 +0000 (18:05 +0000)]
Fixing ConcurrentModificationException in tests
am: ec7c9178dd

* commit 'ec7c9178dd1f17cf8479acd4e0b4575a91cfb255':
  Fixing ConcurrentModificationException in tests

8 years agoMaking all provider calls using content resolver.
Sunny Goyal [Wed, 23 Sep 2015 01:24:19 +0000 (18:24 -0700)]
Making all provider calls using content resolver.

This will allow us to easily move db creation out of onCreate

Change-Id: Idd949624b0a9c95e4451e48db7764b7b7922c40a

8 years agoresolve merge conflicts of fe3db428ab to ub-launcher3-master.
Sunny Goyal [Tue, 20 Oct 2015 17:37:15 +0000 (10:37 -0700)]
resolve merge conflicts of fe3db428ab to ub-launcher3-

Change-Id: Icc60a61f621fefe9db67b178921e62f7d72d7e5a

8 years agoFixing ConcurrentModificationException in tests
Sunny Goyal [Tue, 20 Oct 2015 17:31:09 +0000 (10:31 -0700)]
Fixing ConcurrentModificationException in tests

Change-Id: I7aabc62aa249dae979366ce2871604f5822f3139

8 years agoMerge "Refactoring getPreferenceKey method" into ub-launcher3-burnaby-polish
Sunny Goyal [Tue, 20 Oct 2015 17:17:08 +0000 (17:17 +0000)]
Merge "Refactoring getPreferenceKey method" into ub-launcher3-burnaby-polish

8 years agoUsing UiSelector instead of BySelector
Sunny Goyal [Tue, 20 Oct 2015 17:02:33 +0000 (17:02 +0000)]
Using UiSelector instead of BySelector
am: ead4ab9655

* commit 'ead4ab9655683050a967864a3213d8782be0344c':
  Using UiSelector instead of BySelector

8 years agoRefactoring getPreferenceKey method
Sunny Goyal [Mon, 19 Oct 2015 23:59:07 +0000 (16:59 -0700)]
Refactoring getPreferenceKey method

This method was returnning a constant and getting inlined by proguard.

Change-Id: I87348e25b21483adc1b27d16f99dec4b73205701

8 years agoUsing UiSelector instead of BySelector
Sunny Goyal [Tue, 20 Oct 2015 00:32:10 +0000 (17:32 -0700)]
Using UiSelector instead of BySelector

Change-Id: Ie912cc7291a2533f6686bdb34e108be15ce244ac

8 years agoScaling down the icon before applying the user badge
Sunny Goyal [Mon, 19 Oct 2015 21:03:30 +0000 (14:03 -0700)]
Scaling down the icon before applying the user badge
  > This also saves memory only create one new bitmap while loading instead of two

Bug: 25027252
Change-Id: Ia594dd65a30f32e99404190f649b334615c9e17f

8 years agoImport translations. DO NOT MERGE am: f58538672a -s ours
Geoff Mendal [Mon, 19 Oct 2015 16:29:23 +0000 (16:29 +0000)]
Import translations. DO NOT MERGE am: f58538672a  -s ours
am: 705b4abd57  -s ours

* commit '705b4abd5793f2b989bca9c53220ffff3014a6ec':
  Import translations. DO NOT MERGE

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 19 Oct 2015 16:25:53 +0000 (16:25 +0000)]
Import translations. DO NOT MERGE
am: f58538672a  -s ours

* commit 'f58538672aaeb1d0d00a9c65a773f5e251003c3b':
  Import translations. DO NOT MERGE

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 19 Oct 2015 16:25:53 +0000 (16:25 +0000)]
Import translations. DO NOT MERGE
am: 8c23c2d2ba  -s ours

* commit '8c23c2d2ba4b7067afca5a28df2709450d29c5bf':
  Import translations. DO NOT MERGE

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 19 Oct 2015 15:52:02 +0000 (08:52 -0700)]
Import translations. DO NOT MERGE

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

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 19 Oct 2015 15:50:56 +0000 (08:50 -0700)]
Import translations. DO NOT MERGE

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

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 19 Oct 2015 15:49:51 +0000 (08:49 -0700)]
Import translations. DO NOT MERGE

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

8 years agoMerge "Adding tests for rotation preference Updating the gradle file to run tests...
Sunny Goyal [Sat, 17 Oct 2015 00:51:18 +0000 (00:51 +0000)]
Merge "Adding tests for rotation preference Updating the gradle file to run tests directly from AndroidStudio" into ub-launcher3-burnaby-polish
am: 917d434c5c

* commit '917d434c5ce93ae86b43a3825c9cbc3541843f5e':
  Adding tests for rotation preference Updating the gradle file to run tests directly from AndroidStudio

8 years agoMerge "Adding tests for rotation preference Updating the gradle file to run tests...
Sunny Goyal [Sat, 17 Oct 2015 00:49:33 +0000 (00:49 +0000)]
Merge "Adding tests for rotation preference Updating the gradle file to run tests directly from AndroidStudio" into ub-launcher3-burnaby-polish

8 years agoAdding tests for rotation preference
Sunny Goyal [Sat, 17 Oct 2015 00:18:54 +0000 (17:18 -0700)]
Adding tests for rotation preference
Updating the gradle file to run tests directly from AndroidStudio

Change-Id: Iac23dfc6f995477f2406071fbfab3a16ee58ce6f

8 years agoresolve merge conflicts of fb4014daa3 to ub-launcher3-master.
Winson [Fri, 16 Oct 2015 23:47:49 +0000 (16:47 -0700)]
resolve merge conflicts of fb4014daa3 to ub-launcher3-

Change-Id: I6d84a7f3fad757bf139b6ea0001ac6ab88850996

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. am: 775455c4a8
Tony Wickham [Fri, 16 Oct 2015 20:43:32 +0000 (20:43 +0000)]
Add LauncherCallbacks method to add additional search widget options. am: 775455c4a8
am: f79d347a61

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

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:37:37 +0000 (18:37 +0000)]
Merge "Preventing activity to restart when keyboard is connected or keyboard type changes" into ub-launcher3-burnaby-polish
am: 363da26646

* commit '363da26646b3214a437981fc3ad908ccd363f8f3':
  Preventing activity to restart when keyboard is connected or keyboard type changes

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 agoam fb062c63: Close some Cursors and call super.onFinishInflate().
Tony Wickham [Fri, 16 Oct 2015 17:17:46 +0000 (17:17 +0000)]
am fb062c63: Close some Cursors and call super.onFinishInflate().

* commit 'fb062c63355f65e6df9e99cbf4cce49cee2900d1':
  Close some Cursors and call super.onFinishInflate().

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 agoRefactoring WallpaperOffsetInterpolator to a new file
Sunny Goyal [Fri, 16 Oct 2015 15:58:57 +0000 (08:58 -0700)]
Refactoring WallpaperOffsetInterpolator to a new file
Removing some us unused methods

Change-Id: Ife790e5ca6848fa13dc3fab1bba1e6220bf83743

8 years agoresolved conflicts for a8709ddb to ub-launcher3-master
Tony Wickham [Thu, 15 Oct 2015 18:18:26 +0000 (11:18 -0700)]
resolved conflicts for a8709ddb to ub-launcher3-master

Change-Id: I172395e6e172914627b6dec721070a66520557b1

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 44b48f77: am 28c6b963: Showing a permission prompt for direct call shortcuts
Sunny Goyal [Wed, 14 Oct 2015 19:19:24 +0000 (19:19 +0000)]
am 44b48f77: am 28c6b963: Showing a permission prompt for direct call shortcuts

* commit '44b48f77027c386885ed459de501f9d822abac9c':
  Showing a permission prompt for direct call shortcuts

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 agoresolved conflicts for e9f27273 to ub-launcher3-master
Winson [Wed, 14 Oct 2015 00:52:17 +0000 (17:52 -0700)]
resolved conflicts for e9f27273 to ub-launcher3-master

Change-Id: I96b062c3309eadf4d41a5f00ea74740bab78b358

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 agoam a295048a: Increase folder cell width slightly.
Tony Wickham [Mon, 12 Oct 2015 23:25:24 +0000 (23:25 +0000)]
am a295048a: Increase folder cell width slightly.

* commit 'a295048a69d35b5adc3f021c3d40c32700cc9629':
  Increase folder cell width slightly.

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 agoam f7203499: (-s ours) Import translations. DO NOT MERGE
Geoff Mendal [Mon, 12 Oct 2015 20:55:17 +0000 (20:55 +0000)]
am f7203499: (-s ours) Import translations. DO NOT MERGE

* commit 'f7203499f40af2afbcf20d5ff7555c97d86ad841':
  Import translations. DO NOT MERGE

8 years agoresolved conflicts for f685c7e5 to ub-launcher3-master
Tony Wickham [Mon, 12 Oct 2015 20:34:28 +0000 (13:34 -0700)]
resolved conflicts for f685c7e5 to ub-launcher3-master

Change-Id: Iddf78c166f9ab89ffae2ddc819c9ba5cf5e988be

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:01:16 +0000 (07:01 -0700)]
Import translations. DO NOT MERGE

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

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 agoresolved conflicts for fa3c369c to ub-launcher3-master
Tony Wickham [Fri, 9 Oct 2015 17:05:56 +0000 (10:05 -0700)]
resolved conflicts for fa3c369c to ub-launcher3-master

Change-Id: I6bfc3d3b731a414060d86d4f1dfc5480c279edc9

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 agoresolved conflicts for d70a4b7b to ub-launcher3-master
Tony Wickham [Fri, 9 Oct 2015 01:32:22 +0000 (18:32 -0700)]
resolved conflicts for d70a4b7b to ub-launcher3-master

Change-Id: Ib04f80eeebf551fc026925830fc4739d1c620513

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 agoam 56c73604: Verify that the widget id is valid, before binding the widget
Sunny Goyal [Thu, 8 Oct 2015 21:52:26 +0000 (21:52 +0000)]
am 56c73604: Verify that the widget id is valid, before binding the widget

* commit '56c7360497823ed83d4eb04ef32c117e9c5608d6':
  Verify that the widget id is valid, before binding the widget

8 years agoam cf12698f: Merge "Null check in PackageInstallerCompat" into ub-launcher3-burnaby...
Sunny Goyal [Thu, 8 Oct 2015 21:52:25 +0000 (21:52 +0000)]
am cf12698f: Merge "Null check in PackageInstallerCompat" into ub-launcher3-burnaby-polish

* commit 'cf12698fccddc832069eece02b352d689bf950b6':
  Null check in PackageInstallerCompat

8 years agoam 5802588d: Merge "Update the widget spans after the provider changes" into ub-launc...
Sunny Goyal [Thu, 8 Oct 2015 21:52:24 +0000 (21:52 +0000)]
am 5802588d: Merge "Update the widget spans after the provider changes" into ub-launcher3-burnaby-polish

* commit '5802588dc067f69914a0adaaec1c15825f0e720d':
  Update the widget spans after the provider changes

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 agoam bbf01846: Using 23 instead of Build.Versoin.M until the final SDK is available.
Sunny Goyal [Thu, 8 Oct 2015 14:45:47 +0000 (14:45 +0000)]
am bbf01846: Using 23 instead of Build.Versoin.M until the final SDK is available.

* commit 'bbf0184603ce9395173f5e412d8188b4b0910f9e':
  Using 23 instead of Build.Versoin.M until the final SDK is available.