OSDN Git Service

android-x86/packages-apps-Launcher3.git
7 years agoOnly reset search field when back key is hit if there is no query.
Jon Miranda [Mon, 19 Sep 2016 16:31:56 +0000 (09:31 -0700)]
Only reset search field when back key is hit if there is no query.

Bug: 31432372
Change-Id: I93c7ee661597f934402f464c4f0182a8fad38d39

7 years agoMerge "Fixing issue where overview->normal workspace mode cannot be done by tapping...
Hyunyoung Song [Fri, 16 Sep 2016 19:34:39 +0000 (19:34 +0000)]
Merge "Fixing issue where overview->normal workspace mode cannot be done by tapping b/31458165" into ub-launcher3-calgary-polish

7 years agoFixing issue where overview->normal workspace mode cannot be done by tapping
Hyunyoung Song [Fri, 16 Sep 2016 19:03:27 +0000 (12:03 -0700)]
Fixing issue where overview->normal workspace mode cannot be done by tapping
b/31458165

Because workspaceInModalState makes the VerticalFlingDetector
to consume the touch input, click is not detected in Overview mode.

Placed pulldown to search behind a feature flag.

Change-Id: I31ab69f57944a18e6b264c4f2ed2d0c1175cd940

7 years agoMerge "Don't close all apps when touching deep shortcuts container." into ub-launcher...
Tony Wickham [Fri, 16 Sep 2016 18:47:48 +0000 (18:47 +0000)]
Merge "Don't close all apps when touching deep shortcuts container." into ub-launcher3-calgary-polish

7 years agoMerge "Fixed NumberFormatException when trying to display vector drawable." into...
Jonathan Miranda [Fri, 16 Sep 2016 17:47:27 +0000 (17:47 +0000)]
Merge "Fixed NumberFormatException when trying to display vector drawable." into ub-launcher3-calgary-polish

7 years agoMerge "Set contentDescription on caret" into ub-launcher3-calgary-polish
Hyunyoung Song [Thu, 15 Sep 2016 23:31:37 +0000 (23:31 +0000)]
Merge "Set contentDescription on caret" into ub-launcher3-calgary-polish

7 years agoSet contentDescription on caret
Hyunyoung Song [Thu, 15 Sep 2016 23:19:14 +0000 (16:19 -0700)]
Set contentDescription on caret

Change-Id: I1f66b96b3f94649d85857b0107144bb4070ef448

7 years agoFixed NumberFormatException when trying to display vector drawable.
Jon Miranda [Thu, 15 Sep 2016 22:07:44 +0000 (15:07 -0700)]
Fixed NumberFormatException when trying to display vector drawable.

Found while debugging on Lollipop.

Change-Id: Idb098d3a8f7f1fa608fd8a32225cdefa41ba47a7

7 years agoUse ContextCompat.getColor to support API levels below 23.
Jon Miranda [Thu, 15 Sep 2016 22:05:12 +0000 (15:05 -0700)]
Use ContextCompat.getColor to support API levels below 23.

Found while debugging on Lollipop.

Change-Id: Ibe97fd30c4ee8cd0c1735a41802b859345f9e931

7 years agoAdding support for extending the touch target in the touchDelegate
Sunny Goyal [Thu, 15 Sep 2016 21:33:10 +0000 (21:33 +0000)]
Adding support for extending the touch target in the touchDelegate
am: 1cc48e1d0c

Change-Id: I29ce4b52a2b687f73b2db4ddb633210e905aad69

7 years agoAdding support for extending the touch target in the touchDelegate
Sunny Goyal [Thu, 15 Sep 2016 19:32:28 +0000 (12:32 -0700)]
Adding support for extending the touch target in the touchDelegate

Bug: 31458312
Change-Id: Ic819bdede2776ff63ec17053cc1326415edc1ca0

7 years agoFix bug where page indicator animation repeats itself.
Jon Miranda [Thu, 15 Sep 2016 19:31:28 +0000 (12:31 -0700)]
Fix bug where page indicator animation repeats itself.

Bug: 31501865
Change-Id: I0df77859b82b60fd0e50023e0f5690961850cf6c

7 years agoPull down should start search.
Hyunyoung Song [Thu, 15 Sep 2016 17:48:25 +0000 (10:48 -0700)]
Pull down should start search.
b/31458165

Change-Id: If4821e3d89a05a00551af6a5209ebc1693a1389b

7 years agoSimplifying the startSearch call in launcher callbacks
Sunny Goyal [Tue, 13 Sep 2016 21:19:29 +0000 (14:19 -0700)]
Simplifying the startSearch call in launcher callbacks

Change-Id: I722e110903cced237f05667c4d711468d7cd3daa

7 years agoAdding support for multiwindow drag and drop
Sunny Goyal [Mon, 12 Sep 2016 21:36:30 +0000 (14:36 -0700)]
Adding support for multiwindow drag and drop

Change-Id: I95b46e3c3f1238307d3ef5a6c81a8e530ba0987a

7 years agoMerge "Using DragObject for folder drop instead of maintaining states when drag start...
Sunny Goyal [Mon, 12 Sep 2016 20:21:04 +0000 (20:21 +0000)]
Merge "Using DragObject for folder drop instead of maintaining states when drag starts from inside a folder" into ub-launcher3-calgary-polish

7 years agoMerge "Fixing double system state call in iconCache" into ub-launcher3-calgary-polish
Sunny Goyal [Mon, 12 Sep 2016 18:10:29 +0000 (18:10 +0000)]
Merge "Fixing double system state call in iconCache" into ub-launcher3-calgary-polish

7 years agoMerge "Adding support for searching word segments when camelcase is used in the title...
Sunny Goyal [Mon, 12 Sep 2016 18:09:48 +0000 (18:09 +0000)]
Merge "Adding support for searching word segments when camelcase is used in the title" into ub-launcher3-calgary-polish

7 years agoFixing double system state call in iconCache
Sunny Goyal [Sun, 11 Sep 2016 21:48:39 +0000 (14:48 -0700)]
Fixing double system state call in iconCache

Change-Id: I6d43c8054c18e199f4343662f92631f0808c773e

7 years agoAdding support for searching word segments when camelcase is used in the title
Sunny Goyal [Fri, 9 Sep 2016 03:31:38 +0000 (20:31 -0700)]
Adding support for searching word segments when camelcase is used in the title

Bug: 30880421
Change-Id: If642d24408fe0e80b5a0dd9a2a57d2f3c2d92ea9

7 years agoUsing DragObject for folder drop instead of maintaining states when
Sunny Goyal [Fri, 9 Sep 2016 19:42:10 +0000 (12:42 -0700)]
Using DragObject for folder drop instead of maintaining states when
drag starts from inside a folder

Change-Id: I073b59c194d0bd483d579bbcb638b116b09590a0

7 years agoMerge "Preventing a shortcut which requires permissions from being added to homescree...
Sunny Goyal [Sat, 10 Sep 2016 00:04:51 +0000 (00:04 +0000)]
Merge "Preventing a shortcut which requires permissions from being added to homescreen" into ub-launcher3-calgary-polish

7 years agoMerge "Show IME when search query != null after rotation" into ub-launcher3-calgary...
Hyunyoung Song [Fri, 9 Sep 2016 22:13:33 +0000 (22:13 +0000)]
Merge "Show IME when search query != null after rotation" into ub-launcher3-calgary-polish

7 years agoShow IME when search query != null after rotation
Hyunyoung Song [Fri, 9 Sep 2016 22:02:20 +0000 (15:02 -0700)]
Show IME when search query != null after rotation

Change-Id: Ia35fba140a5addc21bf347cd63b72dc4e357421e

7 years agoMerge "Fix deferred shortcut container removal." into ub-launcher3-calgary-polish
TreeHugger Robot [Fri, 9 Sep 2016 00:02:39 +0000 (00:02 +0000)]
Merge "Fix deferred shortcut container removal." into ub-launcher3-calgary-polish

7 years agoMerge "Don't show app info for ITEM_TYPE_SHORTCUT." into ub-launcher3-calgary-polish
TreeHugger Robot [Fri, 9 Sep 2016 00:02:35 +0000 (00:02 +0000)]
Merge "Don't show app info for ITEM_TYPE_SHORTCUT." into ub-launcher3-calgary-polish

7 years agoDon't show app info for ITEM_TYPE_SHORTCUT.
Tony Wickham [Thu, 8 Sep 2016 22:00:24 +0000 (15:00 -0700)]
Don't show app info for ITEM_TYPE_SHORTCUT.

Bug: 30440566
Change-Id: I77b101331ea249c633be9f7df1edebefa7b9e0a8

7 years agoPreventing a shortcut which requires permissions from being added to
Sunny Goyal [Thu, 8 Sep 2016 21:32:06 +0000 (14:32 -0700)]
Preventing a shortcut which requires permissions from being added to
homescreen

A shortcut can be added by any app as INSTALL_SHORTCUT is a normal
level permission. But the intent is actually launched by the launcher
app which can have other permission as well.

> When adding a shortcut from the broadcast, verify that the intent does
not require any permission
> When adding a shortcut using the two-step drop process, verify that
the source app also has the permission to create such a shortcut

Bug: 30778130
Change-Id: I710a490d69019dc25709db5a97020c20d9325007

7 years agoMerge "Launcher restore state fixes:" into ub-launcher3-calgary-polish
Sunny Goyal [Thu, 8 Sep 2016 21:30:45 +0000 (21:30 +0000)]
Merge "Launcher restore state fixes:" into ub-launcher3-calgary-polish

7 years agoDon't close all apps when touching deep shortcuts container.
Tony Wickham [Thu, 8 Sep 2016 21:20:48 +0000 (14:20 -0700)]
Don't close all apps when touching deep shortcuts container.

Bug: 31373894
Change-Id: Ica1d0c2318e8f5d3e45196174c9b495a1c2515cd

7 years agoFix deferred shortcut container removal.
Tony Wickham [Thu, 8 Sep 2016 20:58:35 +0000 (13:58 -0700)]
Fix deferred shortcut container removal.

- Previously, the drag listener listener was removed from the
  container as soon as it started animating closed, which got
  rid of its opportunity to complete the deferred removal.
- The deferred removal now calls close(), which does further
  cleanup including updating the app icon's text visibility.

Bug: 31248681
Change-Id: I18e545e7e19e50b7d47e23a5beb8f254ba1a4ccf

7 years agoMerge "Updating the assets for the all-apps search background." into ub-launcher3...
Sunny Goyal [Thu, 8 Sep 2016 20:16:48 +0000 (20:16 +0000)]
Merge "Updating the assets for the all-apps search background." into ub-launcher3-calgary-polish

7 years agoUpdating the assets for the all-apps search background.
Sunny Goyal [Fri, 2 Sep 2016 20:21:00 +0000 (13:21 -0700)]
Updating the assets for the all-apps search background.

Bug: 30309105
Change-Id: I4dd4a97ff49fd3c6dd386f100ca35dfb629044df

7 years agoMerge "Add outline to shortcuts when focused." into ub-launcher3-calgary-polish
Tony Wickham [Thu, 8 Sep 2016 17:04:40 +0000 (17:04 +0000)]
Merge "Add outline to shortcuts when focused." into ub-launcher3-calgary-polish

7 years agoAdd outline to shortcuts when focused.
Tony Wickham [Wed, 31 Aug 2016 20:30:27 +0000 (13:30 -0700)]
Add outline to shortcuts when focused.

Bug: 30563273
Change-Id: Ia54c112dcf91c225588b7388001eb93ee5c03171

7 years agoChange all apps caret target bounding box b/30400751
Hyunyoung Song [Wed, 7 Sep 2016 22:40:49 +0000 (22:40 +0000)]
Change all apps caret target bounding box b/30400751
am: da1c17c492

Change-Id: Ic3b9cc87ec75e13162588bab8cefe8f870af13f8

7 years agoMerge "Preventing concurrentmodification exception when dragging a icon with shortcut...
Sunny Goyal [Wed, 7 Sep 2016 21:48:50 +0000 (21:48 +0000)]
Merge "Preventing concurrentmodification exception when dragging a icon with shortcuts from inside a folder" into ub-launcher3-calgary-polish

7 years agoChange all apps caret target bounding box
Hyunyoung Song [Wed, 7 Sep 2016 21:45:09 +0000 (14:45 -0700)]
Change all apps caret target bounding box
b/30400751

1) This also fixes the issue of apps drawer sliding up when page is swiped
horizontally immediately above the hotseat area.

2) Disclaimer: this should be cp'ed to calgary.
Hence, I tried to keep the diff small. Ideally, CaretDrawable animation
handling should move to AllAppsHandleImageView via refactoring in
follow up CL.

Change-Id: I4d808ee2eeca53b40c0b4e4e0e364fef056e26c3
(cherry picked from commit 016eaeea99e163f0b5385cf660297e6c21ff21e5)

7 years agoMerge "Change all apps caret target bounding box b/30400751" into ub-launcher3-calgar...
Hyunyoung Song [Wed, 7 Sep 2016 21:46:04 +0000 (21:46 +0000)]
Merge "Change all apps caret target bounding box b/30400751" into ub-launcher3-calgary-polish

7 years agoChange all apps caret target bounding box
Hyunyoung Song [Wed, 7 Sep 2016 21:45:09 +0000 (14:45 -0700)]
Change all apps caret target bounding box
b/30400751

1) This also fixes the issue of apps drawer sliding up when page is swiped
horizontally immediately above the hotseat area.

2) Disclaimer: this should be cp'ed to calgary.
Hence, I tried to keep the diff small. Ideally, CaretDrawable animation
handling should move to AllAppsHandleImageView via refactoring in
follow up CL.

Change-Id: I4d808ee2eeca53b40c0b4e4e0e364fef056e26c3

7 years agoPreventing concurrentmodification exception when dragging a icon
Sunny Goyal [Wed, 7 Sep 2016 21:39:41 +0000 (14:39 -0700)]
Preventing concurrentmodification exception when dragging a icon
with shortcuts from inside a folder

When dragging the icon, DeepShortcutContainer removes itself as a
dragListener causing the exception

Change-Id: Ifb2b4a3045caa54aa0b6a9b525055ffdcfaa04a6

7 years agoLauncher restore state fixes:
Sunny Goyal [Mon, 22 Aug 2016 23:00:03 +0000 (16:00 -0700)]
Launcher restore state fixes:

> Creating PendingRequestArgs to store generic request info across
activity instances
> Storing the CALL_PHONE request in PendingRequestArgs

> Handling onActivityResult only after the workspace has loaded.
onActivityResult sometimes modifies launcher db when removing empty
screens, and any add action is also deferred until bindComplete.
This simplifies this logic.

> Always binding the restored page irrespective of pending result.
Before starting a request activity (bind widget permission, or
widget config activity or shortcut picker), workspace commits the
pending screen id to the DB. Hence the restore page is valid when
restore is called (onResume loads with currentPage instead of
restored page)

Bug: 28573143
Change-Id: I34be603cbeb2145f5caf0d18e016f50029e07df8

7 years agoSupport user event logging for drag and drop b/30039490
Hyunyoung Song [Tue, 6 Sep 2016 18:47:31 +0000 (18:47 +0000)]
Support user event logging for drag and drop b/30039490
am: 551e5abfe1  -s ours

Change-Id: Ie1edd18af660437dcbd510885f9101b93592b53f

7 years agoSupport user event logging for drag and drop
Hyunyoung Song [Thu, 1 Sep 2016 19:47:12 +0000 (12:47 -0700)]
Support user event logging for drag and drop
b/30039490

Supported in this CL:
- DnD: drag from container [WORKSPACE|HOTSEAT|FOLDER|ALLAPPS|WIDGETS|DEEPSHORTCUTS]
       drag to container [HOTSEAT,WORKSPACE,FOLDER,DROPTARGETS]
- Source and target can be [FOLDER_ICON, ICON, DEEPSHORTCUT, WIDGET]
- $ adb shell setprop log.tag.UserEvent DEBUG will turn on debugging

Change-Id: I0b8b879b80e6dce85bbde6e7794f9e0677832603
(cherry picked from commit 59a238095e82fd02355f4cb53abe01655a50b051)

7 years agoRemoving some reflection code
Sunny Goyal [Fri, 2 Sep 2016 21:59:12 +0000 (21:59 +0000)]
Removing some reflection code
am: 6ff1ef17a2  -s ours

Change-Id: Ibfc257848b9714a592c016f7f72ead30eabbdc65

7 years agoRemoving some reflection code
Sunny Goyal [Thu, 1 Sep 2016 18:00:49 +0000 (11:00 -0700)]
Removing some reflection code

Change-Id: I8a0a707d69999e5f9911e7d8df7d4a659b3dfb8f
(cherry picked from commit e2ec8a3cd52f2322016fcadbae8963a446e2b0b3)

7 years agoMerge "Blocking alpha animation if the initial and final state for the animation...
Sunny Goyal [Fri, 2 Sep 2016 19:18:54 +0000 (19:18 +0000)]
Merge "Blocking alpha animation if the initial and final state for the animation are both 0" into ub-launcher3-calgary
am: 171fbdbc10

Change-Id: Ia985ac4e86ff5aec8bc20f2decb5d13331dbd386

7 years agoBlocking alpha animation if the initial and final state for the animation are both 0
Sunny Goyal [Fri, 2 Sep 2016 19:18:53 +0000 (19:18 +0000)]
Blocking alpha animation if the initial and final state for the animation are both 0
am: 62e7518359

Change-Id: I3ac4f5be0726e2389e31a8fa3b18c5ca7d955c8c

7 years agoMerge "Bug fix in Alarm where it was not getting called correctly if the new timeout...
Sunny Goyal [Fri, 2 Sep 2016 19:18:53 +0000 (19:18 +0000)]
Merge "Bug fix in Alarm where it was not getting called correctly if the new timeout was set that was smaller than the previously set timeout" into ub-launcher3-calgary
am: dbbb1fee90

Change-Id: If5d392fb037a57669407c16d428ef12cdd52377a

7 years agoBug fix in Alarm where it was not getting called correctly if the new timeout was...
Sunny Goyal [Fri, 2 Sep 2016 19:18:52 +0000 (19:18 +0000)]
Bug fix in Alarm where it was not getting called correctly if the new timeout was set that was smaller than the previously set timeout
am: 6f2bb1ada5

Change-Id: I6f6603133cc0bb31fd1d7f354eb0fdefef2f9dea

7 years agoMerge "Fixing broken accessibility drag" into ub-launcher3-calgary
Sunny Goyal [Fri, 2 Sep 2016 19:18:52 +0000 (19:18 +0000)]
Merge "Fixing broken accessibility drag" into ub-launcher3-calgary
am: d9033f3ae1

Change-Id: Ib39a4246e3d054d3bb9e88bbeede44471c488e22

7 years agoFixing broken accessibility drag
Sunny Goyal [Fri, 2 Sep 2016 19:18:26 +0000 (19:18 +0000)]
Fixing broken accessibility drag
am: 9be9936653  -s ours

Change-Id: I784cd756542cb5712a7e94bbc2166ddaf35236aa

7 years agoMerge "Fixing overlay scroll state not getting reset properly when scrolling is was...
Sunny Goyal [Fri, 2 Sep 2016 19:16:29 +0000 (19:16 +0000)]
Merge "Fixing overlay scroll state not getting reset properly when scrolling is was cancelled" into ub-launcher3-calgary
am: 7bc4b5bcd4

Change-Id: Ic1a2af3400e49168f37fc89f3cf84bdd60300fd7

7 years agoFixing overlay scroll state not getting reset properly when scrolling is was cancelled
Sunny Goyal [Fri, 2 Sep 2016 19:16:28 +0000 (19:16 +0000)]
Fixing overlay scroll state not getting reset properly when scrolling is was cancelled
am: 538b54c467

Change-Id: Ie03ceb66e211e1e961724b7e94cd6519a2a0012d

7 years agoLandscape container padding update. b/30021487
Hyunyoung Song [Fri, 2 Sep 2016 19:16:28 +0000 (19:16 +0000)]
Landscape container padding update. b/30021487
am: 6cf1e0f36b

Change-Id: I547443f09702d054f4a60c3ed95570b76bb85193

7 years agoMerge "Some optimizations in blur outline generator" into ub-launcher3-calgary-polish
Sunny Goyal [Fri, 2 Sep 2016 19:15:59 +0000 (19:15 +0000)]
Merge "Some optimizations in blur outline generator" into ub-launcher3-calgary-polish

7 years agoMerge "Blocking alpha animation if the initial and final state for the animation...
Sunny Goyal [Fri, 2 Sep 2016 19:14:55 +0000 (19:14 +0000)]
Merge "Blocking alpha animation if the initial and final state for the animation are both 0" into ub-launcher3-calgary

7 years agoMerge "Bug fix in Alarm where it was not getting called correctly if the new timeout...
Sunny Goyal [Fri, 2 Sep 2016 19:14:38 +0000 (19:14 +0000)]
Merge "Bug fix in Alarm where it was not getting called correctly if the new timeout was set that was smaller than the previously set timeout" into ub-launcher3-calgary

7 years agoMerge "Fixing broken accessibility drag" into ub-launcher3-calgary
Sunny Goyal [Fri, 2 Sep 2016 19:13:56 +0000 (19:13 +0000)]
Merge "Fixing broken accessibility drag" into ub-launcher3-calgary

7 years agoMerge "Fixing overlay scroll state not getting reset properly when scrolling is was...
Sunny Goyal [Fri, 2 Sep 2016 19:13:06 +0000 (19:13 +0000)]
Merge "Fixing overlay scroll state not getting reset properly when scrolling is was cancelled" into ub-launcher3-calgary

7 years agoBug fix in Alarm where it was not getting called correctly if the
Sunny Goyal [Sat, 27 Aug 2016 22:33:16 +0000 (15:33 -0700)]
Bug fix in Alarm where it was not getting called correctly if the
new timeout was set that was smaller than the previously set timeout

> Using uptimeMillis in Alarm to avoid errors due to system time
changes
> Adding an extra check in Wait in case Thread.sleep eats up
all the timeout

Change-Id: Id1fac5e8fdb81a0c3c7a6a5e50586b2a2f180d06
(cherry picked from commit a2125e1d102034e1d638b5d1e973b5b77cfe1efd)

7 years agoFixing broken accessibility drag
Sunny Goyal [Wed, 17 Aug 2016 18:11:48 +0000 (11:11 -0700)]
Fixing broken accessibility drag

> Allow touch events on hotseat while in accessible drag as drag now
happens in spring loaded state.
> Allow drop target buttons to ignore thershold check when in
accessibility drag

Bug: 30900444
Change-Id: I88274367983fc027b2ddde3a719ca943f4f48587
(cherry picked from commit 4583d09c0560a83bfd0320299482cc41ac460b0c)

7 years agoLandscape container padding update.
Hyunyoung Song [Tue, 23 Aug 2016 18:06:24 +0000 (11:06 -0700)]
Landscape container padding update.
b/30021487

Change-Id: I179825eba09f3c4c57175e8f6da49708dae1931c
(cherry picked from commit 9d96fd579039d07a6a36887ae699907631014c8d)

7 years agoSome optimizations in blur outline generator
Sunny Goyal [Wed, 31 Aug 2016 23:02:40 +0000 (16:02 -0700)]
Some optimizations in blur outline generator

1) Using ALPHA_8 as the start and end bitmap. This removes one extra
   bitmap generation step
2) Using ByteBuffer on ALPHA_8 bitmap for clipAlpha. This allows us
   to use byteArray instead of intArray for representing pixels

Change-Id: I1b654c439fd491b6b91180ddc562bb97fad857aa

7 years agoFixing overlay scroll state not getting reset properly when
Sunny Goyal [Fri, 12 Aug 2016 19:46:01 +0000 (12:46 -0700)]
Fixing overlay scroll state not getting reset properly when
scrolling is was cancelled

Bug: 30834333
Change-Id: I3605cd2dd939057905d297b5a25ce8669d578125
(cherry picked from commit 4ff424abf91a24b2ef021e12ab4bed434f13cd40)

7 years agoBlocking alpha animation if the initial and final state for the animation
Sunny Goyal [Thu, 11 Aug 2016 19:54:04 +0000 (12:54 -0700)]
Blocking alpha animation if the initial and final state for the animation
are both 0

Bug: 30739854
Change-Id: I4f7c579dc3f64a4fed60d7b2f8ecd5f359e165ec
(cherry picked from commit bf206123a8cfad9f1341b60ff9a138e64b30b6e3)

7 years agoFixing topView not being considered in all places when calculating accessible
Sunny Goyal [Fri, 2 Sep 2016 17:41:43 +0000 (10:41 -0700)]
Fixing topView not being considered in all places when calculating accessible
and focusable views

Bug: 30563273
Change-Id: I6253ce33ee5c328efdde2ea733029975b31e5eb8

7 years agoSome drag and drop code refactor:
Sunny Goyal [Tue, 16 Aug 2016 22:36:48 +0000 (15:36 -0700)]
Some drag and drop code refactor:

1) Adding DragOptions to easily extend drap functionality
2) Changing onDragStarted signature to send more information
3) Updating states for dropTargetButton based on drag event directly
4) Removing folder item based on onDragStarted and not startDrag

Change-Id: I65b684e092ddc081d086bfe2c8c1973ed170eaeb

7 years agoMerge "Support user event logging for drag and drop b/30039490" into ub-launcher3...
Hyunyoung Song [Thu, 1 Sep 2016 21:51:25 +0000 (21:51 +0000)]
Merge "Support user event logging for drag and drop b/30039490" into ub-launcher3-calgary-polish

7 years agoSupport user event logging for drag and drop
Hyunyoung Song [Thu, 1 Sep 2016 19:47:12 +0000 (12:47 -0700)]
Support user event logging for drag and drop
b/30039490

Supported in this CL:
- DnD: drag from container [WORKSPACE|HOTSEAT|FOLDER|ALLAPPS|WIDGETS|DEEPSHORTCUTS]
       drag to container [HOTSEAT,WORKSPACE,FOLDER,DROPTARGETS]
- Source and target can be [FOLDER_ICON, ICON, DEEPSHORTCUT, WIDGET]
- $ adb shell setprop log.tag.UserEvent DEBUG will turn on debugging

Change-Id: I0b8b879b80e6dce85bbde6e7794f9e0677832603

7 years agoMerge "Removing some reflection code" into ub-launcher3-calgary-polish
Sunny Goyal [Thu, 1 Sep 2016 18:48:28 +0000 (18:48 +0000)]
Merge "Removing some reflection code" into ub-launcher3-calgary-polish

7 years agoRemoving some reflection code
Sunny Goyal [Thu, 1 Sep 2016 18:00:49 +0000 (11:00 -0700)]
Removing some reflection code

Change-Id: I8a0a707d69999e5f9911e7d8df7d4a659b3dfb8f

7 years agoUnifying toString() method for various ItemInfo subclasses
Sunny Goyal [Thu, 1 Sep 2016 17:55:20 +0000 (10:55 -0700)]
Unifying toString() method for various ItemInfo subclasses

Change-Id: I7cde42f0df412e2877fb93c77e74ee56a25edead

7 years agoSplitting some methods into individual compat classes
Sunny Goyal [Wed, 31 Aug 2016 21:15:40 +0000 (14:15 -0700)]
Splitting some methods into individual compat classes

Change-Id: Id5a2650b290367d1574eb56346beca389900596b

7 years agoMerge "Adding isDemoUser method in userManager" into ub-launcher3-calgary-polish
Sunny Goyal [Wed, 31 Aug 2016 20:39:53 +0000 (20:39 +0000)]
Merge "Adding isDemoUser method in userManager" into ub-launcher3-calgary-polish

7 years agoAdding isDemoUser method in userManager
Sunny Goyal [Wed, 31 Aug 2016 20:12:40 +0000 (13:12 -0700)]
Adding isDemoUser method in userManager

Change-Id: I0ad2c0e7bfac5eff5e5c95c3e533840921a67dc3

7 years agoMerge "ComponentName null check MUST proceed before creating ComponentKey." into...
Hyunyoung Song [Wed, 31 Aug 2016 18:30:00 +0000 (18:30 +0000)]
Merge "ComponentName null check MUST proceed before creating ComponentKey." into ub-launcher3-calgary-polish

7 years agoPreventing unnecessary setLayout calls in workspace
Sunny Goyal [Tue, 30 Aug 2016 19:05:48 +0000 (12:05 -0700)]
Preventing unnecessary setLayout calls in workspace
Separating getSystemProperty in a separate method

Change-Id: I88716e796e29ac27ef25afa41077a8f29eb65f25

7 years agoMerge "Bug fix in Alarm where it was not getting called correctly if the new timeout...
Sunny Goyal [Tue, 30 Aug 2016 18:47:48 +0000 (18:47 +0000)]
Merge "Bug fix in Alarm where it was not getting called correctly if the new timeout was set that was smaller than the previously set timeout" into ub-launcher3-calgary-polish

7 years agoBug fix in Alarm where it was not getting called correctly if the
Sunny Goyal [Sat, 27 Aug 2016 22:33:16 +0000 (15:33 -0700)]
Bug fix in Alarm where it was not getting called correctly if the
new timeout was set that was smaller than the previously set timeout

> Using uptimeMillis in Alarm to avoid errors due to system time
changes
> Adding an extra check in Wait in case Thread.sleep eats up
all the timeout

Change-Id: Id1fac5e8fdb81a0c3c7a6a5e50586b2a2f180d06

7 years agoUse promisedIntent instead of intent when deep shortcuts are restored.
Tony Wickham [Tue, 30 Aug 2016 00:20:57 +0000 (00:20 +0000)]
Use promisedIntent instead of intent when deep shortcuts are restored.
am: def6e474da

Change-Id: I634bb0b13cb2449da159b4c8d23b4ddcf32f09ac

7 years agoUse promisedIntent instead of intent when deep shortcuts are restored.
Tony Wickham [Mon, 29 Aug 2016 22:17:48 +0000 (15:17 -0700)]
Use promisedIntent instead of intent when deep shortcuts are restored.

This ensures that the intent has the package corresponding to the
shortcut publisher, rather than a market intent. It also ensures that
the intent has the EXTRA_SHORTCUT_ID attached.

Bug: 31123204

Change-Id: I05d56396b629880322e915f52bfc0605b921b0b1
(cherry picked from commit fc02c1b446ee54561ac7351fb6ff0f8294785f0e)

7 years agoMerge "Use promisedIntent instead of intent when deep shortcuts are restored." into...
Tony Wickham [Mon, 29 Aug 2016 23:38:03 +0000 (23:38 +0000)]
Merge "Use promisedIntent instead of intent when deep shortcuts are restored." into ub-launcher3-calgary-polish

7 years agoUse promisedIntent instead of intent when deep shortcuts are restored.
Tony Wickham [Mon, 29 Aug 2016 22:17:48 +0000 (15:17 -0700)]
Use promisedIntent instead of intent when deep shortcuts are restored.

This ensures that the intent has the package corresponding to the
shortcut publisher, rather than a market intent. It also ensures that
the intent has the EXTRA_SHORTCUT_ID attached.

Bug: 31123204

Change-Id: I05d56396b629880322e915f52bfc0605b921b0b1

7 years agoComponentName null check MUST proceed before creating ComponentKey.
Hyunyoung Song [Mon, 29 Aug 2016 21:43:53 +0000 (14:43 -0700)]
ComponentName null check MUST proceed before creating ComponentKey.

Change-Id: I2460561b62d77d3f2f17dc2a7db765785b46a8c6

7 years agoAdding a debug flag to prevent broken downlodas from getting removed during
Sunny Goyal [Mon, 29 Aug 2016 17:06:57 +0000 (10:06 -0700)]
Adding a debug flag to prevent broken downlodas from getting removed during
restore

After setting this flag apps do not need to have an active settion during restore
which would simplyfy debugging backup-restore bugs.

Change-Id: I89f2d3ec677281887f8bab8559ace991709caadc

7 years agoFixing wrong label in the AndroidManifest
Sunny Goyal [Fri, 26 Aug 2016 05:21:40 +0000 (22:21 -0700)]
Fixing wrong label in the AndroidManifest
Updating the gradle and protobuf library version

Change-Id: I0470ebe7465cf2f04ef59688ac2b3f4933d48ad1

7 years agoMerge "Improve handling of external deletion in LauncherProvider.delete" into ub...
Sunny Goyal [Fri, 26 Aug 2016 02:45:38 +0000 (02:45 +0000)]
Merge "Improve handling of external deletion in LauncherProvider.delete" into ub-launcher3-calgary-polish

7 years agoUpdating the workspace scrim
Sunny Goyal [Thu, 25 Aug 2016 23:14:44 +0000 (16:14 -0700)]
Updating the workspace scrim
The scrim is only drawn on the top in both normal & transposed layout

Bug: 29189114
Change-Id: I99bbf4c4a73e172e000ef24af0662e1922592e0a

7 years agoMerge "Moving the scrim to draglayer" into ub-launcher3-calgary-polish
Sunny Goyal [Thu, 25 Aug 2016 22:49:23 +0000 (22:49 +0000)]
Merge "Moving the scrim to draglayer" into ub-launcher3-calgary-polish

7 years agoStarting the settings activity with same animation as wallpaper (and widgets tray)
Sunny Goyal [Thu, 25 Aug 2016 16:45:14 +0000 (09:45 -0700)]
Starting the settings activity with same animation as wallpaper (and widgets tray)

Change-Id: I7744d50c9762200eb2ffea37d8435c9bc221c526

7 years agoMerge "Prevent against NPE inside ComponentKey" into ub-launcher3-calgary-polish
Hyunyoung Song [Wed, 24 Aug 2016 23:30:04 +0000 (23:30 +0000)]
Merge "Prevent against NPE inside ComponentKey" into ub-launcher3-calgary-polish

7 years agoPrevent against NPE inside ComponentKey
Hyunyoung Song [Wed, 24 Aug 2016 23:23:09 +0000 (16:23 -0700)]
Prevent against NPE inside ComponentKey

b/31063280

Change-Id: I71254fc1a3244fd6834ebf65923d194f17afc1ba

7 years agoFixing the hotseat import logic
Sunny Goyal [Wed, 24 Aug 2016 23:02:08 +0000 (23:02 +0000)]
Fixing the hotseat import logic
am: d70ef24233

Change-Id: I1be426419d7a7f044dfd81207c3ee3b1df43b404

7 years agoFixing the hotseat import logic
Sunny Goyal [Wed, 24 Aug 2016 18:30:33 +0000 (11:30 -0700)]
Fixing the hotseat import logic

The import logic following the behavior: Improt everything and force
run GridMigrationTask to automatically remove broken icons.
This logic would fail for hotseat as the replacement happens before
the GridMigrationTask, which will not replace the broken targets
appropriately

The cl changes some logic only for hotseat import
> After import remove any broken icons/empty folders
> When adding default icons, only add as much icons as required. Since
GridMigrationTask uses weights, it sometimes removes imported icon, if
the hotseat size becomes too large.

Bug: 30909630
Change-Id: I6ca1f25dac81649794d81aaf82c3c38d1c918d91

7 years agoMerge "Comparing widget sizes when sorting if the labels are same" into ub-launcher3...
Sunny Goyal [Wed, 24 Aug 2016 02:16:48 +0000 (02:16 +0000)]
Merge "Comparing widget sizes when sorting if the labels are same" into ub-launcher3-calgary-polish

7 years agoMoving the scrim to draglayer
Sunny Goyal [Fri, 19 Aug 2016 17:50:12 +0000 (10:50 -0700)]
Moving the scrim to draglayer

> This causes the scrim to animate with the content on first launch
> Also removing the logic to disable scrim based on state. That
logic was only executing onResume which could lead to an invalid state

Bug: 30972956
Bug: 30576826

Change-Id: Ia8386b303ce260f69e3b3b93041226f409301a01

7 years agoChecking for duplicate intent with proper source bounds.
Sunny Goyal [Wed, 24 Aug 2016 00:55:07 +0000 (00:55 +0000)]
Checking for duplicate intent with proper source bounds.
am: 92cb84d4e5

Change-Id: I934ffa4fbb1a9be31d19f69554092af77fe06612

7 years agoChecking for duplicate intent with proper source bounds.
Sunny Goyal [Tue, 23 Aug 2016 20:25:58 +0000 (13:25 -0700)]
Checking for duplicate intent with proper source bounds.

Since we are doing a equality check on the intent, items which already have
the bounds attached to the intent will not get matched, causing duplicate
icons

Bug: 27176189
Change-Id: Ia9ed9120b04e9c234304995aed13777a5773119e
(cherry picked from commit cbfe71dba38af1d1cd2d2372b649537d7d94610b)

7 years agoChecking for duplicate intent with proper source bounds.
Sunny Goyal [Tue, 23 Aug 2016 20:25:58 +0000 (13:25 -0700)]
Checking for duplicate intent with proper source bounds.

Since we are doing a equality check on the intent, items which already have
the bounds attached to the intent will not get matched, causing duplicate
icons

Bug: 27176189
Change-Id: Ia9ed9120b04e9c234304995aed13777a5773119e