OSDN Git Service

android-x86/packages-apps-Launcher3.git
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

7 years agoMerge "Adding a resource pointer to the app name so that derived projects can easily...
Sunny Goyal [Tue, 23 Aug 2016 20:04:52 +0000 (20:04 +0000)]
Merge "Adding a resource pointer to the app name so that derived projects can easily modify app name" into ub-launcher3-calgary-polish

7 years agoMerge "Landscape container padding update. b/30021487" into ub-launcher3-calgary...
Hyunyoung Song [Tue, 23 Aug 2016 18:11:24 +0000 (18:11 +0000)]
Merge "Landscape container padding update. b/30021487" into ub-launcher3-calgary-polish

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

7 years agoAdding a resource pointer to the app name so that derived projects can
Sunny Goyal [Mon, 22 Aug 2016 23:45:29 +0000 (16:45 -0700)]
Adding a resource pointer to the app name so that derived projects can
easily modify app name

Change-Id: I3f301e1b2ba38d0a45d220bb628dcfdf3906246c

7 years agoCancel hotseat color animator before setting a new color.
Tony Wickham [Mon, 22 Aug 2016 23:23:09 +0000 (23:23 +0000)]
Cancel hotseat color animator before setting a new color.
am: ef0c537925

Change-Id: I1aea3e288d7e54e788ad95b8599e6d909458b220

7 years agoCancel hotseat color animator before setting a new color.
Tony Wickham [Mon, 22 Aug 2016 22:23:01 +0000 (15:23 -0700)]
Cancel hotseat color animator before setting a new color.

There was a race condition that caused the new color to not be
applied. For example, here's how the hotseat would become transparent:
1 Launcher is loaded for the first time; as such, there is not yet a
  color defined for the hotseat, so we start animating to the provided
  default (Color.TRANSPARENT). Meanwhile we start the color extraction.
2 When the color extraction finishes, we set the hotseat to the new
  color. However, if launcher is paused at the time (perhaps some
  retail mode content is showing), then we don't animate the change.
3 If 2 happens before the animation in 1 is complete, the color from
  2 will be overriden by subsequent animation frames and thus the
  hotseat remains transparent until the wallpaper changes.

Bug: 30956221
Change-Id: Iddf72379b0162f1b32883ad26ce267473e172849

7 years agoComparing widget sizes when sorting if the labels are same
Sunny Goyal [Fri, 19 Aug 2016 00:01:24 +0000 (17:01 -0700)]
Comparing widget sizes when sorting if the labels are same

Bug: 21441837
Change-Id: Ib0e6d3b84389f900264a0d696d22057426973719

7 years agoRemoving wrong dead code around direction matching
Sunny Goyal [Thu, 18 Aug 2016 22:01:11 +0000 (15:01 -0700)]
Removing wrong dead code around direction matching

Change-Id: Ic8349fcac4bfe6222b1cbf26e8cbb1810dc32298

7 years agoFixing allApps UI not extending to statusbar & navbar on tablets
Sunny Goyal [Thu, 18 Aug 2016 18:33:08 +0000 (11:33 -0700)]
Fixing allApps UI not extending to statusbar & navbar on tablets

AllApps UI on tablets includes the extra gray bottom bar at the bottom
for nav-bar background protection, and should overlay the nav bar

Change-Id: Idb138b714c34de5510eb9aedfcefb22c9189eee4

7 years agoMerge "Adding support for pending widgets in AutoInstall layout" into ub-launcher3...
Sunny Goyal [Wed, 17 Aug 2016 23:02:42 +0000 (23:02 +0000)]
Merge "Adding support for pending widgets in AutoInstall layout" into ub-launcher3-calgary-polish

7 years agoMerge "Fixing broken accessibility drag" into ub-launcher3-calgary-polish
Sunny Goyal [Wed, 17 Aug 2016 20:53:58 +0000 (20:53 +0000)]
Merge "Fixing broken accessibility drag" into ub-launcher3-calgary-polish

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

7 years agoMerge "Import translations. DO NOT MERGE" into ub-launcher3-calgary
Bill Yi [Tue, 16 Aug 2016 21:07:34 +0000 (21:07 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary
am: c9efe2ba9c  -s ours

Change-Id: I1fbfd1be22e96d99d05a76e480fc6dca290bc519

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 16 Aug 2016 21:07:34 +0000 (21:07 +0000)]
Import translations. DO NOT MERGE
am: 2deaba905f  -s ours

Change-Id: I4d456a029be23f5a716cac7b3132cdf82f27bac9

7 years agoImprove handling of external deletion in LauncherProvider.delete
Louis Begin [Mon, 15 Aug 2016 22:18:41 +0000 (15:18 -0700)]
Improve handling of external deletion in LauncherProvider.delete

When deleting a widget, ensure that we also delete the corresponding
widget from the system server

Bug 30835877

Change-Id: I7d539c2d37ef53086d09ae128f7278941f804aeb

7 years agoAdding support for pending widgets in AutoInstall layout
Sunny Goyal [Wed, 10 Aug 2016 22:03:22 +0000 (15:03 -0700)]
Adding support for pending widgets in AutoInstall layout

> Pending widgets whill show a loading progress while the app
is being installed.
> Extra bind options can be defined using the tub tags
    <extra key="key-name" value="key-value" />
  These are sent as widget options when the widget is bound.
> If the widget has any config activity, it is not shown
> Required attributes:
   className, packageName, x, y, spanY, spanY & screen

Bug: 30279609
Change-Id: I1338618bfa5d86967339dffb68c12b1add6eb5d7

7 years agoMerge "Blocking alpha animation if the initial and final state for the animation...
Sunny Goyal [Tue, 16 Aug 2016 17:49:46 +0000 (17:49 +0000)]
Merge "Blocking alpha animation if the initial and final state for the animation are both 0" into ub-launcher3-calgary-polish

7 years agoMerge "Moving the state changes during drag-n-drop from startDrag to onDragStart...
Sunny Goyal [Tue, 16 Aug 2016 17:47:59 +0000 (17:47 +0000)]
Merge "Moving the state changes during drag-n-drop from startDrag to onDragStart" into ub-launcher3-calgary-polish

7 years agoMerge "Import translations. DO NOT MERGE" into ub-launcher3-calgary-polish
TreeHugger Robot [Tue, 16 Aug 2016 15:35:22 +0000 (15:35 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary-polish

7 years agoMerge "Import translations. DO NOT MERGE" into ub-launcher3-calgary
TreeHugger Robot [Tue, 16 Aug 2016 15:35:19 +0000 (15:35 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary

7 years agoMerge "Updating version check to use SDK_INT" into ub-launcher3-calgary
Sunny Goyal [Tue, 16 Aug 2016 02:51:10 +0000 (02:51 +0000)]
Merge "Updating version check to use SDK_INT" into ub-launcher3-calgary
am: 6fbdc09e1c

Change-Id: I07d87b14a1ef22c035ff8074a1649ead32a4b728

7 years agoUpdating version check to use SDK_INT
Sunny Goyal [Tue, 16 Aug 2016 02:51:10 +0000 (02:51 +0000)]
Updating version check to use SDK_INT
am: a9206128a2

Change-Id: If87c82149d086c056e6116a313519833c38a77dd

7 years agoMerge "Updating version check to use SDK_INT" into ub-launcher3-calgary
Sunny Goyal [Tue, 16 Aug 2016 02:44:51 +0000 (02:44 +0000)]
Merge "Updating version check to use SDK_INT" into ub-launcher3-calgary

7 years agoUpdating version check to use SDK_INT
Sunny Goyal [Tue, 16 Aug 2016 02:34:37 +0000 (19:34 -0700)]
Updating version check to use SDK_INT

Change-Id: Idb46053e7304bc8d0cab03a17a6fe73013e4f092

7 years ago[DO NOT MERGE] Set launch source target correctly for user event logging
Hyunyoung Song [Tue, 16 Aug 2016 02:10:38 +0000 (02:10 +0000)]
[DO NOT MERGE] Set launch source target correctly for user event logging
am: 5a17fe6ca0  -s ours

Change-Id: I08c7d7ca433577cc676b5ed005af03dd2110e8a1

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 16 Aug 2016 01:00:59 +0000 (18:00 -0700)]
Import translations. DO NOT MERGE

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

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 16 Aug 2016 00:59:41 +0000 (17:59 -0700)]
Import translations. DO NOT MERGE

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

7 years ago[DO NOT MERGE] Set launch source target correctly for user event logging
Hyunyoung Song [Mon, 15 Aug 2016 23:22:20 +0000 (16:22 -0700)]
[DO NOT MERGE] Set launch source target correctly for user event logging

Before, everything is set to APP_ICON
With this changed, pinned shortcuts are set to DEEPSHORTCUT

Change-Id: I3e17de63f58693525236290ef5cb1f909f1d6098
(cherry picked from commit 8ce6063c4a5bd90810f0a21c946e5bbad3ce9de4)

7 years agoMerge "Set launch source target correctly for user event logging" into ub-launcher3...
Hyunyoung Song [Tue, 16 Aug 2016 00:39:55 +0000 (00:39 +0000)]
Merge "Set launch source target correctly for user event logging" into ub-launcher3-calgary-polish

7 years agoSet launch source target correctly for user event logging
Hyunyoung Song [Mon, 15 Aug 2016 23:22:20 +0000 (16:22 -0700)]
Set launch source target correctly for user event logging

Before, everything is set to APP_ICON
With this changed, pinned shortcuts are set to DEEPSHORTCUT

Change-Id: I3e17de63f58693525236290ef5cb1f909f1d6098

7 years agoMerge "Ignore clicks on shortcuts' drag handles." into ub-launcher3-calgary
Tony Wickham [Mon, 15 Aug 2016 23:15:27 +0000 (23:15 +0000)]
Merge "Ignore clicks on shortcuts' drag handles." into ub-launcher3-calgary
am: e8882f7d27

Change-Id: I68b3f7ca4aca025962fb0e1e1206b07c2ff1b8d1

7 years agoIgnore clicks on shortcuts' drag handles.
Tony Wickham [Mon, 15 Aug 2016 23:15:27 +0000 (23:15 +0000)]
Ignore clicks on shortcuts' drag handles.
am: e04a07f6ac

Change-Id: I96360a63524edeff3e2aa9b21707c1c81a79012f

7 years agoMerge "Ignore clicks on shortcuts' drag handles." into ub-launcher3-calgary
Tony Wickham [Mon, 15 Aug 2016 22:52:56 +0000 (22:52 +0000)]
Merge "Ignore clicks on shortcuts' drag handles." into ub-launcher3-calgary

7 years agoIgnore clicks on shortcuts' drag handles.
Tony Wickham [Tue, 9 Aug 2016 23:27:57 +0000 (16:27 -0700)]
Ignore clicks on shortcuts' drag handles.

When touching down within the drag handle's bounds, we remove the
onClickListener temporarily (restored when touching down outside
of the drag handle's bounds). Long clicks still start the drag.

Also increased drag threshold from 12dp to 16dp.

Bug: 30816665

Change-Id: I0b33dc34bf95c0532376f2f7cf50865fa50093de

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

7 years agoMerge "Moving the shortcut application logic to the DeepShortcutView. This makes...
Sunny Goyal [Mon, 15 Aug 2016 17:13:16 +0000 (17:13 +0000)]
Merge "Moving the shortcut application logic to the DeepShortcutView. This makes the logic for accessing various properties consistant and and ties it to the UI of the DeepShortcutView." into ub-launcher3-calgary-polish

7 years agoMoving the state changes during drag-n-drop from startDrag to onDragStart
Sunny Goyal [Thu, 11 Aug 2016 23:02:02 +0000 (16:02 -0700)]
Moving the state changes during drag-n-drop from startDrag to onDragStart

This will allow drag controller to optinally defer drag, based on some
threshold, by simply deferring the callback onDragStart

Change-Id: I17c06a15e2092b9797c7e57529b12a53d2acae6e

7 years agoMerge "Log shortcuts open on ACTION_UP instead of in showForIcon()." into ub-launcher...
Hyunyoung Song [Fri, 12 Aug 2016 20:36:41 +0000 (20:36 +0000)]
Merge "Log shortcuts open on ACTION_UP instead of in showForIcon()." into ub-launcher3-calgary
am: 650cd2377b

Change-Id: Iac4e32b44e260a17e7be8f92ec2fae250d89ac1f

7 years agoLog shortcuts open on ACTION_UP instead of in showForIcon().
Tony Wickham [Fri, 12 Aug 2016 20:36:40 +0000 (20:36 +0000)]
Log shortcuts open on ACTION_UP instead of in showForIcon().
am: be06874c81

Change-Id: Iefc3b03644c2c197f0b744bb9f42fd3058624377

7 years agoMerge "Log shortcuts open on ACTION_UP instead of in showForIcon()." into ub-launcher...
Hyunyoung Song [Fri, 12 Aug 2016 20:31:13 +0000 (20:31 +0000)]
Merge "Log shortcuts open on ACTION_UP instead of in showForIcon()." into ub-launcher3-calgary

7 years agoMerge "Fixing overlay scroll state not getting reset properly when scrolling is was...
Sunny Goyal [Fri, 12 Aug 2016 20:20:08 +0000 (20:20 +0000)]
Merge "Fixing overlay scroll state not getting reset properly when scrolling is was cancelled" into ub-launcher3-calgary-polish

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