OSDN Git Service

android-x86/packages-apps-Launcher3.git
8 years agoMerge "When placing a widget, go to a page with enough space." into ub-launcher3...
Tony Wickham [Thu, 10 Sep 2015 00:31:18 +0000 (00:31 +0000)]
Merge "When placing a widget, go to a page with enough space." into ub-launcher3-master

8 years agoam 489fc56d: Don\'t repeat ReorderPreviewAnimation for folders/widgets in power save...
Tony Wickham [Thu, 10 Sep 2015 00:12:25 +0000 (00:12 +0000)]
am 489fc56d: Don\'t repeat ReorderPreviewAnimation for folders/widgets in power save mode.

* commit '489fc56df80293f107fe706b19456edab10b9872':
  Don't repeat ReorderPreviewAnimation for folders/widgets in power save mode.

8 years agoresolved conflicts for 12688552 to ub-launcher3-master
Winson [Thu, 10 Sep 2015 00:11:29 +0000 (17:11 -0700)]
resolved conflicts for 12688552 to ub-launcher3-master

Change-Id: Iaf97c5ae486e19cd3ad320ed88346571252d878a

8 years agoWhen placing a widget, go to a page with enough space.
Tony Wickham [Wed, 9 Sep 2015 20:50:40 +0000 (13:50 -0700)]
When placing a widget, go to a page with enough space.

The search for this page starts at the current one and
continues to the right (on LTR) until a page is found that
can accomodate the widget, taking possible resizing and
reordering into account.

Bug: 11338870
Change-Id: I2e9a310eb8f74024dca9150f55a525e1309c2f07

8 years agoam 64704663: am 606726ba: Merge "Preventing null pointer crash when opening a folder...
Sunny Goyal [Thu, 10 Sep 2015 00:08:14 +0000 (00:08 +0000)]
am 64704663: am 606726ba: Merge "Preventing null pointer crash when opening a folder" into ub-launcher3-burnaby

* commit '647046637efc2b7414b15062cc650cb690c01f46':

8 years agoam f96b1ad2: am 667d6888: Revert workaround for move to default screen on home intent.
Ivan Lee [Thu, 10 Sep 2015 00:08:13 +0000 (00:08 +0000)]
am f96b1ad2: am 667d6888: Revert workaround for move to default screen on home intent.

* commit 'f96b1ad27f1a27bd8ab0cedd35aff2dbf2495a33':

8 years agoam 4aa48517: Merge "Disabling fast scroller when searching apps." into ub-launcher3...
Winson Chung [Thu, 10 Sep 2015 00:08:12 +0000 (00:08 +0000)]
am 4aa48517: Merge "Disabling fast scroller when searching apps." into ub-launcher3-burnaby-polish

* commit '4aa48517df32d35a1ae3b48bd02acc087c247351':
  Disabling fast scroller when searching apps.

8 years agoMerge commit '5c6bdbbc27525acc8c49cea6a1de36723a13fac7' into manual_merge_5c6bdbbc
Winson [Thu, 10 Sep 2015 00:06:09 +0000 (17:06 -0700)]
Merge commit '5c6bdbbc27525acc8c49cea6a1de36723a13fac7' into manual_merge_5c6bdbbc

Change-Id: I508bce36edca28ed565338e5173b64eba14e89d4

8 years agoMerge "Make sure all overlay panels are visible as user free scrolls." into ub-launch...
Tony Wickham [Wed, 9 Sep 2015 21:57:49 +0000 (21:57 +0000)]
Merge "Make sure all overlay panels are visible as user free scrolls." into ub-launcher3-master

8 years agoam 4abaf133: Merge "Removing items which are on invalid screen" into ub-launcher3...
Sunny Goyal [Wed, 9 Sep 2015 17:07:57 +0000 (17:07 +0000)]
am 4abaf133: Merge "Removing items which are on invalid screen" into ub-launcher3-burnaby

* commit '4abaf133546b0c950edc82594985e9da50d9c1dd':
  Removing items which are on invalid screen

8 years agoam c74e4197: Restoring provider behavior for reloading app on old devices > For...
Sunny Goyal [Wed, 9 Sep 2015 17:07:57 +0000 (17:07 +0000)]
am c74e4197: Restoring provider behavior for reloading app on old devices   > For older devices, launcher will only reload in case of inserts with specific query parameters   > For older devices, launcehr will notify content observers of any internal inserts   > Chani

* commit 'c74e41973a74aa416e16aeadaa2f491153da26bc':
  Restoring provider behavior for reloading app on old devices   > For older devices, launcher will only reload in case of inserts with specific query parameters   > For older devices, launcehr will notify content observers of any internal inserts   > Chaning TAG for Launcher provider as max logging tag is only 23 characters

8 years agoMerge "Removing items which are on invalid screen" into ub-launcher3-burnaby
Sunny Goyal [Wed, 9 Sep 2015 17:05:11 +0000 (17:05 +0000)]
Merge "Removing items which are on invalid screen" into ub-launcher3-burnaby

8 years agoRestoring provider behavior for reloading app on old devices
Sunny Goyal [Tue, 8 Sep 2015 21:01:03 +0000 (14:01 -0700)]
Restoring provider behavior for reloading app on old devices
  > For older devices, launcher will only reload in case of inserts with specific query parameters
  > For older devices, launcehr will notify content observers of any internal inserts
  > Chaning TAG for Launcher provider as max logging tag is only 23 characters

Bug: 23821706
Change-Id: I32891387612d967c41ddae848c43dc4b1de1b0e9

8 years agoMake sure all overlay panels are visible as user free scrolls.
Tony Wickham [Tue, 8 Sep 2015 17:35:56 +0000 (10:35 -0700)]
Make sure all overlay panels are visible as user free scrolls.

Previously there was a workaround to ensure that adjacent panels were visible
while in the overview or spring-loaded states, but it incorrectly kept only
those original pages visible even while the user scrolled to other pages. So now
we only use the workaround when first entering the overview or spring-loaded
states, and then fall back to the default getVisiblePages() implementation in
PageView when in free scoll mode.

Bug: 23766408
Change-Id: I692ec00b9cd6d7889c374aee41b85abd0a5d8d3c

8 years agoFade from wallpaper picker activity back to homescreen.
Tony Wickham [Wed, 2 Sep 2015 23:55:58 +0000 (16:55 -0700)]
Fade from wallpaper picker activity back to homescreen.

If a wallpaper preview is going to look exactly the same as the actual wallpaper
on the homescreen page that is being returned to, fading looks much nicer than
the default activity exit animation.

Bug: 23568800
Change-Id: Id7c2b5483c5535d59be2f8a459ce7788e3c8318a

8 years agoRemoving items which are on invalid screen
Sunny Goyal [Fri, 4 Sep 2015 19:53:04 +0000 (12:53 -0700)]
Removing items which are on invalid screen

Bug: 23804751
Change-Id: If26a6b201aa6127cfd2a08fc4b408a27d6329bad

8 years agoDon't repeat ReorderPreviewAnimation for folders/widgets in power save mode.
Tony Wickham [Wed, 2 Sep 2015 21:45:39 +0000 (14:45 -0700)]
Don't repeat ReorderPreviewAnimation for folders/widgets in power save mode.

Since power save mode (introduced in Lollipop, also known as battery saver)
disables animations, the ReorderPreviewAnimation looks bad - instead of
displaced folders subtly and smoothly moving up and down, they violently jump
between up and down positions in rapid succession. Setting the animation to not
repeat in this case avoids this issue.

Bug: 23675090
Change-Id: I8149610af75e7023dca28a942b3447228083cd33
(cherry picked from commit 9e0702f4af33db569c9ed79bdf311204abe40dd5)

8 years agoCompressing Launcher resources.
Winson [Fri, 4 Sep 2015 15:52:36 +0000 (08:52 -0700)]
Compressing Launcher resources.

Bug: 23812987

Change-Id: I66452a321c3c48661387282ba782ba948e0aae6b

8 years agoAdjust the wallpaper preview parallax according to the crop that will be saved.
Tony Wickham [Thu, 3 Sep 2015 22:35:29 +0000 (15:35 -0700)]
Adjust the wallpaper preview parallax according to the crop that will be saved.

To get the crop, the wallpaper is first scaled down as much as possible (i.e.
until either the width or height matches that of the device screen), then a
center crop is performed (the excess width or height is chopped off). The
preview's parallax was previously incorrect if the width was the victim of this
cropping, because in that case the parallax started and ended at a different
point than in the actual wallpaper. This is fixed by adjusting the parallax of
the preview to match the final crop.

The end result is that all wallpaper previews match the actual wallpaper upon
setting, except for the default wallpaper because it follows a different flow.

Bug: 23568800
Change-Id: I82b7ba506d51ee4b3812af5fbdf95d3303b37aef

8 years agoam 606726ba: Merge "Preventing null pointer crash when opening a folder" into ub...
Sunny Goyal [Fri, 4 Sep 2015 17:14:46 +0000 (17:14 +0000)]
am 606726ba: Merge "Preventing null pointer crash when opening a folder" into ub-launcher3-burnaby

* commit '606726ba289583a67188d9448b220c2e3fae87d7':
  Preventing null pointer crash when opening a folder

8 years agoam 667d6888: Revert workaround for move to default screen on home intent.
Ivan Lee [Fri, 4 Sep 2015 17:14:46 +0000 (17:14 +0000)]
am 667d6888: Revert workaround for move to default screen on home intent.

* commit '667d6888f4a7f1a6267c1968f22fdb8ff3af8d34':
  Revert workaround for move to default screen on home intent.

8 years agoMerge "Disabling fast scroller when searching apps." into ub-launcher3-burnaby-polish
Winson Chung [Thu, 3 Sep 2015 21:07:24 +0000 (21:07 +0000)]
Merge "Disabling fast scroller when searching apps." into ub-launcher3-burnaby-polish

8 years agoFixing regression, reset AllApps when the screen turns off.
Winson [Thu, 3 Sep 2015 18:36:19 +0000 (11:36 -0700)]
Fixing regression, reset AllApps when the screen turns off.

- Now that we are debouncing the workspace state, we were no longer resetting
  the all apps view when the screen turns off when the user is already on the
  workspace.

Bug: 23759455
Change-Id: I996b595945de96ae6ff2344349027d4722921984

8 years agoDisabling fast scroller when searching apps.
Winson [Thu, 3 Sep 2015 18:46:11 +0000 (11:46 -0700)]
Disabling fast scroller when searching apps.

- There is no meaningful order for the app search results since they are ranked.

Bug: 23759082
Change-Id: I0aa4eea68136ea3ecef2a80b20ba7b0d46f0653b

8 years agoMerge "Change addParallaxOffset() to setParallaxOffset() in CropView." into ub-launch...
Tony Wickham [Thu, 3 Sep 2015 18:12:28 +0000 (18:12 +0000)]
Merge "Change addParallaxOffset() to setParallaxOffset() in CropView." into ub-launcher3-master

8 years agoam 606726ba: Merge "Preventing null pointer crash when opening a folder" into ub...
Sunny Goyal [Thu, 3 Sep 2015 17:18:33 +0000 (17:18 +0000)]
am 606726ba: Merge "Preventing null pointer crash when opening a folder" into ub-launcher3-burnaby

* commit '606726ba289583a67188d9448b220c2e3fae87d7':
  Preventing null pointer crash when opening a folder

8 years agoam 667d6888: Revert workaround for move to default screen on home intent.
Ivan Lee [Thu, 3 Sep 2015 17:18:30 +0000 (17:18 +0000)]
am 667d6888: Revert workaround for move to default screen on home intent.

* commit '667d6888f4a7f1a6267c1968f22fdb8ff3af8d34':
  Revert workaround for move to default screen on home intent.

8 years agoMerge "Preventing null pointer crash when opening a folder" into ub-launcher3-burnaby
Sunny Goyal [Thu, 3 Sep 2015 17:12:36 +0000 (17:12 +0000)]
Merge "Preventing null pointer crash when opening a folder" into ub-launcher3-burnaby

8 years agoChange addParallaxOffset() to setParallaxOffset() in CropView.
Tony Wickham [Thu, 3 Sep 2015 16:52:55 +0000 (09:52 -0700)]
Change addParallaxOffset() to setParallaxOffset() in CropView.

This is less prone to error, because calling setParallaxOffset() multiple times
will always lead to the same result. Plus, this works regardless of whether
moveToLeft() was called first.

While the parallax offset ensures that previews of built-in wallpapers match
the actual wallpaper you get upon saving, it does not work in all cases.
Specifically, it does not work for a couple (1 or 2 on the devices I've tested)
of the larger built-in wallpapers. However, this seems to be due to a mismatch
between the size of the preview wallpaper and the actual wallpaper (the latter
is larger). This sounds like a separate bug.

Bug: 23568800
Change-Id: I69afa3f8cc59c77e9c4c25e29e8db8c4beb87462

8 years agoPreventing null pointer crash when opening a folder
Sunny Goyal [Thu, 3 Sep 2015 16:48:50 +0000 (09:48 -0700)]
Preventing null pointer crash when opening a folder

Bug: 23770713
Change-Id: I3ce82450358f1493f70639d594e1e3f391945437

8 years agoRevert workaround for move to default screen on home intent.
Ivan Lee [Thu, 3 Sep 2015 16:16:07 +0000 (10:16 -0600)]
Revert workaround for move to default screen on home intent.

BUG=23556755

Change-Id: Ia268a58389b90fd0503e474f02f33a312c051c0e

8 years agoLong-clicking workspace overlay buttons does the same thing as clicking them.
Tony Wickham [Wed, 2 Sep 2015 23:11:09 +0000 (16:11 -0700)]
Long-clicking workspace overlay buttons does the same thing as clicking them.

Bug: 15000525
Change-Id: I4123863de888989ad6171cb43001c3ad86c19edb

8 years agoUsing context.getString for getting formatted strings, as it works better with differ...
Sunny Goyal [Wed, 2 Sep 2015 22:06:12 +0000 (15:06 -0700)]
Using context.getString for getting formatted strings, as it works better with different locales

Change-Id: I9639bb11197e656c5cdd3a4d63f913edcc0987cb

8 years agoDon't repeat ReorderPreviewAnimation for folders/widgets in power save mode.
Tony Wickham [Wed, 2 Sep 2015 21:45:39 +0000 (14:45 -0700)]
Don't repeat ReorderPreviewAnimation for folders/widgets in power save mode.

Since power save mode (introduced in Lollipop, also known as battery saver)
disables animations, the ReorderPreviewAnimation looks bad - instead of
displaced folders subtly and smoothly moving up and down, they violently jump
between up and down positions in rapid succession. Setting the animation to not
repeat in this case avoids this issue.

Bug: 23675090
Change-Id: I8149610af75e7023dca28a942b3447228083cd33

8 years agoPreviews in the wallpaper picker are offset to match the homescreen parallax.
Tony Wickham [Tue, 1 Sep 2015 00:28:32 +0000 (17:28 -0700)]
Previews in the wallpaper picker are offset to match the homescreen parallax.

When "Wallpapers" is selected from the overlay, the current wallpaper parallax
offset is sent to the WallpaperPickerActivity as an Intent extra. The CropView
then uses that offset when previewing new wallpapers to ensure the preview looks
exactly the same as the actual wallpaper will when set.

Note that this fix doesn't seem to work for DefaultWallpaperInfo - that will
come in a future CL.

Bug: 23568800
Change-Id: I41c5bbbfdabfeb4e20d77e9b5804842a03211edf

8 years agoMerge "Loading default wallpaper on the background thread" into ub-launcher3-master
Sunny Goyal [Tue, 1 Sep 2015 18:06:37 +0000 (18:06 +0000)]
Merge "Loading default wallpaper on the background thread" into ub-launcher3-master

8 years agoLoading default wallpaper on the background thread
Sunny Goyal [Tue, 1 Sep 2015 17:14:04 +0000 (10:14 -0700)]
Loading default wallpaper on the background thread

Bug: 23353784
Change-Id: Ia64cfd6b8065fb3d589e32af12e0e0bf5242a43a

8 years agoFixing crash when picking an external image
Sunny Goyal [Tue, 1 Sep 2015 16:56:41 +0000 (09:56 -0700)]
Fixing crash when picking an external image

Change-Id: I98654000e82fd7e96152785ceafe857724fc417f

8 years agoam 7412c3cb: Merge "Adding gradle script for Android Studio" into ub-launcher3-burnaby
Sunny Goyal [Tue, 1 Sep 2015 00:20:13 +0000 (00:20 +0000)]
am 7412c3cb: Merge "Adding gradle script for Android Studio" into ub-launcher3-burnaby

* commit '7412c3cb005c3b3315ddb276386e2115f742d2e0':
  Adding gradle script for Android Studio

8 years agoMerge "Adding gradle script for Android Studio" into ub-launcher3-burnaby
Sunny Goyal [Tue, 1 Sep 2015 00:15:53 +0000 (00:15 +0000)]
Merge "Adding gradle script for Android Studio" into ub-launcher3-burnaby

8 years agoam fdc8eb61: Merge "Fixing NPE in recycler view scroll bar." into ub-launcher3-burnaby
Winson Chung [Mon, 31 Aug 2015 22:18:49 +0000 (22:18 +0000)]
am fdc8eb61: Merge "Fixing NPE in recycler view scroll bar." into ub-launcher3-burnaby

* commit 'fdc8eb61a417af22dac8bc97dd5f19f728c80060':
  Fixing NPE in recycler view scroll bar.

8 years agoMerge "Fixing NPE in recycler view scroll bar." into ub-launcher3-burnaby
Winson Chung [Mon, 31 Aug 2015 22:08:41 +0000 (22:08 +0000)]
Merge "Fixing NPE in recycler view scroll bar." into ub-launcher3-burnaby

8 years agoFixing NPE in recycler view scroll bar.
Winson [Mon, 31 Aug 2015 22:02:26 +0000 (15:02 -0700)]
Fixing NPE in recycler view scroll bar.

- The regression was introduced in scroll bar changes ag/751628, but
  unlike AllApps, the WidgetsRecyclerView can have an unbound model.

Bug: 23689784
Change-Id: Ibd3d5bcbafab0ada9a372fa00acaa45809ce720d

8 years agoMoving getWallpaperArrayResourceId to a separate functions, so that
Sunny Goyal [Mon, 31 Aug 2015 20:38:44 +0000 (13:38 -0700)]
Moving getWallpaperArrayResourceId to a separate functions, so that
it can be overriden by dependent projects

Change-Id: I565d85d9126e41cec3dd2cdb8f2c75283bce4b13

8 years agoMerge "Refactoring wallpaper picker activity" into ub-launcher3-master
Sunny Goyal [Mon, 31 Aug 2015 19:45:34 +0000 (19:45 +0000)]
Merge "Refactoring wallpaper picker activity" into ub-launcher3-master

8 years agoRefactoring wallpaper picker activity
Sunny Goyal [Sat, 15 Aug 2015 03:28:39 +0000 (20:28 -0700)]
Refactoring wallpaper picker activity

  > Moving different tiles to individual classes
  > Moving some utility methods to corresponding tile classes
  > No functionality change

Change-Id: I493cf309f4e3d817a9300be004c475d208f8dadb

8 years agoMerge "Jailing the saved instance state of all the dynamically generated views" into...
Sunny Goyal [Mon, 31 Aug 2015 18:59:55 +0000 (18:59 +0000)]
Merge "Jailing the saved instance state of all the dynamically generated views" into ub-launcher3-master

8 years agoMerge "Regression in ag/753709" into ub-launcher3-master
Sunny Goyal [Mon, 31 Aug 2015 18:50:10 +0000 (18:50 +0000)]
Merge "Regression in ag/753709" into ub-launcher3-master

8 years agoRegression in ag/753709
Sunny Goyal [Mon, 31 Aug 2015 18:47:03 +0000 (11:47 -0700)]
Regression in ag/753709

Item values were not read properly in savedInstanceState

Change-Id: If45b7085555076b03ebd4a97a3ff939487ca8ce1

8 years agoam 1b247d9f: Merge "Adding workaround for regression caused by ag/752175" into ub...
Winson Chung [Mon, 31 Aug 2015 18:47:01 +0000 (18:47 +0000)]
am 1b247d9f: Merge "Adding workaround for regression caused by ag/752175" into ub-launcher3-burnaby

* commit '1b247d9f37cd1e9ca9e8c690c137858b66314b79':
  Adding workaround for regression caused by ag/752175

8 years agoMerge "Adding workaround for regression caused by ag/752175" into ub-launcher3-burnaby
Winson Chung [Mon, 31 Aug 2015 18:40:41 +0000 (18:40 +0000)]
Merge "Adding workaround for regression caused by ag/752175" into ub-launcher3-burnaby

8 years agoAdding workaround for regression caused by ag/752175
Winson [Mon, 31 Aug 2015 18:32:38 +0000 (11:32 -0700)]
Adding workaround for regression caused by ag/752175

Change-Id: I92617c88f17a5827454e147f93d822975587d5b4

8 years agoAdding gradle script for Android Studio
Sunny Goyal [Sun, 30 Aug 2015 06:16:27 +0000 (23:16 -0700)]
Adding gradle script for Android Studio

Change-Id: I640c63e2981337eb8c8ed191b40c0649a986361e

8 years agoFix typos caused by gerrit's inline editor.
Tony Wickham [Fri, 28 Aug 2015 23:33:11 +0000 (16:33 -0700)]
Fix typos caused by gerrit's inline editor.

Change-Id: Ie142f5c6b418ac775cc167787f8e372d5354b91a

8 years agoMerge "Reuse existing temporary wallpaper tiles when selecting same photo." into...
Tony Wickham [Fri, 28 Aug 2015 23:21:37 +0000 (23:21 +0000)]
Merge "Reuse existing temporary wallpaper tiles when selecting same photo." into ub-launcher3-master

8 years agoReuse existing temporary wallpaper tiles when selecting same photo.
Tony Wickham [Fri, 28 Aug 2015 19:26:08 +0000 (12:26 -0700)]
Reuse existing temporary wallpaper tiles when selecting same photo.

Previously, if you selected a photo to set as the wallpaper multiple times, it
kept adding temporary wallpaper tiles that were all identical. Now it reuses the
same tile, updating the thumbnail and wallpaper if the Uri happens to point to a
new image (such as if a photo is renamed).

Change-Id: Ib05c9db4e1fd17226b503174f25add3368158b11

8 years agoam 8b0af4c6: Merge "Override the overscroll color for the widget rows." into ub-launc...
Winson Chung [Fri, 28 Aug 2015 21:20:33 +0000 (21:20 +0000)]
am 8b0af4c6: Merge "Override the overscroll color for the widget rows." into ub-launcher3-burnaby

* commit '8b0af4c635a116dea90555dd60cc23444dab3e64':
  Override the overscroll color for the widget rows.

8 years agoam 066bcc05: Merge "Using GET_UNINSTALLED_PACKAGES flag when getting packageInfo...
Sunny Goyal [Fri, 28 Aug 2015 21:20:30 +0000 (21:20 +0000)]
am 066bcc05: Merge "Using GET_UNINSTALLED_PACKAGES flag when getting packageInfo for a managed profile app" into ub-launcher3-burnaby

* commit '066bcc05fb97843dab518e0bc70ae766ed3edf28':
  Using GET_UNINSTALLED_PACKAGES flag when getting packageInfo for a managed profile app

8 years agoam 0947f5c2: Merge "Adding graphic for all apps empty search screen." into ub-launche...
Winson Chung [Fri, 28 Aug 2015 21:20:28 +0000 (21:20 +0000)]
am 0947f5c2: Merge "Adding graphic for all apps empty search screen." into ub-launcher3-burnaby

* commit '0947f5c26804bc74b8f1242d856c1f703544c3de':
  Adding graphic for all apps empty search screen.

8 years agoMerge "Override the overscroll color for the widget rows." into ub-launcher3-burnaby
Winson Chung [Fri, 28 Aug 2015 21:17:36 +0000 (21:17 +0000)]
Merge "Override the overscroll color for the widget rows." into ub-launcher3-burnaby

8 years agoMerge "Using GET_UNINSTALLED_PACKAGES flag when getting packageInfo for a managed...
Sunny Goyal [Fri, 28 Aug 2015 21:16:03 +0000 (21:16 +0000)]
Merge "Using GET_UNINSTALLED_PACKAGES flag when getting packageInfo for a managed profile app" into ub-launcher3-burnaby

8 years agoMerge "Adding graphic for all apps empty search screen." into ub-launcher3-burnaby
Winson Chung [Fri, 28 Aug 2015 21:08:49 +0000 (21:08 +0000)]
Merge "Adding graphic for all apps empty search screen." into ub-launcher3-burnaby

8 years agoOverride the overscroll color for the widget rows.
Winson [Fri, 28 Aug 2015 21:05:07 +0000 (14:05 -0700)]
Override the overscroll color for the widget rows.

Change-Id: I249e13f511736ad9e874800a1b9ee1f8602434f4

8 years agoAdding graphic for all apps empty search screen.
Winson [Thu, 20 Aug 2015 00:26:21 +0000 (17:26 -0700)]
Adding graphic for all apps empty search screen.

Change-Id: I976a327a5984790c458b0f36d33c0b1ac16ec59c

8 years agoUsing GET_UNINSTALLED_PACKAGES flag when getting packageInfo for a managed profile app
Sunny Goyal [Fri, 28 Aug 2015 17:26:48 +0000 (10:26 -0700)]
Using GET_UNINSTALLED_PACKAGES flag when getting packageInfo for a managed profile app

Bug: 23515512
Change-Id: I60678eccd4b60225ff30960f7197d633f72c7659

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.

Change-Id: I6fe69c2e1dd463402f51222715fae31b9d4dd240

8 years agoresolved conflicts for merge of ebfae6e2 to ub-launcher3-master
Sunny Goyal [Thu, 27 Aug 2015 23:47:13 +0000 (16:47 -0700)]
resolved conflicts for merge of ebfae6e2 to ub-launcher3-master

Change-Id: I1e0d5f1140e910b68322c4f5061d0a3c383899f0

8 years agoRevert "Adding viewId for the QSB"
Sunny Goyal [Thu, 27 Aug 2015 22:30:25 +0000 (15:30 -0700)]
Revert "Adding viewId for the QSB"

Using QSB widget id from xml

This reverts commit 995685913955f33b05fdc0b473df901f2b0652c0.

Change-Id: I33c48cf074f2dc1cf509c2d9f1f19b40b91f6a22

8 years agoam 195a2983: Merge "Adding viewId for the QSB" into ub-launcher3-burnaby
Sunny Goyal [Thu, 27 Aug 2015 21:23:22 +0000 (21:23 +0000)]
am 195a2983: Merge "Adding viewId for the QSB" into ub-launcher3-burnaby

* commit '195a29834f866806a592bae42c8f16f71b6f64aa':
  Adding viewId for the QSB

8 years agoMerge "Adding viewId for the QSB" into ub-launcher3-burnaby
Sunny Goyal [Thu, 27 Aug 2015 21:12:55 +0000 (21:12 +0000)]
Merge "Adding viewId for the QSB" into ub-launcher3-burnaby

8 years agoAdding viewId for the QSB
Sunny Goyal [Thu, 27 Aug 2015 20:48:11 +0000 (13:48 -0700)]
Adding viewId for the QSB

Change-Id: I4ad6bc8c0d94e60a4d354dfc29f456ca561fc500

8 years agoam 027d3000: Merge "Fixing an issue where you would inadvertently start fastscrolling...
Winson Chung [Thu, 27 Aug 2015 20:41:10 +0000 (20:41 +0000)]
am 027d3000: Merge "Fixing an issue where you would inadvertently start fastscrolling." into ub-launcher3-burnaby

* commit '027d30007d6c4448f3d07ccfb880eb0f25178314':
  Fixing an issue where you would inadvertently start fastscrolling.

8 years agoMerge "Fixing an issue where you would inadvertently start fastscrolling." into ub...
Winson Chung [Thu, 27 Aug 2015 20:37:33 +0000 (20:37 +0000)]
Merge "Fixing an issue where you would inadvertently start fastscrolling." into ub-launcher3-burnaby

8 years agoam 0fd3e545: Merge "Fixing issue with missing scroll bar after fast-scrolling and...
Winson Chung [Thu, 27 Aug 2015 19:39:49 +0000 (19:39 +0000)]
am 0fd3e545: Merge "Fixing issue with missing scroll bar after fast-scrolling and searching." into ub-launcher3-burnaby

* commit '0fd3e545a709902e67dd42440e351a22a6daa48c':
  Fixing issue with missing scroll bar after fast-scrolling and searching.

8 years agoMerge "Fixing issue with missing scroll bar after fast-scrolling and searching."...
Winson Chung [Thu, 27 Aug 2015 19:36:07 +0000 (19:36 +0000)]
Merge "Fixing issue with missing scroll bar after fast-scrolling and searching." into ub-launcher3-burnaby

8 years agoFixing issue with missing scroll bar after fast-scrolling and searching.
Winson [Thu, 27 Aug 2015 19:30:08 +0000 (12:30 -0700)]
Fixing issue with missing scroll bar after fast-scrolling and searching.

- This was due to us not re-attaching the thumb to the scrollbar after
  we scroll the view to the top explicitly without the user scrolling.

Bug: 23562489
Change-Id: I5932b9b3b9358e23c0ec23aa235644b4f27c43ea

8 years agoFixing an issue where you would inadvertently start fastscrolling.
Winson [Thu, 27 Aug 2015 17:19:48 +0000 (10:19 -0700)]
Fixing an issue where you would inadvertently start fastscrolling.

- This would happen when you scroll near the thumb and pass through the
  area where the scrollbar was when the gesture started, and this CL
  prevents gestures that move beyond a fixed distance from the original
  touch position that is not already a fastscroll.

Bug: 23561678
Change-Id: I66226777671456a8919503dae4e92164ee10dd6d

8 years agoam 22aa3813: Pending bind callbacks should be cleared before starting the loader...
Sunny Goyal [Thu, 27 Aug 2015 17:09:02 +0000 (17:09 +0000)]
am 22aa3813: Pending bind callbacks should be cleared before starting the loader, similar to startBinding

* commit '22aa3813f818e46a096fef6490db2a60f2617eb7':
  Pending bind callbacks should be cleared before starting the loader, similar to startBinding

8 years agoPending bind callbacks should be cleared before starting the loader,
Sunny Goyal [Wed, 19 Aug 2015 23:24:27 +0000 (16:24 -0700)]
Pending bind callbacks should be cleared before starting the loader,
similar to startBinding

Bug: 23310446
Bug: 19422965
Bug: 23304651
Change-Id: I4821b4c0c7796c33ad9691b6735235a220fa635a

8 years agoFix keyboard focus for opening folder.
Jun Mukai [Wed, 26 Aug 2015 22:52:50 +0000 (15:52 -0700)]
Fix keyboard focus for opening folder.

Previous patch Ia4ccc59ca27e560e470122d1b2c6c1eccb4caf9a was
reverted due to a weird behavior around folder name editing
with virtual keyboard.
Also, requestFocus() on doneEditingFolderName() did nothing
because the folder itself didn't get the focus at that point.

This CL addresses these issues:
- no change on the descendant focusability. Folder itself is
  focusable before its descendants.
- customize Folder.focusSearch(), so once the folder is focused,
  further focus cycle moves among its descendants.
- Folder requests its focus when it appears. Without this,
  the first arrow-key after opening a folder by touch moves
  the focus to the folder itself, which looks like nothing happened.

Bug: 22562679
Change-Id: I04375bd4cb69d463b9a95bebafa9c60142e95daa

8 years agoresolved conflicts for merge of 20884fdc to ub-launcher3-master
Sunny Goyal [Wed, 26 Aug 2015 00:08:57 +0000 (17:08 -0700)]
resolved conflicts for merge of 20884fdc to ub-launcher3-master

Change-Id: I31b49ed83bf6fa966ad68b587e6fa472e87bc0e3

8 years agoMerge "Fixing work folder addition logic > Showing animation when folder is added...
Sunny Goyal [Tue, 25 Aug 2015 23:58:07 +0000 (23:58 +0000)]
Merge "Fixing work folder addition logic   > Showing animation when folder is added   > Not showing animation while cling is visible   > Checking is loader completed from UI thread   > Running bind complete runnables when bind is completed" into ub-launcher3-burnaby

8 years agoam a79b18ad: Merge "Fixing widgets container inactive scroll bar color." into ub...
Winson Chung [Mon, 24 Aug 2015 22:50:36 +0000 (22:50 +0000)]
am a79b18ad: Merge "Fixing widgets container inactive scroll bar color." into ub-launcher3-burnaby

* commit 'a79b18ad36ca9025ac4862c492260a656f61c7cf':
  Fixing widgets container inactive scroll bar color.

8 years agoMerge "Fixing widgets container inactive scroll bar color." into ub-launcher3-burnaby
Winson Chung [Mon, 24 Aug 2015 22:47:52 +0000 (22:47 +0000)]
Merge "Fixing widgets container inactive scroll bar color." into ub-launcher3-burnaby

8 years agoFixing widgets container inactive scroll bar color.
Winson [Mon, 24 Aug 2015 22:20:53 +0000 (15:20 -0700)]
Fixing widgets container inactive scroll bar color.

Bug: 20035978
Change-Id: Ia267ff8f171f7c4cde00593bd69cf69c1660c431

8 years agoam 944bfab0: Merge "Making the detached scrollbar catch up faster to the actual scrol...
Winson Chung [Mon, 24 Aug 2015 20:35:39 +0000 (20:35 +0000)]
am 944bfab0: Merge "Making the detached scrollbar catch up faster to the actual scroll position." into ub-launcher3-burnaby

* commit '944bfab018a2933a046a5661a244daf605d8d5c7':
  Making the detached scrollbar catch up faster to the actual scroll position.

8 years agoMerge "Making the detached scrollbar catch up faster to the actual scroll position...
Winson Chung [Mon, 24 Aug 2015 20:30:09 +0000 (20:30 +0000)]
Merge "Making the detached scrollbar catch up faster to the actual scroll position." into ub-launcher3-burnaby

8 years agoMaking the detached scrollbar catch up faster to the actual scroll position.
Winson [Mon, 24 Aug 2015 19:28:16 +0000 (12:28 -0700)]
Making the detached scrollbar catch up faster to the actual scroll position.

Bug: 20035978
Change-Id: I4f9780e1c5c1d10a7956ece729163544d79d72c3

8 years agoam bcbc2ec2: Merge "Removing call to isButtonPressed as its only Lollipop and above...
Sunny Goyal [Mon, 24 Aug 2015 17:20:59 +0000 (17:20 +0000)]
am bcbc2ec2: Merge "Removing call to isButtonPressed as its only Lollipop and above" into ub-launcher3-burnaby

* commit 'bcbc2ec2cd2673b5fca40f8458f75a7712410dda':
  Removing call to isButtonPressed as its only Lollipop and above

8 years agoMerge "Removing call to isButtonPressed as its only Lollipop and above" into ub-launc...
Sunny Goyal [Mon, 24 Aug 2015 17:15:01 +0000 (17:15 +0000)]
Merge "Removing call to isButtonPressed as its only Lollipop and above" into ub-launcher3-burnaby

8 years agoUpdating overview buttons click feedback
Sunny Goyal [Fri, 21 Aug 2015 20:09:24 +0000 (13:09 -0700)]
Updating overview buttons click feedback
  > Using xml bitmap for changing alpha, instead of a new bitmap
  > using state list animator, which changes the alpha of the
    whole view, and not just the icon

Change-Id: I2dda9bfba390a24a83b162c3cf4bcb9a0865f4c2

8 years agoMerge "Refactor StylusEventHelper to provide onButtonPress/Release methods" into...
Mady Mellor [Fri, 21 Aug 2015 18:45:43 +0000 (18:45 +0000)]
Merge "Refactor StylusEventHelper to provide onButtonPress/Release methods" into ub-launcher3-master

8 years agoam dd306188: Updating theme to use the light theme by default, instead of wallpaper...
Sunny Goyal [Fri, 21 Aug 2015 18:20:11 +0000 (18:20 +0000)]
am dd306188: Updating theme to use the light theme by default, instead of wallpaper theme   > This allows us to use all the goodness of material theme   > Cursor in folder edit text is no longer 1px wide

* commit 'dd306188a6e8b4d00b8ef0ab402589c92802f04b':
  Updating theme to use the light theme by default, instead of wallpaper theme   > This allows us to use all the goodness of material theme   > Cursor in folder edit text is no longer 1px wide

8 years agoRefactor StylusEventHelper to provide onButtonPress/Release methods
Mady Mellor [Wed, 15 Jul 2015 23:34:34 +0000 (16:34 -0700)]
Refactor StylusEventHelper to provide onButtonPress/Release methods

This will enable an easier migration to the new M APIs for identifying
button presses from stylus / other tools.

Bug: 20430722
Change-Id: I41cfa6eff8d76bb83cf1bdaf6623ec1092ed554c

8 years agoMerge "Removing multi_process access to shared preferences" into ub-launcher3-master
Sunny Goyal [Fri, 21 Aug 2015 18:13:13 +0000 (18:13 +0000)]
Merge "Removing multi_process access to shared preferences" into ub-launcher3-master

8 years agoRemoving multi_process access to shared preferences
Sunny Goyal [Fri, 21 Aug 2015 18:08:24 +0000 (11:08 -0700)]
Removing multi_process access to shared preferences

Change-Id: If802245632c30d4f383013203fb2e0349ebc14fe

8 years agoUpdating theme to use the light theme by default, instead of wallpaper theme
Sunny Goyal [Thu, 20 Aug 2015 23:17:36 +0000 (16:17 -0700)]
Updating theme to use the light theme by default, instead of wallpaper theme
  > This allows us to use all the goodness of material theme
  > Cursor in folder edit text is no longer 1px wide

Change-Id: I705f5472ff71969ae45747dd127a8ba5253df44d

8 years agoam 93adff28: Merge "Using the usermanager api to get creation time" into ub-launcher3...
Sunny Goyal [Fri, 21 Aug 2015 16:47:09 +0000 (16:47 +0000)]
am 93adff28: Merge "Using the usermanager api to get creation time" into ub-launcher3-burnaby

* commit '93adff28ed9b6bf06eba97c1266b3fb911eca6a0':
  Using the usermanager api to get creation time

8 years agoam 830b5e08: Updating the target sdk to launcher
Sunny Goyal [Fri, 21 Aug 2015 16:47:08 +0000 (16:47 +0000)]
am 830b5e08: Updating the target sdk to launcher

* commit '830b5e08ef8ccc8e4193926ac10ac38cb0ae3e56':
  Updating the target sdk to launcher

8 years agoMerge "Using the usermanager api to get creation time" into ub-launcher3-burnaby
Sunny Goyal [Fri, 21 Aug 2015 16:41:50 +0000 (16:41 +0000)]
Merge "Using the usermanager api to get creation time" into ub-launcher3-burnaby