OSDN Git Service

android-x86/packages-apps-Trebuchet.git
9 years agoCode cleanup
Sunny Goyal [Fri, 5 Jun 2015 07:13:25 +0000 (00:13 -0700)]
Code cleanup

> Removing obsolete logging
> Removing unused methods
> Removing resource leak warning due to non-static handler class in launcher

Change-Id: Ic38cc8aea82899b0b5ee3235f04e5964e49245fb

9 years agoMerge "Preventing overdraw in custom content screen" into ub-launcher3-burnaby
Sunny Goyal [Thu, 4 Jun 2015 23:47:34 +0000 (23:47 +0000)]
Merge "Preventing overdraw in custom content screen" into ub-launcher3-burnaby

9 years agoPreventing overdraw in custom content screen
Sunny Goyal [Thu, 4 Jun 2015 23:29:51 +0000 (16:29 -0700)]
Preventing overdraw in custom content screen

> Assuming customcontent screen is opaque, setting scrim alpha to 0
when the screen is fully visible

Bug: 21584384
Change-Id: Ifa95a10d880532f59573090673e90a87c7edba9b

9 years agoUse a broadcast receiver instead of a settings observer.
Rahul Chaturvedi [Tue, 2 Jun 2015 01:26:41 +0000 (21:26 -0400)]
Use a broadcast receiver instead of a settings observer.

Settings observer doesn't work if a setting is modified in another
process, hence we instead register a receiver which listens for a signal
from the settings process that the rotation preference has changed.

Change-Id: I570e3c67bb64a32347e84ca00a8ac31d9010eac3

9 years agoUpdating widget list when iconCache updates
Sunny Goyal [Thu, 4 Jun 2015 22:19:31 +0000 (15:19 -0700)]
Updating widget list when iconCache updates

> Fixing bug where items were not getting removed from the memcache
> Fixing bug where package entries were not getting removing because
of component mismatch.

Bug: 21612532
Change-Id: Ie56f3272f7fb7e1a37c5ff9bfa523d814edc1a02

9 years agoMerge "Adding back icon size dimen" into ub-launcher3-burnaby
Sunny Goyal [Thu, 4 Jun 2015 19:37:45 +0000 (19:37 +0000)]
Merge "Adding back icon size dimen" into ub-launcher3-burnaby

9 years agoAdding back icon size dimen
Sunny Goyal [Thu, 4 Jun 2015 19:19:51 +0000 (12:19 -0700)]
Adding back icon size dimen

Bug: 21638256
Change-Id: I522a8e59e63e4a49a087e4fb3aac102595ea6818

9 years agoMerge "Consistent scrolling experience for All apps and widget tray" into ub-launcher...
Hyunyoung Song [Thu, 4 Jun 2015 18:39:44 +0000 (18:39 +0000)]
Merge "Consistent scrolling experience for All apps and widget tray" into ub-launcher3-burnaby

9 years agoConsistent scrolling experience for All apps and widget tray
Hyunyoung Song [Thu, 4 Jun 2015 18:37:46 +0000 (11:37 -0700)]
Consistent scrolling experience for All apps and widget tray

b/21375339

Change-Id: I8362b3ca94b7c4e75932d42cd09a989e0e3919c0

9 years agoFixing different bitmap sizes in different orientations
Sunny Goyal [Fri, 22 May 2015 19:25:45 +0000 (12:25 -0700)]
Fixing different bitmap sizes in different orientations

> Using a single bitmap icon size
> Picking up appropriate density for satisfy the required icon size
> Fixing some icon size assumptions during icon animations

Bug: 19514688
Change-Id: Ia7a1d0d2c03a9d39ccc241fa4ae3eb8a0f374585

9 years agoMerge "Fixing issue with hotseat being on the wrong side of the screen in RTL." into...
Winson Chung [Wed, 3 Jun 2015 19:03:12 +0000 (19:03 +0000)]
Merge "Fixing issue with hotseat being on the wrong side of the screen in RTL." into ub-launcher3-burnaby

9 years agoFixing issue with hotseat being on the wrong side of the screen in RTL.
Winson Chung [Wed, 3 Jun 2015 18:27:26 +0000 (11:27 -0700)]
Fixing issue with hotseat being on the wrong side of the screen in RTL.

Bug: 21499466

Change-Id: I566cd89dfb855f89f4e68bf56e48bf99204b11ab

9 years agoMerge "Stylus support: handling drag n drop for widgets" into ub-launcher3-burnaby
Mady Mellor [Wed, 3 Jun 2015 16:46:42 +0000 (16:46 +0000)]
Merge "Stylus support: handling drag n drop for widgets" into ub-launcher3-burnaby

9 years agoMerge "Stylus support: creating and setting listeners for stylus button press" into...
Mady Mellor [Wed, 3 Jun 2015 16:26:34 +0000 (16:26 +0000)]
Merge "Stylus support: creating and setting listeners for stylus button press" into ub-launcher3-burnaby

9 years agoMerge "Adding context for app launches." into ub-launcher3-burnaby
Winson Chung [Tue, 2 Jun 2015 23:59:42 +0000 (23:59 +0000)]
Merge "Adding context for app launches." into ub-launcher3-burnaby

9 years agoAdding context for app launches.
Winson Chung [Fri, 29 May 2015 00:33:40 +0000 (17:33 -0700)]
Adding context for app launches.

Bug: 21492784
Change-Id: I1b28ac8f44498e1d9770e770b074f19c721c3f10

9 years agoStylus support: creating and setting listeners for stylus button press
Mady Mellor [Tue, 2 Jun 2015 22:35:07 +0000 (15:35 -0700)]
Stylus support: creating and setting listeners for stylus button press

This updates almost(*) all locations that use a long press listener to
also set a custom touch listener that recognizes the stylus button press
action.

The stylus button press action is: when a stylus touches a view while the
primary stylus button is pressed which may occur on a DOWN or MOVE event.

*The location this is *not* enabled for is: Longpress to enter "overview"
mode -- this isn't really a selection or drag n drop action; it is also
easy to accidentally do this while using the stylus gesture to drag n drop
items which is not an ideal interaction. Also not set for the "cling" that
demonstrates this.

Bug: 20430722
Change-Id: I9343f143261a7b4fada9afca28b8a11a60dbecca

9 years agoStylus support: handling drag n drop for widgets
Mady Mellor [Tue, 2 Jun 2015 22:02:14 +0000 (15:02 -0700)]
Stylus support: handling drag n drop for widgets

This alters the widget host view code to consider stylus button presses
allowing the user to pick up widgets with a stylus button press, and drop
them by releasing the button.

Bug: 20430722
Change-Id: I359f72bd80016f4b313aab1325cc92d7c6fd2a8c

9 years agoRemove use of API level 19 classes.
Winson Chung [Tue, 2 Jun 2015 17:29:30 +0000 (10:29 -0700)]
Remove use of API level 19 classes.

Bug: 21583308

9 years agoRemoving some synthetic method creation
Sunny Goyal [Tue, 2 Jun 2015 16:38:28 +0000 (09:38 -0700)]
Removing some synthetic method creation

> Make package-private and @Thunk all private methods and constructors accessed from inner classes.

Change-Id: Ie5913860a0c33e48e9bf68f9b5b1699f64c2f174

9 years agoBuild fix: Removing FastOutSlowIn interpolator
Sunny Goyal [Tue, 2 Jun 2015 00:15:34 +0000 (17:15 -0700)]
Build fix: Removing FastOutSlowIn interpolator

Change-Id: Ia84445285d013fe8da3c895f5264f329f2403890

9 years agoFolder UI fixes
Sunny Goyal [Mon, 1 Jun 2015 18:00:38 +0000 (11:00 -0700)]
Folder UI fixes

> Fixing top padding (b/21304523)
> Alinging the label and page indicators to the icons
> Fixing folder label alingment in RTL (b/21445821)
> Updating footer animation (b/21336853)

Bug: 213045232144582121336853
Change-Id: I2cf3a48c76653b19437b31252d6ee559ce798094

9 years agoEnabling resumeWhilePausing for the Launcher activity.
Winson Chung [Mon, 1 Jun 2015 19:38:30 +0000 (12:38 -0700)]
Enabling resumeWhilePausing for the Launcher activity.

Bug: 21342101

9 years agoAdding an asynchronous search interface for apps search
Sunny Goyal [Fri, 29 May 2015 21:54:40 +0000 (14:54 -0700)]
Adding an asynchronous search interface for apps search

Change-Id: Ib09df0a3d587dc60ed888ddbd0edf058e4a1cc3e

9 years agoFixing crash on tablets from merging scheme changes.
Winson Chung [Mon, 1 Jun 2015 22:42:37 +0000 (15:42 -0700)]
Fixing crash on tablets from merging scheme changes.

9 years agoMerge "Add the Allow Rotation setting to Launcher3." into ub-launcher3-burnaby
Rahul Chaturvedi [Mon, 1 Jun 2015 20:56:14 +0000 (20:56 +0000)]
Merge "Add the Allow Rotation setting to Launcher3." into ub-launcher3-burnaby

9 years agoAdd the Allow Rotation setting to Launcher3.
Rahul Chaturvedi [Wed, 20 May 2015 01:02:16 +0000 (18:02 -0700)]
Add the Allow Rotation setting to Launcher3.

This CL adds a Settings activity along with the code needed to provide
a "Allow Rotation" setting to all phones and tablets. This setting is
set to false for phones and true for tablets. On changing the setting
from unlocked to locked, the launcher (and the Settings activity)
will get locked to the orientation the user was in when he disabled
"Allow Rotation". This is consistent with how the natural rotation
feature of Android works.

Change-Id: I8a1c59d1fa0bb9262530cad96e0a9bdbab0d9344

9 years agoAvoid merging app sections across scripts.
Winson Chung [Mon, 1 Jun 2015 19:35:17 +0000 (12:35 -0700)]
Avoid merging app sections across scripts.

Bug: 20222023
Change-Id: I171d75a33694fc2cb347a32cff209f64fe3bf7c3

9 years agoMerge "Revert "Avoid merging sections across scripts."" into ub-launcher3-burnaby
Winson Chung [Mon, 1 Jun 2015 19:20:48 +0000 (19:20 +0000)]
Merge "Revert "Avoid merging sections across scripts."" into ub-launcher3-burnaby

9 years agoRevert "Avoid merging sections across scripts."
Winson Chung [Mon, 1 Jun 2015 19:20:23 +0000 (19:20 +0000)]
Revert "Avoid merging sections across scripts."

This reverts commit 595395d84f0507a1c5c163ad4722fa4345376079.

Change-Id: I44913141f6cb3af29b4509d6b7c317247d1f24c9

9 years agoMerge "Avoid merging sections across scripts." into ub-launcher3-burnaby
Winson Chung [Mon, 1 Jun 2015 18:27:20 +0000 (18:27 +0000)]
Merge "Avoid merging sections across scripts." into ub-launcher3-burnaby

9 years agoAvoid merging sections across scripts.
Winson Chung [Mon, 1 Jun 2015 18:18:12 +0000 (11:18 -0700)]
Avoid merging sections across scripts.

Bug: 20222023
Change-Id: I6f6577112845fec14ae2e9c6e88ff3569bd2f1af

9 years agoNull check in accessibility delegate
Sunny Goyal [Mon, 1 Jun 2015 17:09:06 +0000 (10:09 -0700)]
Null check in accessibility delegate

bug: 21338696
Change-Id: I00d67e53e03e33b26a8eadb669b60fec47553f26

9 years agoMerge "Start adding unit tests for the invariant device profile / Refactor" into...
Hyunyoung Song [Fri, 29 May 2015 22:47:37 +0000 (22:47 +0000)]
Merge "Start adding unit tests for the invariant device profile / Refactor" into ub-launcher3-burnaby

9 years agoMerge "Fixing screen jumps when performing DnD in rtl mode" into ub-launcher3-burnaby
Sunny Goyal [Fri, 29 May 2015 22:03:10 +0000 (22:03 +0000)]
Merge "Fixing screen jumps when performing DnD in rtl mode" into ub-launcher3-burnaby

9 years agoFixing screen jumps when performing DnD in rtl mode
Sunny Goyal [Thu, 28 May 2015 17:06:43 +0000 (10:06 -0700)]
Fixing screen jumps when performing DnD in rtl mode

Bug: 21445825
Change-Id: Ie43d24ce9c8c08dc2c4b3e24692d497760d8cd2d

9 years agoMove fast scrolling logic to BaseRecyclerView
Hyunyoung Song [Fri, 29 May 2015 19:00:44 +0000 (12:00 -0700)]
Move fast scrolling logic to BaseRecyclerView

- This change has no effect on actual functionality but to make it easier
for widget tray to inherit the goodness of the 1) fast scroller
functionality 2) unify the scroll look and feel with the all apps view

b/21375339

Change-Id: Ib859b1c3352c0b69f16549ded8f20eb82cf58ba8

9 years agoMerge "Ensuring that each CacheEntry has a default title and content description...
Winson Chung [Thu, 28 May 2015 22:48:50 +0000 (22:48 +0000)]
Merge "Ensuring that each CacheEntry has a default title and content description." into ub-launcher3-burnaby

9 years agoStart adding unit tests for the invariant device profile / Refactor
Hyunyoung Song [Thu, 28 May 2015 22:33:40 +0000 (15:33 -0700)]
Start adding unit tests for the invariant device profile / Refactor

- removed redundant code to sort the device profiles
- removed DeviceProfileQuery class
- Added a helper method inside the test to easily generate
interpolation graph looks like:
https://docs.google.com/a/google.com/spreadsheets/d/1a1fdemrOqIDixiql77h0anWzUD3GlYfGsbP2FfIhyPM/edit?usp=sharing

Change-Id: Ia4c54a8d59a049c418c08d1b766f07ac6e1d0944

9 years agoEnsuring that each CacheEntry has a default title and content description.
Winson Chung [Thu, 28 May 2015 19:53:44 +0000 (12:53 -0700)]
Ensuring that each CacheEntry has a default title and content description.

- Also defer adding entry to cache until we know that it has correctly loaded

Bug: 21446070

Change-Id: Ia7aae65ecdc5d9d7741f75d3fb6e7b85daeafeff

9 years agoMerge "Setting scroll X, Y and related attributes for TYPE_VIEW_SCROLLED event."...
Vadim Tryshev [Thu, 28 May 2015 22:07:56 +0000 (22:07 +0000)]
Merge "Setting scroll X, Y and related attributes for TYPE_VIEW_SCROLLED event." into ub-launcher3-burnaby

9 years agoSetting scroll X, Y and related attributes for TYPE_VIEW_SCROLLED event.
Vadim Tryshev [Thu, 21 May 2015 21:06:35 +0000 (14:06 -0700)]
Setting scroll X, Y and related attributes for TYPE_VIEW_SCROLLED event.

Change-Id: Idec0e333a0d3c3a0c232d3e2240f18174e0ea88c

9 years agoam a14cb230: (-s ours) Merge "Guard against monkey actor test NPE inside FocusHelper...
Hyunyoung Song [Thu, 28 May 2015 22:01:35 +0000 (22:01 +0000)]
am a14cb230: (-s ours) Merge "Guard against monkey actor test NPE inside FocusHelper b/19626762" into ub-launcher3-almonte

* commit 'a14cb230dad35fc4ad54dae9f5c5d4f71b89ff12':
  Guard against monkey actor test NPE inside FocusHelper b/19626762

9 years agoMerge "Guard against monkey actor test NPE inside FocusHelper b/19626762" into ub...
Hyunyoung Song [Thu, 28 May 2015 21:48:24 +0000 (21:48 +0000)]
Merge "Guard against monkey actor test NPE inside FocusHelper b/19626762" into ub-launcher3-almonte

9 years agoGuard against monkey actor test NPE inside FocusHelper
Hyunyoung Song [Thu, 28 May 2015 21:45:59 +0000 (14:45 -0700)]
Guard against monkey actor test NPE inside FocusHelper
b/19626762

Change-Id: Icaff5931f4076323855f23e7165b0e78a11241b6

9 years agoMerge "Fixing non-scrolling of workspace view after opening/closing AllApps vew....
Vadim Tryshev [Thu, 28 May 2015 21:42:15 +0000 (21:42 +0000)]
Merge "Fixing non-scrolling of workspace view after opening/closing AllApps vew. The reason for non-scrolling was excluding the pages view from the accessibility hierarchy by marking it as non-important. So, I just removed the code manipulating [non]importance of the PagedView." into ub-launcher3-burnaby

9 years agoFixing non-scrolling of workspace view after opening/closing AllApps vew.
Vadim Tryshev [Fri, 15 May 2015 15:48:11 +0000 (08:48 -0700)]
Fixing non-scrolling of workspace view after opening/closing AllApps vew.
The reason for non-scrolling was excluding the pages view from the
accessibility hierarchy by marking it as non-important. So, I just
removed the code manipulating [non]importance of the PagedView.

However, this would make the PagesView accessibility-focusable, which is
undesirable. It becomes focusable because it supports long clicks in "normal"
mode. Since it doesn't support accessibility long clicks (i.e. Overview mode is
fetched NOT via accessibility long-click), I just disabled accessibility
long-clickability, which made PageView non-focusable, and it started to behave
correctly.

Bug: 21281859
Change-Id: I7ab01e5f39cb37c456c961199c27458c9bda1c3d

9 years agoFixing page background not displayed when dragging from all apps
Sunny Goyal [Wed, 27 May 2015 01:56:52 +0000 (18:56 -0700)]
Fixing page background not displayed when dragging from all apps

> Adding empty page synchronously, instead of waiting for a frame
> Changing launcher state from widgets screen in the same frame, similar to all apps
> Removing DragEnforcer, and moving that logic in side the workspace, disabled by a flag
> Using first page to get page bounds in drag layer, as last page may not have been measured

Change-Id: I172ba4e5ce44648ac55402d49994542c6e10f101

9 years agoMerge "Removing file IO used for checking configuration change" into ub-launcher3...
Sunny Goyal [Thu, 28 May 2015 00:16:08 +0000 (00:16 +0000)]
Merge "Removing file IO used for checking configuration change" into ub-launcher3-burnaby

9 years agoMerge "Make sure all transition components run on the same thread" into ub-launcher3...
Adam Cohen [Wed, 27 May 2015 21:16:29 +0000 (21:16 +0000)]
Merge "Make sure all transition components run on the same thread" into ub-launcher3-burnaby

9 years agoMake sure all transition components run on the same thread
Adam Cohen [Wed, 27 May 2015 06:03:31 +0000 (23:03 -0700)]
Make sure all transition components run on the same thread

-> The framework circular reveal transition runs on the render
   thread which can cause problems when mixed in an AnimatorSet
   with transitions that don't run on the render thread
-> See issue 17556455

issue 21445293

Change-Id: Ie19c184c55060651e817d426ec83049b06af56ba

9 years agoFixing build breakage
Sunny Goyal [Wed, 27 May 2015 18:14:01 +0000 (11:14 -0700)]
Fixing build breakage

Change-Id: I2d8ac9a92d2da3d6b0f52ff8a6e3683b05663aec

9 years agoRemoving SmoothPagedView as all its methods are disabled
Sunny Goyal [Wed, 27 May 2015 17:24:24 +0000 (10:24 -0700)]
Removing SmoothPagedView as all its methods are disabled

Change-Id: I83c99bb3d3546693200d64e2233957b4c679e7e6

9 years agoMerge "Introduce LauncherSearchCallback to handle search overlay status." into ub...
Jun Mukai [Wed, 27 May 2015 00:41:28 +0000 (00:41 +0000)]
Merge "Introduce LauncherSearchCallback to handle search overlay status." into ub-launcher3-burnaby

9 years agoFixing workspace scrim not being drawn
Sunny Goyal [Wed, 27 May 2015 00:20:07 +0000 (17:20 -0700)]
Fixing workspace scrim not being drawn

Change-Id: Iabafe159a577909396d1602a7eda9c508e95cb71

9 years agoRemoving file IO used for checking configuration change
Sunny Goyal [Tue, 26 May 2015 16:14:49 +0000 (09:14 -0700)]
Removing file IO used for checking configuration change

> This check was used for flushing the cache, but since the cache
is backed by a DB, this has no effect as same icons are loaded again

Change-Id: Ib7d8a8598c5d225d922e095c899dc11ad06f2b7a

9 years agoam c3d4553d: (-s ours) [DO NOT MERGE] Use custom slide-up animation on LMP MR1 instea...
Adam Cohen [Fri, 22 May 2015 23:26:45 +0000 (23:26 +0000)]
am c3d4553d: (-s ours) [DO NOT MERGE] Use custom slide-up animation on LMP MR1 instead of system default

* commit 'c3d4553d462521bc77b719109ea8cf5b5812d471':
  [DO NOT MERGE] Use custom slide-up animation on LMP MR1 instead of system default

9 years ago[DO NOT MERGE] Use custom slide-up animation on LMP MR1 instead of system default
Adam Cohen [Fri, 22 May 2015 21:36:14 +0000 (14:36 -0700)]
[DO NOT MERGE] Use custom slide-up animation on LMP MR1 instead of system default

issue 21402755

Change-Id: I87ddef08e7b3134c791f769fc279e62d520cd18c

9 years agoMerge "Decrease elevation for the reveal view." into ub-launcher3-burnaby
Sunny Goyal [Fri, 22 May 2015 22:26:41 +0000 (22:26 +0000)]
Merge "Decrease elevation for the reveal view." into ub-launcher3-burnaby

9 years agoDecrease elevation for the reveal view.
Sunny Goyal [Fri, 22 May 2015 22:14:01 +0000 (15:14 -0700)]
Decrease elevation for the reveal view.

> During the end of allApps animation, the shadow suddenly changes from 15dp to 0

Change-Id: I93bcf1220396b2bda3efea7febc2195ef556938b

9 years agoMerge "Fix widget tray crash on screen rotation introduced by ag/694693" into ub...
Hyunyoung Song [Fri, 22 May 2015 21:50:17 +0000 (21:50 +0000)]
Merge "Fix widget tray crash on screen rotation introduced by ag/694693" into ub-launcher3-burnaby

9 years agoFix widget tray crash on screen rotation introduced by
Hyunyoung Song [Fri, 22 May 2015 21:49:23 +0000 (14:49 -0700)]
Fix widget tray crash on screen rotation introduced by
ag/694693

b/21402209

Change-Id: Idae97fca971d90f5fbba658411491147cb023c8d

9 years agoMoving all apps code into sub package.
Winson Chung [Fri, 22 May 2015 18:12:27 +0000 (11:12 -0700)]
Moving all apps code into sub package.

- Renaming resources, dimens, etc to be more consistent
- Removing old AppsCustomize resources and other unused code

Change-Id: I15ce35e7cb7a9b9344fc7103963e4e4c9e45d89a

9 years agoCreating landscape and portrait device profiles at app initialization
Sunny Goyal [Fri, 22 May 2015 03:46:33 +0000 (20:46 -0700)]
Creating landscape and portrait device profiles at app initialization

Change-Id: Ide9d007adc36b348e19b05cdf49e87f8b02db60e

9 years agoAnimating workspace active background change
Sunny Goyal [Wed, 20 May 2015 22:35:32 +0000 (15:35 -0700)]
Animating workspace active background change

> Removing workspace_overscroll_drawable_padding which is always 0

Change-Id: I89900738371458a6eb7cbfee215d98b267d6a0b0

9 years agoMerge "Enabling setWallpaper button only if the image was loaded successfully" into...
Sunny Goyal [Thu, 21 May 2015 23:19:24 +0000 (23:19 +0000)]
Merge "Enabling setWallpaper button only if the image was loaded successfully" into ub-launcher3-burnaby

9 years agoRefactoring DeviceProfile
Adam Cohen [Wed, 6 May 2015 18:42:25 +0000 (11:42 -0700)]
Refactoring DeviceProfile

-> Pulling out the parts of device profile which can (and need to be)
   initialized and accessed without access to an Activity context,
   ie. the invariant bits.
-> The invariant bits are stored in InvariantDeviceProfile which is
   initialized statically from LauncherAppState.
-> The DeviceProfile contains the Activity context-dependent bits,
   and we will create one of these for each Activity instance, and
   this instance is accessed through the Launcher activity.
-> It's possible that we can continue to refactor this such that
   all appropriate dimensions can be computed without an Activity
   context (by only specifying orientation). This would be an
   extension of this CL and allow us to know exactly how launcher
   will look in both orientations from any context.

Sets the stage for some improvements around b/19514688

Change-Id: Ia7daccf14d8ca2b9cb340b8780b684769e9f1892

9 years agoEnabling setWallpaper button only if the image was loaded successfully
Sunny Goyal [Thu, 21 May 2015 22:54:58 +0000 (15:54 -0700)]
Enabling setWallpaper button only if the image was loaded successfully

Bug: 20187333
Change-Id: I1b738a06499d20facbc4bccb1e6247086a45b686

9 years agoMerge "Introduce scrollbar in widget tray" into ub-launcher3-burnaby
Hyunyoung Song [Thu, 21 May 2015 23:00:17 +0000 (23:00 +0000)]
Merge "Introduce scrollbar in widget tray" into ub-launcher3-burnaby

9 years agoMerge "Tweaking method name." into ub-launcher3-burnaby
Winson Chung [Thu, 21 May 2015 22:46:07 +0000 (22:46 +0000)]
Merge "Tweaking method name." into ub-launcher3-burnaby

9 years agoTweaking method name.
Winson Chung [Thu, 21 May 2015 22:45:24 +0000 (15:45 -0700)]
Tweaking method name.

Change-Id: I2f4f9dc58c8148059914a106526995e80a82376f

9 years agoMerge "Fixing crash in previous CL." into ub-launcher3-burnaby
Winson Chung [Thu, 21 May 2015 22:43:45 +0000 (22:43 +0000)]
Merge "Fixing crash in previous CL." into ub-launcher3-burnaby

9 years agoIntroduce scrollbar in widget tray
Hyunyoung Song [Thu, 21 May 2015 22:31:42 +0000 (15:31 -0700)]
Introduce scrollbar in widget tray

b/21270754

Change-Id: I82dd87193f0ed5822f8cd75ef0c785057f949015

9 years agoMerge "Icons are not updated to TYPE_APPLICATION during restore" into ub-launcher3...
Sunny Goyal [Thu, 21 May 2015 22:26:26 +0000 (22:26 +0000)]
Merge "Icons are not updated to TYPE_APPLICATION during restore" into ub-launcher3-burnaby

9 years agoFixing crash in previous CL.
Winson Chung [Thu, 21 May 2015 21:39:54 +0000 (14:39 -0700)]
Fixing crash in previous CL.

- Shouldn't be referencing mApps before it is set.

9 years agoMerge "Preventing overdraw. Drawing background directly at the window, instead of...
Sunny Goyal [Thu, 21 May 2015 20:34:27 +0000 (20:34 +0000)]
Merge "Preventing overdraw. Drawing background directly at the window, instead of the rootview." into ub-launcher3-burnaby

9 years agoIcons are not updated to TYPE_APPLICATION during restore
Sunny Goyal [Tue, 19 May 2015 23:03:28 +0000 (16:03 -0700)]
Icons are not updated to TYPE_APPLICATION during restore

> Use low res only for app shortcuts
> Running icon migration after restore
> Running icon migration again for all users
> Deduping shortcuts added from widget tray

Bug: 20945600
Change-Id: I3bb47545fdd9832510069026fbae8966d2311cc1

9 years agoCleaning up some app model code.
Winson Chung [Wed, 20 May 2015 23:07:46 +0000 (16:07 -0700)]
Cleaning up some app model code.

- Preventing extra sorting when adding/updating apps
- Preventing extra logic when filtering apps
- Fixing overlapping prediction bar when all predictions are removed
- Fixing crash when retrieving section names for AppInfos whose titles
  have been updated, but updateApps has not yet been called.

Change-Id: I1da468b0fd5c5cc404b6a5e6146a268fefeca267

9 years agoMerge "Breaking icon update task so that it doesn't block worker thread" into ub...
Sunny Goyal [Thu, 21 May 2015 20:31:36 +0000 (20:31 +0000)]
Merge "Breaking icon update task so that it doesn't block worker thread" into ub-launcher3-burnaby

9 years agoMerge "Load PackageItemInfo in background thread to prevent ANR" into ub-launcher3...
Hyunyoung Song [Thu, 21 May 2015 20:25:15 +0000 (20:25 +0000)]
Merge "Load PackageItemInfo in background thread to prevent ANR" into ub-launcher3-burnaby

9 years agoMerge "Using color filter when animating the drop target instead to TransitionDrawabl...
Sunny Goyal [Thu, 21 May 2015 20:23:58 +0000 (20:23 +0000)]
Merge "Using color filter when animating the drop target instead to TransitionDrawable" into ub-launcher3-burnaby

9 years agoLoad PackageItemInfo in background thread to prevent ANR
Hyunyoung Song [Thu, 21 May 2015 20:04:53 +0000 (13:04 -0700)]
Load PackageItemInfo in background thread to prevent ANR

- Decoupled widget model from widget view, and placed the
creation to LauncherModel.
- As a result packagemanager operation, iconcache retrieval is all done inside
LauncherModel on background thread
b/21311085
b/21325319

Change-Id: I294698527db58b89f3da558090a367530c058776

9 years agoPreventing overdraw. Drawing background directly at the window, instead of
Sunny Goyal [Tue, 19 May 2015 19:36:46 +0000 (12:36 -0700)]
Preventing overdraw. Drawing background directly at the window, instead of
the rootview.

Change-Id: Ie974752e739d9acd1fbd765809c671f82f462644

9 years agoUsing color filter when animating the drop target instead to TransitionDrawable
Sunny Goyal [Thu, 21 May 2015 17:28:02 +0000 (10:28 -0700)]
Using color filter when animating the drop target instead to TransitionDrawable

> No more flickering when crossfading between two bitmaps in small duration
> Allows us to control the color directly without depending on the assets

Change-Id: Ie7ed8bb94baf560e9b939cca624ed1bad457732c

9 years agoDo not trim folder title
Sunny Goyal [Thu, 21 May 2015 16:33:57 +0000 (09:33 -0700)]
Do not trim folder title

Bug: 21297281
Change-Id: I633780f8207aabc8362f016e6b5a6e720cee1b86

9 years agoBreaking icon update task so that it doesn't block worker thread
Sunny Goyal [Thu, 21 May 2015 04:57:06 +0000 (21:57 -0700)]
Breaking icon update task so that it doesn't block worker thread

Bug: 20945600
Change-Id: Iaf516577898b51ad6e8a813d7f018ecad969c100

9 years agoFixing issue where the prediction bar apps are not focused.
Winson Chung [Wed, 20 May 2015 22:03:13 +0000 (15:03 -0700)]
Fixing issue where the prediction bar apps are not focused.

- Also fixes issue where all apps is not accessible by keyboard
  when there are no other apps in the hotseat.

Bug: 21334471

9 years agoMerge "Setting drawable to droptarget in the code to avoid multiple drawable inflatio...
Sunny Goyal [Wed, 20 May 2015 23:50:54 +0000 (23:50 +0000)]
Merge "Setting drawable to droptarget in the code to avoid multiple drawable inflation" into ub-launcher3-burnaby

9 years agoSetting drawable to droptarget in the code to avoid multiple drawable inflation
Sunny Goyal [Wed, 20 May 2015 23:40:30 +0000 (16:40 -0700)]
Setting drawable to droptarget in the code to avoid multiple drawable inflation

Change-Id: Ib713b3051e2707d46a4ee0090aed2db1d2e641b9

9 years agoMerge "Reducing delay in applying widget previews loaded in the background." into...
Winson Chung [Wed, 20 May 2015 23:08:17 +0000 (23:08 +0000)]
Merge "Reducing delay in applying widget previews loaded in the background." into ub-launcher3-burnaby

9 years agoMerge "Removing some unused functionalities" into ub-launcher3-burnaby
Sunny Goyal [Wed, 20 May 2015 22:35:48 +0000 (22:35 +0000)]
Merge "Removing some unused functionalities" into ub-launcher3-burnaby

9 years agoMerge "Avoiding blocking worker thread when adding icons to DB" into ub-launcher3...
Sunny Goyal [Wed, 20 May 2015 22:34:41 +0000 (22:34 +0000)]
Merge "Avoiding blocking worker thread when adding icons to DB" into ub-launcher3-burnaby

9 years agoRemoving unnecessary linear layout
Sunny Goyal [Wed, 20 May 2015 21:42:25 +0000 (14:42 -0700)]
Removing unnecessary linear layout

Change-Id: I7fe423b9526805a2e84887e0437ebdc96203c263

9 years agoMerge "UX widget cell color issue" into ub-launcher3-burnaby
Hyunyoung Song [Wed, 20 May 2015 21:17:17 +0000 (21:17 +0000)]
Merge "UX widget cell color issue" into ub-launcher3-burnaby

9 years agoUX widget cell color issue
Hyunyoung Song [Wed, 20 May 2015 21:14:04 +0000 (14:14 -0700)]
UX widget cell color issue

- widget cell color is slightly brigher than the background of the widget row.
- They should be the same.

Change-Id: I20bda325d5d2fe7e194a453978dc74fd56a4e154

9 years agoFixing unnecessary padding added to pages in overview mode
Sunny Goyal [Wed, 20 May 2015 20:40:27 +0000 (13:40 -0700)]
Fixing unnecessary padding added to pages in overview mode

Change-Id: Icd17c2956b201ea0b6c6a2a495f567f51987b1ac

9 years agoRemoving override annotation to fix build.
Winson Chung [Wed, 20 May 2015 18:13:36 +0000 (11:13 -0700)]
Removing override annotation to fix build.

Change-Id: I5a4dfa339db7862ac3db4cc379469ac8d9f6fae5

9 years agoMerge "Removing itemCount, fromIndex and toIndex from AccessibilityEvent.TYPE_VIEW_SC...
Vadim Tryshev [Wed, 20 May 2015 18:10:54 +0000 (18:10 +0000)]
Merge "Removing itemCount, fromIndex and toIndex from AccessibilityEvent.TYPE_VIEW_SCROLLED sent by PagedView. This causes an additional reduntant voice message on scroll (see the bug)." into ub-launcher3-burnaby

9 years agoMerge "List work profile widgets to the end of the row of the widget tray, then sort...
Hyunyoung Song [Wed, 20 May 2015 18:08:41 +0000 (18:08 +0000)]
Merge "List work profile widgets to the end of the row of the widget tray, then sort" into ub-launcher3-burnaby

9 years agoList work profile widgets to the end of the row of the widget tray, then sort
Hyunyoung Song [Wed, 20 May 2015 18:03:46 +0000 (11:03 -0700)]
List work profile widgets to the end of the row of the widget tray, then sort

b/20339403

Change-Id: I7cd824e47eba1121c9053a4064a51750bed587e7