OSDN Git Service

android-x86/packages-apps-Launcher3.git
8 years agoMerge "Add appropriate (tiny) offset to widget drops so they land correctly." into...
Tony Wickham [Fri, 4 Dec 2015 22:14:36 +0000 (22:14 +0000)]
Merge "Add appropriate (tiny) offset to widget drops so they land correctly." into ub-launcher3-burnaby-polish

8 years agoMerge "Increase spacing between icons in All Apps on tablets." into ub-launcher3...
Tony Wickham [Fri, 4 Dec 2015 18:30:09 +0000 (18:30 +0000)]
Merge "Increase spacing between icons in All Apps on tablets." into ub-launcher3-burnaby-polish

8 years agoMerge "Normalizing app icons based on the standard icon guidelines" into ub-launcher3...
Sunny Goyal [Fri, 4 Dec 2015 17:56:04 +0000 (17:56 +0000)]
Merge "Normalizing app icons based on the standard icon guidelines" into ub-launcher3-burnaby-polish

8 years agoMerge "Cleanup keyboard code." into ub-launcher3-burnaby-polish
Tony Wickham [Fri, 4 Dec 2015 17:55:33 +0000 (17:55 +0000)]
Merge "Cleanup keyboard code." into ub-launcher3-burnaby-polish

8 years agoCleanup keyboard code.
Tony Wickham [Fri, 4 Dec 2015 17:48:17 +0000 (09:48 -0800)]
Cleanup keyboard code.

This should be the last keyboard CL.
- Fix bug: couldn't focus All Apps button in some cases when the All
Apps column was skipped over. Also added test case for this.
- Stop explicitly passing countX and countY to handleKeyEvent, as
these had to match the matrix dimensions anyways.
- Rename createSparseMatrix() - there were 3 methods of the same name,
but all had different purposes. This is confusing both from a
readability standpoint and also when looking at stack traces.

Change-Id: I08ba8411674fcea43a608856c114dee8dbd22398

8 years agoHide the focus indicator view when going to a fullscreen page.
Tony Wickham [Wed, 18 Nov 2015 18:56:35 +0000 (10:56 -0800)]
Hide the focus indicator view when going to a fullscreen page.

Bug: 25649853
Change-Id: I9f2f221020548b48d816924a1803a1a70d11c412

8 years agoFullscreen pages (e.g. Now) are focusable via keyboard.
Tony Wickham [Sat, 14 Nov 2015 01:32:20 +0000 (17:32 -0800)]
Fullscreen pages (e.g. Now) are focusable via keyboard.

Change-Id: I962551651aeb9ac7b57bb51b195adc3140db30d8

8 years agoMake sure pages are always accessible via left/right arrow keys.
Tony Wickham [Wed, 11 Nov 2015 17:25:38 +0000 (09:25 -0800)]
Make sure pages are always accessible via left/right arrow keys.

- Handle NextPageFirstItem as first focusable item in reading order
- Handle PreviousPageLastItem as last focusable item in reading order
- Check the hotseat after the workspace in both cases above
- Dpad horizontal navigation (left/right) uses these as a last
  resort (Rule3) to guarantee an item takes focus if a page exists

Note that it is necessary to search for a focusable item because
widgets are not yet focusable.

Bug: 25591057
Change-Id: I953648bd76c657d660a38427fdd4108bf9963c23

8 years agoMerge "Add special column for All Apps button in FocusLogic's sparse matrix." into...
Tony Wickham [Thu, 3 Dec 2015 20:41:28 +0000 (20:41 +0000)]
Merge "Add special column for All Apps button in FocusLogic's sparse matrix." into ub-launcher3-burnaby-polish

8 years agoAdd appropriate (tiny) offset to widget drops so they land correctly.
Tony Wickham [Wed, 4 Nov 2015 02:05:01 +0000 (18:05 -0800)]
Add appropriate (tiny) offset to widget drops so they land correctly.

Also removed some unused parameters I found on the way.

Bug: 25191623
Change-Id: Ib9a30db106467c114cc8b54a5b13ed3e88162d56

8 years agoNormalizing app icons based on the standard icon guidelines
Sunny Goyal [Thu, 17 Sep 2015 21:59:10 +0000 (14:59 -0700)]
Normalizing app icons based on the standard icon guidelines

Bug: 18245189
Change-Id: Iaadcddbe3f966733a13b2e1fb60ba09a8b3aef9a

8 years agoMerge "Scaling down the icon before applying the user badge > This also saves memor...
Sunny Goyal [Thu, 3 Dec 2015 03:25:21 +0000 (03:25 +0000)]
Merge "Scaling down the icon before applying the user badge   > This also saves memory only create one new bitmap while loading instead of two" into ub-launcher3-burnaby-polish

8 years agoMerge "Disallow scrolling if workspace is in transition." into ub-launcher3-burnaby...
Tony Wickham [Wed, 2 Dec 2015 23:11:09 +0000 (23:11 +0000)]
Merge "Disallow scrolling if workspace is in transition." into ub-launcher3-burnaby-polish

8 years agoIncrease spacing between icons in All Apps on tablets.
Tony Wickham [Wed, 2 Dec 2015 21:37:07 +0000 (13:37 -0800)]
Increase spacing between icons in All Apps on tablets.

Change-Id: If90332098f749295da07f4faca707a7a6965666b

8 years agoMerge "Keeping the focus indicator on the widget view, while a child is focused"...
Sunny Goyal [Tue, 1 Dec 2015 23:19:11 +0000 (23:19 +0000)]
Merge "Keeping the focus indicator on the widget view, while a child is focused" into ub-launcher3-burnaby-polish

8 years agoAdding margin to Drag layer instead of checking for right insets at every place
Sunny Goyal [Mon, 23 Nov 2015 19:47:50 +0000 (11:47 -0800)]
Adding margin to Drag layer instead of checking for right insets at every place

Bug: 25692432
Change-Id: I853f41a17c54b30b7772b9fd8556d9465de84752

8 years agoKeeping the focus indicator on the widget view, while a child is focused
Sunny Goyal [Tue, 1 Dec 2015 21:21:49 +0000 (13:21 -0800)]
Keeping the focus indicator on the widget view, while a child is focused

Bug: 25199581
Change-Id: Ie08d1438ae0c1b5d4fcaa4d642508c1b9db0f5d4

8 years agoOnly fetching firstInstallTime for an activity when required
Sunny Goyal [Tue, 24 Nov 2015 18:16:37 +0000 (10:16 -0800)]
Only fetching firstInstallTime for an activity when required

Change-Id: Ia16c05718938849f4250802d8770ddfe6dbef055

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 agoMerge "Allowing widgets to be focusable" into ub-launcher3-burnaby-polish
Sunny Goyal [Wed, 25 Nov 2015 18:10:56 +0000 (18:10 +0000)]
Merge "Allowing widgets to be focusable" into ub-launcher3-burnaby-polish

8 years agoMerge "Skip to the end of the folder open animation in battery saver mode." into...
Tony Wickham [Wed, 25 Nov 2015 00:02:12 +0000 (00:02 +0000)]
Merge "Skip to the end of the folder open animation in battery saver mode." into ub-launcher3-burnaby-polish

8 years agoDon't let folder be replaced with final item twice.
Tony Wickham [Tue, 24 Nov 2015 23:34:53 +0000 (15:34 -0800)]
Don't let folder be replaced with final item twice.

Bug: 25732317
Change-Id: I77b3ddc8951583bebfb908fda934c9b80ddebce0

8 years agoTying LauncherAppState lifecycle with LauncherProvider
Sunny Goyal [Tue, 24 Nov 2015 19:40:40 +0000 (11:40 -0800)]
Tying LauncherAppState lifecycle with LauncherProvider

The content provider is the first component started with the main process,
which makes it ideal for initiating LauncherAppState

Change-Id: I03db82a8949ad1376af53a0033592f421dbf0b15

8 years agoMerge "Setting statusbar and nav bar colors in theme instead of code" into ub-launche...
Sunny Goyal [Mon, 23 Nov 2015 18:45:41 +0000 (18:45 +0000)]
Merge "Setting statusbar and nav bar colors in theme instead of code" into ub-launcher3-burnaby-polish

8 years agoMerge "Focus doesn't leave folders without also closing them." into ub-launcher3...
Tony Wickham [Mon, 23 Nov 2015 18:43:21 +0000 (18:43 +0000)]
Merge "Focus doesn't leave folders without also closing them." into ub-launcher3-burnaby-polish

8 years agoFocus doesn't leave folders without also closing them.
Tony Wickham [Tue, 17 Nov 2015 18:46:48 +0000 (10:46 -0800)]
Focus doesn't leave folders without also closing them.

- Pressing Tab wraps around to the first item from the folder name,
  and vice versa when pressing Shift+Tab.
- When tapping off the folder while editing the text, the folder
  requests focus. We handle the following cases from that state:
    - Pressing an arrow key or Tab gives focus to the first item.
    - Pressing Shift+Tab gives focus to the last item.
- Fix slight corner case where moving from folder name to an item
  didn't update mIsEditingName to false. So when clicking off of
  the folder, it gave focus to the folder (as mentioned above)
  instead of closing the folder like it usually does when icons are
  focused. Not a huge deal, but still worth fixing.
Bug: 25687579
Change-Id: I1bec844c8ccd09529a11b9e3a1d92b3bdf7b2eb3

8 years agoDisallow scrolling if workspace is in transition.
Tony Wickham [Thu, 19 Nov 2015 20:45:30 +0000 (12:45 -0800)]
Disallow scrolling if workspace is in transition.

Because going to overview mode scales down the workspace, it was
thinking the touch was moving even though your finger was still. If
the "movement" was large enough, it was treated as a scroll, causing
jank. This was especially prevalent on tablets due to their size.

Bug: 25779718
Change-Id: Idb7833e0087bd24ca840f6afc451bf221f6bc047

8 years agoMerge "Stop requesting focus on folder if it was closed without animating." into...
Tony Wickham [Thu, 19 Nov 2015 00:36:20 +0000 (00:36 +0000)]
Merge "Stop requesting focus on folder if it was closed without animating." into ub-launcher3-burnaby-polish

8 years agoMerge "Handle errors gracefully in WallpaperCropActivity." into ub-launcher3-burnaby...
Tony Wickham [Wed, 18 Nov 2015 19:51:55 +0000 (19:51 +0000)]
Merge "Handle errors gracefully in WallpaperCropActivity." into ub-launcher3-burnaby-polish

8 years agoHandle errors gracefully in WallpaperCropActivity.
Tony Wickham [Wed, 4 Nov 2015 23:01:54 +0000 (15:01 -0800)]
Handle errors gracefully in WallpaperCropActivity.

(cherry picked from commit c984cde00840d8594a8b203748cb6e4f9967fd7c)
Now instead of crashing, it says "Couldn't load image."

Bug: 25326319
Bug: 25656670
Change-Id: I71471f4b26f7c23dee40b60772ddd798f67b409e

8 years agoStop requesting focus on folder if it was closed without animating.
Tony Wickham [Wed, 18 Nov 2015 01:59:26 +0000 (17:59 -0800)]
Stop requesting focus on folder if it was closed without animating.

Bug: 25092436
Change-Id: Ia6b72ec8c9fa02fc159457b81fef12f6fd394769

8 years agoFixing crash when uninstalling an app destroys the folder
Sunny Goyal [Sat, 14 Nov 2015 12:39:20 +0000 (18:09 +0530)]
Fixing crash when uninstalling an app destroys the folder

Bug: 25666490
Bug: 25677822
Change-Id: Id71c04df0a5546ba95239ba2e3f7aabb697375a4

8 years agoRevert "Revert "Reverting folder cell width on portrait phones.""
Tony Wickham [Fri, 13 Nov 2015 18:07:18 +0000 (18:07 +0000)]
Revert "Revert "Reverting folder cell width on portrait phones.""

This reverts commit 1974e98f5ec4713e50ba64ec32a7607c92ddce9b.

Change-Id: I7c5d86de187989c085f676933ce3f1cbd57ed8a7

8 years agoRevert "Reverting folder cell width on portrait phones."
Tony Wickham [Thu, 12 Nov 2015 23:46:33 +0000 (23:46 +0000)]
Revert "Reverting folder cell width on portrait phones."

This reverts commit b25e684a766362422f5693f7a2189910c1275584.

Change-Id: Ie86adc4b35c73ab7ef78d73225b437adc4751172

8 years agoReverting folder cell width on portrait phones.
Tony Wickham [Thu, 12 Nov 2015 21:12:06 +0000 (13:12 -0800)]
Reverting folder cell width on portrait phones.

The extra folder cell space added in ag/790800 looks bad on phones in
portrait mode, so reverting it here. However, we keep the extra space
on tablets or phones in landscape mode, since it provides more room
for long app names (bug 22462641).

Bug: 25662215
Change-Id: I2a37b884458ee557c9b8cff0c3edef16bfc50efb

8 years agoSkip to the end of the folder open animation in battery saver mode.
Tony Wickham [Thu, 12 Nov 2015 20:31:50 +0000 (12:31 -0800)]
Skip to the end of the folder open animation in battery saver mode.

Bug: 25666809
Change-Id: I867d56a34fc5e0ad6aaabd8b6df47be05ec31966

8 years agoMerge "Handle more cases in FocusHelper#handleHotseatButtonKeyEvent()." into ub-launc...
Tony Wickham [Wed, 11 Nov 2015 17:16:14 +0000 (17:16 +0000)]
Merge "Handle more cases in FocusHelper#handleHotseatButtonKeyEvent()." into ub-launcher3-burnaby-polish

8 years agoHandle more cases in FocusHelper#handleHotseatButtonKeyEvent().
Tony Wickham [Wed, 11 Nov 2015 00:52:14 +0000 (16:52 -0800)]
Handle more cases in FocusHelper#handleHotseatButtonKeyEvent().

The first of these cases seems like they should already have been
present, and the last couple allow you to switch pages by hitting
arrow keys on the edges of the hotseat.

Bug: 25589939
Change-Id: I9378b209250f7dc376fa97efde979bcee2979537

8 years agoDon't add offset to CellLayout's fullscreen children.
Tony Wickham [Tue, 10 Nov 2015 22:44:32 +0000 (14:44 -0800)]
Don't add offset to CellLayout's fullscreen children.

Bug: 25411084
Change-Id: Ifbcd0a53cf04a7fc29386f4f09aaf7f972e7354a

8 years agoAdd special column for All Apps button in FocusLogic's sparse matrix.
Tony Wickham [Tue, 10 Nov 2015 01:51:08 +0000 (17:51 -0800)]
Add special column for All Apps button in FocusLogic's sparse matrix.

The All Apps button creates a number of edge cases, mainly because it
causes the hotseat to sometimes have an extra column than the workspace.
Previously, we sort of swept these problems under the rug by simply
ignoring the All Apps button if other icons were present in the hotseat,
with the assumption that those other icons should get focus instead of
the All Apps button. (If possible, we want to stay in the same column
when moving from the workspace to the hotseat.) But this doesn't always
work, as in the attached bug where the hotseat doesn't get focus at all
when the All Apps button is an obvious candidate for it.

By adding a specialized column in the focus matrix for the All Apps
button, we ensure that moving down to the hotseat stays within the
original column when possible, while also allowing the focus to switch
to the All Apps button if appropriate. Furthermore, we take care to skip
over the All Apps column when necessary in order to maintain all
previous functionality.

Bug: 25590522
Change-Id: I5d6a8ee69de8834314c4689246fe7d54329b2eef

8 years agoAdded unit tests for b/25434120 regression.
Tony Wickham [Sat, 7 Nov 2015 01:08:57 +0000 (17:08 -0800)]
Added unit tests for b/25434120 regression.

Change-Id: I55b10274c4bb63ec6fd3138236e78a04e3eac91a

8 years agoMerge "Make sure user can always get to next page with keyboard." into ub-launcher3...
Tony Wickham [Fri, 6 Nov 2015 18:10:05 +0000 (18:10 +0000)]
Merge "Make sure user can always get to next page with keyboard." into ub-launcher3-burnaby-polish

8 years agoMerge "Stop explicitly snapping to page when navigating with keyboard." into ub-launc...
Tony Wickham [Fri, 6 Nov 2015 18:08:44 +0000 (18:08 +0000)]
Merge "Stop explicitly snapping to page when navigating with keyboard." into ub-launcher3-burnaby-polish

8 years agoMake sure user can always get to next page with keyboard.
Tony Wickham [Thu, 5 Nov 2015 20:14:26 +0000 (12:14 -0800)]
Make sure user can always get to next page with keyboard.

There's a case where hitting the left/right arrow in the first/last
column wouldn't give focus to an icon on the next page because it is
vertically too far from the first icon to be considered. This makes
for a bad user experience, because there is no way to switch pages
with the keyboard. So now we brute-force search for an appropriate
icon if none was found in this case.

Bug: 25434120
Change-Id: Ifdead0e3b458717ccb33e2f0ec7c15f1fcce4b95

8 years agoIgnoring DeadObjectException in startListening
Sunny Goyal [Thu, 5 Nov 2015 10:39:57 +0000 (16:09 +0530)]
Ignoring DeadObjectException in startListening

> As of android M, the platform somtimes throws DeadObjectException
instead of TransactionTooLargeException

Bug: 25305031
Change-Id: I3a98db8a5041aef01640d16f9beb71b72bf598f1

8 years agoStop explicitly snapping to page when navigating with keyboard.
Tony Wickham [Thu, 5 Nov 2015 01:44:32 +0000 (17:44 -0800)]
Stop explicitly snapping to page when navigating with keyboard.

When an icon grabs focus, it already snaps to its own page, so
the explicit snapToPage() is redundant. And in the case where no icon
will grab the focus, the explicit call puts us in a weird state
because the page snaps but the focus doesn't change (see bug).

(This happens, for instance, if you are moving from an icon on the
bottom right of page 1 and the only icon on page 2 is in the top
left. In this case, the second icon won't take focus because the
angle is too wide according to FocusLogic#handleDpadHorizontal().)

Bug: 25434120
Change-Id: I17b0ef7d86426a2599bc948bf2313dca7e112364

8 years agoStop clearing focus when snapping to a new workspace page.
Tony Wickham [Sat, 31 Oct 2015 01:04:48 +0000 (18:04 -0700)]
Stop clearing focus when snapping to a new workspace page.

Clearing the focus was causing the first child in the new page to
immediately take focus, which caused FocusIndicatorView jank when
using a keyboard.

Bug: 25256728
Change-Id: I5ab31ebc3fe370d7ac9e9792b30dab3467023738

8 years agoAllowing widgets to be focusable
Sunny Goyal [Thu, 29 Oct 2015 06:28:21 +0000 (23:28 -0700)]
Allowing widgets to be focusable

> Pressing 'enter' enters the focus inside the widget.
> If the widget has only one focusable, it directly performs click
> Pressing 'esc' brings the focus back to the parent host.

Bug: 25199581
Change-Id: Ia7fd5d929f5945d61173abd349660a5efbe74afc

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 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: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 agoSetting statusbar and nav bar colors in theme instead of code
Sunny Goyal [Wed, 28 Oct 2015 21:29:14 +0000 (14:29 -0700)]
Setting statusbar and nav bar colors in theme instead of code

Change-Id: I4da50809d14f5fa4e47df47fcfd99df7b713950d

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 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 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 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 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 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
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: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: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: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
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 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 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 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 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: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 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