OSDN Git Service

android-x86/packages-apps-Launcher3.git
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 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 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 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 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: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 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 "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 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 agoImport translations. DO NOT MERGE
Bill Yi [Thu, 11 Aug 2016 22:03:42 +0000 (15:03 -0700)]
Import translations. DO NOT MERGE

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

7 years agoforce a blank spin
Surendra Vispute [Thu, 11 Aug 2016 21:55:15 +0000 (14:55 -0700)]
force a blank spin

7 years agoLog shortcuts open on ACTION_UP instead of in showForIcon().
Tony Wickham [Wed, 10 Aug 2016 23:06:22 +0000 (16:06 -0700)]
Log shortcuts open on ACTION_UP instead of in showForIcon().

- We only want to log when the container is opened and potentially
  used, not when a long press is followed by a drag-and-drop.
- Also cleaned up code that was determining the container of the
  app icon, since LaunchSourceProvider.fillInLaunchSourceData()
  can do that instead (it's more robust and consistent).

Bug: 30791570
Change-Id: I05b6750f26182fda8a9940ac66f1371c2d228ca9

7 years agoMerge "Reloading workspace when the shortcuts permission changes" into ub-launcher3...
Sunny Goyal [Thu, 11 Aug 2016 00:01:46 +0000 (00:01 +0000)]
Merge "Reloading workspace when the shortcuts permission changes" into ub-launcher3-calgary

7 years agoReloading workspace when the shortcuts permission changes
Sunny Goyal [Wed, 10 Aug 2016 23:09:29 +0000 (16:09 -0700)]
Reloading workspace when the shortcuts permission changes

> Check for permission on every onResume
> If the permission is different than last known permission,
reload and rebind workspace.

Bug: 30789422
Change-Id: Idfa445815e29e2336505779545507d106b33a253

7 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 10 Aug 2016 15:16:45 +0000 (08:16 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Change drag from shortcuts to say "Cancel" instead of "Remove"" into ub-launch...
Tony Wickham [Tue, 9 Aug 2016 21:52:42 +0000 (21:52 +0000)]
Merge "Change drag from shortcuts to say "Cancel" instead of "Remove"" into ub-launcher3-calgary

7 years agoChange drag from shortcuts to say "Cancel" instead of "Remove"
Tony Wickham [Tue, 9 Aug 2016 18:07:46 +0000 (11:07 -0700)]
Change drag from shortcuts to say "Cancel" instead of "Remove"

Bug: 30757836
Change-Id: I7d2d97898bd1feac3cd7ba15614c29a1e1b33841

7 years agoMerge "Make padding consistent between shortcuts and the app icon." into ub-launcher3...
Tony Wickham [Mon, 8 Aug 2016 21:03:29 +0000 (21:03 +0000)]
Merge "Make padding consistent between shortcuts and the app icon." into ub-launcher3-calgary

7 years agoMerge "Forcing drag layer to be non accessible. Setting a touch delegate makes a...
Sunny Goyal [Mon, 8 Aug 2016 18:00:23 +0000 (18:00 +0000)]
Merge "Forcing drag layer to be non accessible. Setting a touch delegate makes a view to become accessible, if its set to auto. This was making drayLayer accessible causing Talkback to speak out every item on the draglayer when window focus changes" into ub-launcher3-calgary

7 years agoFixing potential ConcurrentModificationException
Sunny Goyal [Mon, 8 Aug 2016 17:10:01 +0000 (10:10 -0700)]
Fixing potential ConcurrentModificationException

mBgDeepShortcutMap is only accessed on the background thread. But
the same instance of list of values was getting passed to the UI
thread, instead of being cloned.

Change-Id: Ie7d0442d895304489ce9323ea872b9091d668ae5

7 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 8 Aug 2016 05:37:00 +0000 (22:37 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Pull down should work on search box, even if all apps scroll is not at top...
Hyunyoung Song [Fri, 5 Aug 2016 21:13:08 +0000 (21:13 +0000)]
Merge "Pull down should work on search box, even if all apps scroll is not at top. b/30295305" into ub-launcher3-calgary

7 years agoPull down should work on search box, even if all apps scroll is not at top.
Hyunyoung Song [Fri, 5 Aug 2016 20:57:21 +0000 (13:57 -0700)]
Pull down should work on search box, even if all apps scroll is not at top.
b/30295305

Change-Id: I38bbe47d6e33929c550930c9f157c58fbea203ef

7 years agoMerge "Fix hotseat flicker when opened all apps in landscape, rotate screen, pull...
Hyunyoung Song [Fri, 5 Aug 2016 18:33:13 +0000 (18:33 +0000)]
Merge "Fix hotseat flicker when opened all apps in landscape, rotate screen, pull down" into ub-launcher3-calgary

7 years agoMake padding consistent between shortcuts and the app icon.
Tony Wickham [Tue, 2 Aug 2016 22:50:44 +0000 (15:50 -0700)]
Make padding consistent between shortcuts and the app icon.

This change makes the padding consistent regardless of where the app
is (e.g. folder vs workspace vs all apps) by ignoring the app's
padding and adding our own to the shortcuts container.

Also note that this padding is relative to the icon, excluding the
text beneath it. So we also hide the text when the container opens
downwards, and re-show it when the container closes.

Bug: 30604007
Change-Id: I6e51c4983a8b5d495833f86e483ebaa229ed2099

7 years agoMerge "Change NavBar to transparent black b/30615471" into ub-launcher3-calgary
Hyunyoung Song [Fri, 5 Aug 2016 18:02:14 +0000 (18:02 +0000)]
Merge "Change NavBar to transparent black b/30615471" into ub-launcher3-calgary

7 years agoChange NavBar to transparent black
Hyunyoung Song [Fri, 5 Aug 2016 17:59:17 +0000 (10:59 -0700)]
Change NavBar to transparent black
b/30615471

Change-Id: I7885e8a7fd63ee10c9b0107087046730e8acfde9

7 years agoMerge "Use shortcut disabled message if available." into ub-launcher3-calgary
Tony Wickham [Fri, 5 Aug 2016 17:57:35 +0000 (17:57 +0000)]
Merge "Use shortcut disabled message if available." into ub-launcher3-calgary

7 years agoUse shortcut disabled message if available.
Tony Wickham [Thu, 4 Aug 2016 23:34:49 +0000 (16:34 -0700)]
Use shortcut disabled message if available.

Bug: 30681210
Change-Id: Ibb5fd58e5fc9557b63730bc1e3c3977133769466

7 years agoForcing drag layer to be non accessible.
Sunny Goyal [Fri, 5 Aug 2016 00:55:35 +0000 (17:55 -0700)]
Forcing drag layer to be non accessible.
Setting a touch delegate makes a view to become accessible, if its set to auto.
This was making drayLayer accessible causing Talkback to speak out every item
on the draglayer when window focus changes

Bug: 30670702
Change-Id: Ifcba4c02b124166f9ca69c4244b9d20d7a7acaa5

7 years agoFix hotseat flicker when opened all apps in landscape, rotate screen, pull down
Hyunyoung Song [Thu, 4 Aug 2016 22:48:42 +0000 (15:48 -0700)]
Fix hotseat flicker when opened all apps in landscape, rotate screen, pull down

b/30595452

Change-Id: Ib634ffbc509c6b16ac58c184ccbca15ae936be14

7 years agoReduce distance to start deferred drag from shortcuts to 12dp.
Tony Wickham [Thu, 4 Aug 2016 22:38:26 +0000 (15:38 -0700)]
Reduce distance to start deferred drag from shortcuts to 12dp.

Change-Id: Ida298760bb66b5894dab94ff4ccaa788c8604661

7 years agoMerge "Reset mActiveController to null in DragLayer.onInterceptTouchEvent()." into...
Tony Wickham [Thu, 4 Aug 2016 21:09:29 +0000 (21:09 +0000)]
Merge "Reset mActiveController to null in DragLayer.onInterceptTouchEvent()." into ub-launcher3-calgary

7 years agoAdding support for updating the pinned shortcuts without updating
Sunny Goyal [Thu, 4 Aug 2016 19:03:52 +0000 (12:03 -0700)]
Adding support for updating the pinned shortcuts without updating
the ID map

Bug: 30654182
Change-Id: I30082bd87466a29b7bafe1e8cbf1446e1d1e4f3e

7 years agoReset mActiveController to null in DragLayer.onInterceptTouchEvent().
Tony Wickham [Thu, 4 Aug 2016 18:52:18 +0000 (11:52 -0700)]
Reset mActiveController to null in DragLayer.onInterceptTouchEvent().

Otherwise the previous active controller will continue to handle touch
events even if it doesn't re-intercept future touches. For instance,
All Apps was handling the swipe gesture after DragLayer intercepted to
close a shortcuts container, which led to the weird behavior described
in the bug.

Bug: 30590854
Change-Id: I247b39b03d336a04659f6ce644380bf3cef8de3f

7 years agoMerge "Prevent refreshing app search results with empty query." into ub-launcher3...
Winson Chung [Thu, 4 Aug 2016 17:12:27 +0000 (17:12 +0000)]
Merge "Prevent refreshing app search results with empty query." into ub-launcher3-calgary

7 years agoMerge "Import translations. DO NOT MERGE" into ub-launcher3-calgary
TreeHugger Robot [Thu, 4 Aug 2016 09:25:09 +0000 (09:25 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary

7 years agoPrevent refreshing app search results with empty query.
Winson [Thu, 4 Aug 2016 00:08:10 +0000 (17:08 -0700)]
Prevent refreshing app search results with empty query.

- Any change to the TextView text will cause mQuery to be set,
  which will cause a new search next time refreshSearchResult
  is called.  We should also be checking there if it is a valid
  search query before starting a new search.

Bug: 30606307
Change-Id: I08640c56199211f2aeea2386fcf699810853ab58

7 years agoMerge "Change interpolation logic to all apps transitioning on fling b/30486958"...
Hyunyoung Song [Wed, 3 Aug 2016 22:28:30 +0000 (22:28 +0000)]
Merge "Change interpolation logic to all apps transitioning on fling b/30486958" into ub-launcher3-calgary

7 years agoChange interpolation logic to all apps transitioning on fling
Hyunyoung Song [Wed, 3 Aug 2016 22:14:43 +0000 (15:14 -0700)]
Change interpolation logic to all apps transitioning on fling
b/30486958

Cleaning up/refactoring this CL will be done in polish branch.

Change-Id: Ib51633a1e1cb79f58b505f835053ef238ae1bdec

7 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 3 Aug 2016 21:22:25 +0000 (14:22 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Disabling accessibility focus on all children when shortcuts is open" into...
Sunny Goyal [Wed, 3 Aug 2016 20:19:41 +0000 (20:19 +0000)]
Merge "Disabling accessibility focus on all children when shortcuts is open" into ub-launcher3-calgary

7 years agoMerge "Start shortcuts close animation where open left off." into ub-launcher3-calgary
Tony Wickham [Wed, 3 Aug 2016 20:09:44 +0000 (20:09 +0000)]
Merge "Start shortcuts close animation where open left off." into ub-launcher3-calgary

7 years agoMerge "Align shortcut text with view start." into ub-launcher3-calgary
Tony Wickham [Wed, 3 Aug 2016 19:27:53 +0000 (19:27 +0000)]
Merge "Align shortcut text with view start." into ub-launcher3-calgary

7 years agoAlign shortcut text with view start.
Tony Wickham [Wed, 3 Aug 2016 17:43:50 +0000 (10:43 -0700)]
Align shortcut text with view start.

Bug: 30401505
Change-Id: Iffaa0a01f2c2983a085d8c9d4be36fc063ae2004

7 years agoMerge "Fix disco bounce crash b/30413641" into ub-launcher3-calgary
Hyunyoung Song [Wed, 3 Aug 2016 17:42:48 +0000 (17:42 +0000)]
Merge "Fix disco bounce crash b/30413641" into ub-launcher3-calgary

7 years agoFix disco bounce crash
Hyunyoung Song [Wed, 3 Aug 2016 17:40:18 +0000 (10:40 -0700)]
Fix disco bounce crash
b/30413641

Change-Id: Icb2f3f11024daa78c3f59cab8c773091b9481feb

7 years agoDisabling accessibility focus on all children when shortcuts is open
Sunny Goyal [Wed, 3 Aug 2016 17:31:11 +0000 (10:31 -0700)]
Disabling accessibility focus on all children when shortcuts is open

Bug: 30611791
Change-Id: Ibb1dec13b62add3799c215fea98e87e3fa89638d

7 years agoSimpler caret
Peter Schiller [Sat, 30 Jul 2016 00:05:30 +0000 (17:05 -0700)]
Simpler caret

Bug: 30527159
Change-Id: I674de149e613c7adb567a13a288baa9877d36112

7 years agoUpdating content description for the shortcuts menu and announcing
Sunny Goyal [Tue, 2 Aug 2016 23:15:37 +0000 (16:15 -0700)]
Updating content description for the shortcuts menu and announcing
it when the container is opened

Bug: 30587453
Change-Id: I6f2d3ba05593f3e2a1a8f05c66a0f80e76932c38

7 years agoMerge "Update shortcuts font to match spec." into ub-launcher3-calgary
Tony Wickham [Tue, 2 Aug 2016 21:27:50 +0000 (21:27 +0000)]
Merge "Update shortcuts font to match spec." into ub-launcher3-calgary

7 years agoMerge "Add container velocity for all apps to be used by the caret" into ub-launcher3...
Hyunyoung Song [Tue, 2 Aug 2016 20:36:17 +0000 (20:36 +0000)]
Merge "Add container velocity for all apps to be used by the caret" into ub-launcher3-calgary

7 years agoAdd container velocity for all apps to be used by the caret
Hyunyoung Song [Tue, 2 Aug 2016 20:31:22 +0000 (13:31 -0700)]
Add container velocity for all apps to be used by the caret

Change-Id: I03479d53eb7203ab4a0515e2bf68b917dfb81f23

7 years agoMerge "Adding workaround to jump in wallpaper offsets." into ub-launcher3-calgary
Winson Chung [Tue, 2 Aug 2016 20:01:31 +0000 (20:01 +0000)]
Merge "Adding workaround to jump in wallpaper offsets." into ub-launcher3-calgary

7 years agoAdding workaround to jump in wallpaper offsets.
Winson [Tue, 2 Aug 2016 19:03:34 +0000 (12:03 -0700)]
Adding workaround to jump in wallpaper offsets.

- Just skip the animation if we are animating to the same wallpaper
  offset (which is the case when we are adding from all apps)

Bug: 28587903
Change-Id: Ib7b1828c1b099a665d68c22cb33ee62693f33f35

7 years agoUpdate shortcuts font to match spec.
Tony Wickham [Tue, 2 Aug 2016 18:53:07 +0000 (11:53 -0700)]
Update shortcuts font to match spec.

Bug: 30594316
Change-Id: I9de1068a502e9f441f2609d114595b7513f20cad

7 years agoMerge "Always cancel forwarding on ACTION_UP or ACTION_CANCEL." into ub-launcher3...
Tony Wickham [Tue, 2 Aug 2016 18:10:00 +0000 (18:10 +0000)]
Merge "Always cancel forwarding on ACTION_UP or ACTION_CANCEL." into ub-launcher3-calgary

7 years agoStart shortcuts close animation where open left off.
Tony Wickham [Fri, 29 Jul 2016 18:22:21 +0000 (11:22 -0700)]
Start shortcuts close animation where open left off.

- Before we always started the close animation at 0 instead of
  the previous open progress, which looked janky.
- Shortened the animations' durations and start delays to
  account for the fact that the open animation was only
  partially finished when the close animation started.

Bug: 30465231
Change-Id: I958ee5f4543dbf1185f3d0229c55fc1b51929655

7 years agoMerge "Handling IllegalStateException which can be thrown by the system when the...
Sunny Goyal [Tue, 2 Aug 2016 17:04:44 +0000 (17:04 +0000)]
Merge "Handling IllegalStateException which can be thrown by the system when the user is locked" into ub-launcher3-calgary

7 years agoMerge "Import translations. DO NOT MERGE" into ub-launcher3-calgary
TreeHugger Robot [Tue, 2 Aug 2016 09:53:38 +0000 (09:53 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary

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

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

7 years agoMerge "Add logging for shortcuts opening." into ub-launcher3-calgary
Tony Wickham [Tue, 2 Aug 2016 00:56:57 +0000 (00:56 +0000)]
Merge "Add logging for shortcuts opening." into ub-launcher3-calgary

7 years agoAdd logging for shortcuts opening.
Tony Wickham [Mon, 1 Aug 2016 23:42:19 +0000 (16:42 -0700)]
Add logging for shortcuts opening.

- Log as long press with child type DEEPSHORTCUTS container
- Parent type can be one of WORKSPACE, HOTSEAT, FOLDER,
  ALLAPPS, PREDICTION, or SEARCHRESULT.

Bug: 30537079
Change-Id: Ie62e4889ee06c845f959ca998781787a7fdaf00e

7 years agoHandling IllegalStateException which can be thrown by the system when the user is...
Sunny Goyal [Mon, 1 Aug 2016 22:45:49 +0000 (15:45 -0700)]
Handling IllegalStateException which can be thrown by the system when the user is locked

Bug: 30411561
Change-Id: I0d7fc0aaecba01b1aaac95b98654f6e3ee090ce8

7 years agoMerge "Adding quiet mode support for shortcuts" into ub-launcher3-calgary
Sunny Goyal [Mon, 1 Aug 2016 22:04:11 +0000 (22:04 +0000)]
Merge "Adding quiet mode support for shortcuts" into ub-launcher3-calgary

7 years agoAlways cancel forwarding on ACTION_UP or ACTION_CANCEL.
Tony Wickham [Mon, 1 Aug 2016 20:06:40 +0000 (13:06 -0700)]
Always cancel forwarding on ACTION_UP or ACTION_CANCEL.

Bug: 30563284
Change-Id: I6285eda6d9f7a775f8ae896baebc420a0cf84e21

7 years agoMerge "Build fix: Updating SDK for tests" into ub-launcher3-calgary
Sunny Goyal [Mon, 1 Aug 2016 17:09:02 +0000 (17:09 +0000)]
Merge "Build fix: Updating SDK for tests" into ub-launcher3-calgary

7 years agoBuild fix: Updating SDK for tests
Sunny Goyal [Fri, 29 Jul 2016 23:53:47 +0000 (16:53 -0700)]
Build fix: Updating SDK for tests

Change-Id: I1377dce808335f65eb0799b7053c84853f57980a

7 years agoMerge "Set shortcuts arrow pivot to side connected to container." into ub-launcher3...
Tony Wickham [Sat, 30 Jul 2016 00:04:14 +0000 (00:04 +0000)]
Merge "Set shortcuts arrow pivot to side connected to container." into ub-launcher3-calgary

7 years agoSet shortcuts arrow pivot to side connected to container.
Tony Wickham [Fri, 29 Jul 2016 23:34:17 +0000 (16:34 -0700)]
Set shortcuts arrow pivot to side connected to container.

Bug: 30508528
Change-Id: Iddc733d79b680010785d21b347d151bc23bffc23

7 years agoMerge "Badging shortcuts with app icons" into ub-launcher3-calgary
Sunny Goyal [Fri, 29 Jul 2016 23:14:51 +0000 (23:14 +0000)]
Merge "Badging shortcuts with app icons" into ub-launcher3-calgary

7 years agoFilter shortcuts down to 4 if there are more.
Tony Wickham [Wed, 27 Jul 2016 19:32:32 +0000 (12:32 -0700)]
Filter shortcuts down to 4 if there are more.

- We take the first 4 in sorted order, except we remove up to 2
  static shortcuts to make room for dynamic ones if they exist.
- Added ShortcutFilterTest with testSortAndFilterShortcuts().
  This asserts that the filtered list is sorted and has the
  expected number of static and dynamic shortcuts based on
  inputs with various amounts of each.

Bug: 28980830
Change-Id: I832b6b21144f17c74bb8b90a840d6620e99911b8

7 years agoAdding quiet mode support for shortcuts
Sunny Goyal [Thu, 28 Jul 2016 19:11:54 +0000 (12:11 -0700)]
Adding quiet mode support for shortcuts

> LauncherApps returns empty list when the user is locked. Not relying on
LauncherApps in this case
> When the user is locked, removing all dynamic shortcuts
> Loading shortcuts from DB when the user is locked
> Verifying the shortcuts again when the user is available

Bug: 30411561
Change-Id: Ib6eb372c5b009cadb86a8f6e781f3f3cbf787ceb

7 years agoBadging shortcuts with app icons
Sunny Goyal [Thu, 28 Jul 2016 00:32:34 +0000 (17:32 -0700)]
Badging shortcuts with app icons

Change-Id: I3fa005ece20a54b31f823acb28c384ecdf1eafb1

7 years agoMerge "Cancel exit spring loaded runnable when launcher state is set to APPS or WIDGE...
Hyunyoung Song [Fri, 29 Jul 2016 21:32:48 +0000 (21:32 +0000)]
Merge "Cancel exit spring loaded runnable when launcher state is set to APPS or WIDGETS b/29645452" into ub-launcher3-calgary

7 years agoCancel exit spring loaded runnable when launcher state is set to APPS or WIDGETS
Hyunyoung Song [Fri, 29 Jul 2016 20:03:54 +0000 (13:03 -0700)]
Cancel exit spring loaded runnable when launcher state is set to APPS or WIDGETS
b/29645452

By cancelling the runnable, we are enabling transition:
state1 -> state3 instead of state1-> state2-> state3.
Transition state1->state3 is a viable transition that is
supported by our model.

        Launcher           Workspace
--------------------------------------------
state1  APPS_SPRING_LOADED SPRING_LOADED
state2  WORKSPACE          NORMAL
state3  APPS               NORMAL_HIDDEN

Change-Id: If27905567efe439324494e0091a4b42fcbf01448

7 years agoMerge changes I33da0d7f,I36c31609 into ub-launcher3-calgary
Winson Chung [Fri, 29 Jul 2016 05:49:20 +0000 (05:49 +0000)]
Merge changes I33da0d7f,I36c31609 into ub-launcher3-calgary

* changes:
  Working around incorrect wallpaper offsets being calculated in RTL.
  Fixing RTL wallpaper scrolling.

7 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 29 Jul 2016 04:12:28 +0000 (04:12 +0000)]
Import translations. DO NOT MERGE
am: 3c654c199e  -s ours

Change-Id: I509897896e4a9930da187f4f2270050063073d46

7 years agoMerge "Import translations. DO NOT MERGE" into ub-launcher3-calgary
TreeHugger Robot [Fri, 29 Jul 2016 04:04:30 +0000 (04:04 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary

7 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 29 Jul 2016 01:52:23 +0000 (18:52 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 30413963
Change-Id: I356f01214564a37fd27810a4bbd51a433ef5514d

7 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 29 Jul 2016 01:29:11 +0000 (18:29 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 30413963
Change-Id: I1ddbf2a7fc380ae4cc7a4273370d47fae1122b07

7 years agoMerge "Prevent opening shortcuts container if one is already open." into ub-launcher3...
Tony Wickham [Fri, 29 Jul 2016 01:14:22 +0000 (01:14 +0000)]
Merge "Prevent opening shortcuts container if one is already open." into ub-launcher3-calgary

7 years agoUpdate fast scroll shadow to match other shadows
Peter Schiller [Thu, 28 Jul 2016 23:58:06 +0000 (16:58 -0700)]
Update fast scroll shadow to match other shadows

Change-Id: Ia19f64b8c3b5a09a11909f2792e3c0956a0dc1cd

7 years agoWorking around incorrect wallpaper offsets being calculated in RTL.
Winson [Thu, 28 Jul 2016 19:24:55 +0000 (12:24 -0700)]
Working around incorrect wallpaper offsets being calculated in RTL.

- When launcher starts up, onCreate() triggers the launcher model loader
  to start, which calls bindScreens() to add the workspace pages.
  However, layout does not happen until the device is unlocked, which
  means that even though the default screen index and children are there
  the page scrolls are calculated incorrectly, and even in RTL, the
  page scroll for the 0th screen is zero (it should be at the right
  most edge of the workspace).  This CL works around this by deferring
  until the first layout after bindScreens() to unlock the wallpaper
  offset from its default bounds.  The workaround is only applied when
  the launcher activity is first created.

Bug: 28795125
Change-Id: I33da0d7f934f5337d26e69f068f579a32897a837

7 years agoFixing RTL wallpaper scrolling.
Winson [Thu, 28 Jul 2016 19:24:55 +0000 (12:24 -0700)]
Fixing RTL wallpaper scrolling.

- Ensure that we map the scroll offsets to the full wallpaper offset
  range
- Default to either edge of the wallpaper (depending on RTL) to match
  the default system wallpaper behavior (ag/1265418)

Bug: 28795125
Bug: 29398681
Change-Id: I36c316095057912d2dda0beb43bd1e6aaeac3fdc

7 years agoMerge "Responsive caret drawable" into ub-launcher3-calgary
Peter Schiller [Thu, 28 Jul 2016 21:18:37 +0000 (21:18 +0000)]
Merge "Responsive caret drawable" into ub-launcher3-calgary

7 years agoResponsive caret drawable
Hyunyoung Song [Wed, 27 Jul 2016 19:48:09 +0000 (12:48 -0700)]
Responsive caret drawable

Change-Id: I9d40052d001c80d99db511af6134227f8e4e4239

7 years agoOnly add shortcuts to the deep shortcut map if they are dynamic/manifest.
Tony Wickham [Thu, 28 Jul 2016 19:31:28 +0000 (12:31 -0700)]
Only add shortcuts to the deep shortcut map if they are dynamic/manifest.

Bug: 30475465
Change-Id: I93aff6330b86a3bfa3e6b5741ab759d835618f0b

7 years agoMerge "Showing the shortcuts in the disabled state and removing ti from the menu...
Sunny Goyal [Thu, 28 Jul 2016 19:23:28 +0000 (19:23 +0000)]
Merge "Showing the shortcuts in the disabled state and removing ti from the menu when its disabled" into ub-launcher3-calgary

7 years agoShowing the shortcuts in the disabled state and removing ti from the menu
Sunny Goyal [Thu, 28 Jul 2016 17:07:32 +0000 (10:07 -0700)]
Showing the shortcuts in the disabled state and removing ti from the menu
when its disabled

Bug: 30315906
Change-Id: Ice747e7be955d8bb2dd65191f7613e2afd4abc1c

7 years agoMerge "Fading in the first screen, when launcher loads for the first time" into ub...
Sunny Goyal [Thu, 28 Jul 2016 19:13:17 +0000 (19:13 +0000)]
Merge "Fading in the first screen, when launcher loads for the first time" into ub-launcher3-calgary

7 years agoStop setting original icon visible when dragging app with shortcuts.
Tony Wickham [Thu, 28 Jul 2016 18:27:03 +0000 (11:27 -0700)]
Stop setting original icon visible when dragging app with shortcuts.

- This was leaving a "ghost" icon behind, which looked really weird.
- We still need to make it visible for All Apps, or else you can get
  in a state where the icon is gone from all apps indefinitely.

Bug: 30465972
Change-Id: I79eacf2dfdb0cd267732ae63ef69a9bb193933a5

7 years agoMerge "Check package name and user handle in onShortcutsChanged()." into ub-launcher3...
Tony Wickham [Thu, 28 Jul 2016 17:18:07 +0000 (17:18 +0000)]
Merge "Check package name and user handle in onShortcutsChanged()." into ub-launcher3-calgary

7 years agoCheck package name and user handle in onShortcutsChanged().
Tony Wickham [Thu, 28 Jul 2016 01:22:41 +0000 (18:22 -0700)]
Check package name and user handle in onShortcutsChanged().

Otherwise shortcuts with the same id would be updated,
even if they were in different packages.

Bug: 28980830

Change-Id: Ideefe3aaac83af38c03a38d821bac192ae55fe67

7 years agoFading in the first screen, when launcher loads for the first time
Sunny Goyal [Sat, 2 Apr 2016 18:23:39 +0000 (11:23 -0700)]
Fading in the first screen, when launcher loads for the first time

Bug: 29007436
Bug: 27705838
Change-Id: I95891d0bad19a67985b689bb96d6068dcd85004a

7 years agoLauncher shortcuts animations update.
Sunny Goyal [Fri, 22 Jul 2016 17:50:11 +0000 (10:50 -0700)]
Launcher shortcuts animations update.

> The shortcut container closes with an animation
> When opening/closing the animation only the icon scales
and not the title and drag handle
> When dragging the icon, it starts from the original icon position and
moves under the user finger. The container grows to follow the drag view.

Bug: 28980830
Change-Id: Ic0353c30b682d1f018cbf4d62e8a6e8e7d7d4664

7 years agoMerge "Cleanup deferred drag when closing deep shortcuts container." into ub-launcher...
Tony Wickham [Thu, 28 Jul 2016 00:29:45 +0000 (00:29 +0000)]
Merge "Cleanup deferred drag when closing deep shortcuts container." into ub-launcher3-calgary