OSDN Git Service
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
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)
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)
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)
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
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
Sunny Goyal [Fri, 2 Sep 2016 19:13:56 +0000 (19:13 +0000)]
Merge "Fixing broken accessibility drag" into ub-launcher3-calgary
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
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)
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)
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)
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)
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)
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)
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
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)
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
TreeHugger Robot [Tue, 16 Aug 2016 15:35:19 +0000 (15:35 +0000)]
Merge "Import translations. DO NOT MERGE" 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
Sunny Goyal [Tue, 16 Aug 2016 02:34:37 +0000 (19:34 -0700)]
Updating version check to use SDK_INT
Change-Id: Idb46053e7304bc8d0cab03a17a6fe73013e4f092
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
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)
Tony Wickham [Mon, 15 Aug 2016 22:52:56 +0000 (22:52 +0000)]
Merge "Ignore clicks on shortcuts' drag handles." into ub-launcher3-calgary
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
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
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
Surendra Vispute [Thu, 11 Aug 2016 21:55:15 +0000 (14:55 -0700)]
force a blank spin
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Hyunyoung Song [Fri, 5 Aug 2016 17:59:17 +0000 (10:59 -0700)]
Change NavBar to transparent black
b/
30615471
Change-Id: I7885e8a7fd63ee10c9b0107087046730e8acfde9
Tony Wickham [Fri, 5 Aug 2016 17:57:35 +0000 (17:57 +0000)]
Merge "Use shortcut disabled message if available." into ub-launcher3-calgary
Tony Wickham [Thu, 4 Aug 2016 23:34:49 +0000 (16:34 -0700)]
Use shortcut disabled message if available.
Bug:
30681210
Change-Id: Ibb5fd58e5fc9557b63730bc1e3c3977133769466
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
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
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
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
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
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
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
TreeHugger Robot [Thu, 4 Aug 2016 09:25:09 +0000 (09:25 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary
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
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
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
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
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
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
Tony Wickham [Wed, 3 Aug 2016 19:27:53 +0000 (19:27 +0000)]
Merge "Align shortcut text with view start." into ub-launcher3-calgary
Tony Wickham [Wed, 3 Aug 2016 17:43:50 +0000 (10:43 -0700)]
Align shortcut text with view start.
Bug:
30401505
Change-Id: Iffaa0a01f2c2983a085d8c9d4be36fc063ae2004
Hyunyoung Song [Wed, 3 Aug 2016 17:42:48 +0000 (17:42 +0000)]
Merge "Fix disco bounce crash b/
30413641" into ub-launcher3-calgary
Hyunyoung Song [Wed, 3 Aug 2016 17:40:18 +0000 (10:40 -0700)]
Fix disco bounce crash
b/
30413641
Change-Id: Icb2f3f11024daa78c3f59cab8c773091b9481feb
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
Peter Schiller [Sat, 30 Jul 2016 00:05:30 +0000 (17:05 -0700)]
Simpler caret
Bug:
30527159
Change-Id: I674de149e613c7adb567a13a288baa9877d36112
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
Tony Wickham [Tue, 2 Aug 2016 21:27:50 +0000 (21:27 +0000)]
Merge "Update shortcuts font to match spec." into ub-launcher3-calgary
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
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
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
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
Tony Wickham [Tue, 2 Aug 2016 18:53:07 +0000 (11:53 -0700)]
Update shortcuts font to match spec.
Bug:
30594316
Change-Id: I9de1068a502e9f441f2609d114595b7513f20cad
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
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
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
TreeHugger Robot [Tue, 2 Aug 2016 09:53:38 +0000 (09:53 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary
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
Tony Wickham [Tue, 2 Aug 2016 00:56:57 +0000 (00:56 +0000)]
Merge "Add logging for shortcuts opening." into ub-launcher3-calgary
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
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
Sunny Goyal [Mon, 1 Aug 2016 22:04:11 +0000 (22:04 +0000)]
Merge "Adding quiet mode support for shortcuts" into ub-launcher3-calgary
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
Sunny Goyal [Mon, 1 Aug 2016 17:09:02 +0000 (17:09 +0000)]
Merge "Build fix: Updating SDK for tests" into ub-launcher3-calgary
Sunny Goyal [Fri, 29 Jul 2016 23:53:47 +0000 (16:53 -0700)]
Build fix: Updating SDK for tests
Change-Id: I1377dce808335f65eb0799b7053c84853f57980a
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
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
Sunny Goyal [Fri, 29 Jul 2016 23:14:51 +0000 (23:14 +0000)]
Merge "Badging shortcuts with app icons" into ub-launcher3-calgary
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
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
Sunny Goyal [Thu, 28 Jul 2016 00:32:34 +0000 (17:32 -0700)]
Badging shortcuts with app icons
Change-Id: I3fa005ece20a54b31f823acb28c384ecdf1eafb1
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
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
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.
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
TreeHugger Robot [Fri, 29 Jul 2016 04:04:30 +0000 (04:04 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary
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
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
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
Peter Schiller [Thu, 28 Jul 2016 23:58:06 +0000 (16:58 -0700)]
Update fast scroll shadow to match other shadows
Change-Id: Ia19f64b8c3b5a09a11909f2792e3c0956a0dc1cd
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