OSDN Git Service
Tony Wickham [Tue, 28 Feb 2017 00:30:47 +0000 (16:30 -0800)]
Merge deep shortcuts in rounded rect
- DeepShortcutViews are added to ShortcutsItemView, which
is in PopupContainerWithArrow
- Moved some shortcut-specific logic to ShortcutsItemView
(namely, touch/long-click handling for draggin shortcuts)
- Moved round-rect clipping to PopupItemView
- Removed collapseToIcon() logic, including
PillWidthRevealOutlineProvider, which was only used for
that purpose. It isn't necessary now that the deep
shortcuts have no background themselves.
- Replaced focus pill drawable with ripple effect on
shortcuts and notification view.
Bug:
35766387
Change-Id: I6bc09f1851cfbb806df4bf75a6e435b0f1900c9c
Tony Wickham [Tue, 21 Feb 2017 23:16:12 +0000 (15:16 -0800)]
Update notification view to match newer specs
- Use smaller radius for notifications round rect background
- Remove "Notifications" header, and clip children to round rect path
- Flip main notification so that icon shows on the right instead of
left; footer is also flipped so animation makes sense
- Clean up animations to animate view outline instead of height
Bug:
32410600
Change-Id: I6bd1e1f8395b3703f28c3b0056a89e67672368ab
Sunny Goyal [Fri, 24 Feb 2017 02:30:22 +0000 (18:30 -0800)]
Using transaction when dropping tables, so that the DB never enters
an inconsistant state
Bug:
34720697
Change-Id: I55a26d63be6c06622da6ee3395bf1990f1a58a11
TreeHugger Robot [Fri, 24 Feb 2017 00:37:30 +0000 (00:37 +0000)]
Merge "Removing custom state definition from FastBitmapDrawable" into ub-launcher3-dorval
TreeHugger Robot [Fri, 24 Feb 2017 00:27:19 +0000 (00:27 +0000)]
Merge "Remove first icon from notification footer after it animates." into ub-launcher3-dorval
Sunny Goyal [Thu, 16 Feb 2017 21:33:15 +0000 (13:33 -0800)]
Removing custom state definition from FastBitmapDrawable
> For Fast scrolling, using state list animator defined in xml
> For Pressed state, using onState change method in a drawable
Change-Id: Ia608690f593938cf0f77e00afcc2a3076e48d8f4
Jon Miranda [Thu, 23 Feb 2017 23:12:42 +0000 (15:12 -0800)]
Ignore tasks if the LauncherModel is still pending.
The tasks will be enqueued after the model is loaded when it
gets to the final state.
Bug:
31509386
Change-Id: Id72aaedb025a91a49b25e1ef103cc1976d603b21
TreeHugger Robot [Wed, 22 Feb 2017 23:53:26 +0000 (23:53 +0000)]
Merge "Adding some tests for request pin shortcut/widget flow" into ub-launcher3-dorval
Sunny Goyal [Wed, 25 Jan 2017 19:19:59 +0000 (11:19 -0800)]
Adding some tests for request pin shortcut/widget flow
Bug:
33584624
Change-Id: I49df36f60d2ae071b9d2c77c9c3300e010cd3bb9
Sunny Goyal [Fri, 17 Feb 2017 19:22:34 +0000 (11:22 -0800)]
Simplifying Model data load state management
Instead of maintaining 3 different states, each tied to a subset of data,
maintaing a single state that represents all the data. Individual subset
data is invalidated in rare cases and these invalidates are tightly tied
to the UI. This also allows us to add new data to the model, without worring
about classifying the data into a subset.
Bug:
34112546
Change-Id: Id9cb273de35b79e84a2ef8d6556fcf1e72fb4b75
Tony Wickham [Fri, 27 Jan 2017 21:18:30 +0000 (13:18 -0800)]
Remove first icon from notification footer after it animates.
Before, we had a hack where the notifation view would tell the
footer to trim its notifications, which is inefficient and ugly
since we already know exactly what notification to remove. So
now we move the relevant removal logic (keeping things like the
overflow text in sync) to a removeViewFromIconRow() that is
used after the icon animates as well as when trimming notifications.
Bug:
32410600
Change-Id: I19e54e0c28daea869b45649c7f5c74843412bb86
TreeHugger Robot [Wed, 22 Feb 2017 19:46:10 +0000 (19:46 +0000)]
Merge "Close Folder when an item is auto added to it." into ub-launcher3-master
Bill Rassieur [Wed, 22 Feb 2017 19:28:46 +0000 (19:28 +0000)]
Empty commit to trigger a build.
am:
8dfc049598
Change-Id: Ic3dae2d96ac6dac123392c4d232e1362f3206a32
Bill Rassieur [Wed, 22 Feb 2017 19:23:19 +0000 (11:23 -0800)]
Empty commit to trigger a build.
BUG:
35639108
Jon Miranda [Wed, 22 Feb 2017 18:17:49 +0000 (10:17 -0800)]
Close Folder when an item is auto added to it.
This can happen when items (as part of a Work Profile) are auto added
to the Work profile Folder.
Bug:
35628160
Change-Id: I29d3b277b0e9cd4bb238fb5aff9a52c6b9e764f8
Bill Yi [Wed, 22 Feb 2017 15:53:34 +0000 (07:53 -0800)]
Import translations. DO NOT MERGE
Change-Id: I2424c6b29a8d71a3fb697a85f82f2678774c975f
Auto-generated-cl: translation import
Sunny Goyal [Wed, 22 Feb 2017 01:18:16 +0000 (01:18 +0000)]
Merge "Fixing accessibility description for all-apps grid adapter. Only counting app icons towards various collection related info" into ub-launcher3-master
Sunny Goyal [Wed, 22 Feb 2017 00:43:56 +0000 (16:43 -0800)]
Fixing accessibility description for all-apps grid adapter.
Only counting app icons towards various collection related info
Change-Id: I2aca87e1acf6cd7bdaddfbaad174e273e8272d4b
Jon Miranda [Tue, 21 Feb 2017 20:37:51 +0000 (12:37 -0800)]
Close all open views when binding the Launcher.
This fixes a bug where a work profile remains opened even
after the work profile is removed from the device. This can
occur when the work profile is removed with the Folder still opened.
Bug:
35627777
Change-Id: I8d5b4bd9931cad2316b6b8786501d6b3780b7aca
TreeHugger Robot [Tue, 21 Feb 2017 20:33:33 +0000 (20:33 +0000)]
Merge "Launcher3: fix app shortcuts for suspended apps" into ub-launcher3-master
Charles He [Wed, 15 Feb 2017 12:22:56 +0000 (12:22 +0000)]
Launcher3: fix app shortcuts for suspended apps
This CL fixes app shortcuts for suspended packages.
1) When DO/PO suspends an app, its pinned shortcuts are instantly grayed
out, but this is not persisted after the launcher restarts (e.g. device
reboot). We now enforce the launcher to check the suspended state when
loading the workspace, and gray out pinned shortcut icons accordingly.
2) When DO/PO suspends an app, its app shortcut popup is still
available. We now temporarily disable the popup when the app is
suspended, and persist the state across restarts.
Bug:
32365540
Test: manual, by following the steps in the bug above
Test: manual, by restarting the launcher package
Change-Id: I983d7c17fa198beca23b66459b50bd67b447bdd2
Jon Miranda [Tue, 21 Feb 2017 17:06:51 +0000 (09:06 -0800)]
Fix folder icon animation where it animates downwards on 1st run.
The first time FolderIcon#growAndFadeOut is called, the folder
icon pivot x/y is not set. By moving the call after centerAboutIcon
(which sets the pivot point), we get the expected result of the
animation growing upward.
Bug:
35126799
Change-Id: I22fccb6b23550f823eb7b4485b9584022b810323
Tony Wickham [Tue, 21 Feb 2017 16:45:04 +0000 (16:45 +0000)]
Merge "Remove badges when launcher loses notification access" into ub-launcher3-master
Tony [Mon, 13 Feb 2017 18:17:37 +0000 (10:17 -0800)]
Remove badges when launcher loses notification access
- NotificationListener.getInstance() has been changed to
getInstanceIfConnected() (same behavior as before).
- When starting launcher, we send a full refresh of badges
regardless of whether the NotificationListner is connected.
If it is not connected, we pass an empty list for the
active notifications, so that all pre-existing badges are
removed.
Bug:
35221052
Change-Id: If920317f10814c010e02b5a30ce86a58ac7bc61c
Sunny Goyal [Fri, 17 Feb 2017 20:10:37 +0000 (12:10 -0800)]
Enabling translation for string relates to Add to homescreen confirmation prompt
Bug:
34819119
Change-Id: Id4c522319c92641faa28bb685f4ea4658aa4ec9e
Sunny Goyal [Fri, 17 Feb 2017 17:53:58 +0000 (17:53 +0000)]
Merge "Simplifying some launcher themes" into ub-launcher3-master
TreeHugger Robot [Fri, 17 Feb 2017 07:43:38 +0000 (07:43 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-master
Bill Yi [Fri, 17 Feb 2017 07:40:20 +0000 (07:40 +0000)]
Import translations. DO NOT MERGE
am:
e5c99a2140 -s ours
Change-Id: Ifffdd23bc65534039a330bf77ceffaba418982ba
Bill Yi [Fri, 17 Feb 2017 07:31:06 +0000 (23:31 -0800)]
Import translations. DO NOT MERGE
Change-Id: Id2b9f6fbdd4aea3663ba8e418888bac8cf956da3
Auto-generated-cl: translation import
Bill Yi [Fri, 17 Feb 2017 07:30:20 +0000 (23:30 -0800)]
Import translations. DO NOT MERGE
Change-Id: If87152e5d565c37127110756f1185f82833ec685
Auto-generated-cl: translation import
Adam Cohen [Fri, 17 Feb 2017 00:50:57 +0000 (00:50 +0000)]
Merge "Add notification listener back to the manifest" into ub-launcher3-master
Tony [Mon, 13 Feb 2017 15:44:01 +0000 (07:44 -0800)]
Add notification listener back to the manifest
This reverts commit
d27b65d4d0035d6b66aac3e6040aa791f155e502.
Also added boolean to values/ and values-v25/ and values-v26/
to enabled/disable the listener by API version.
Bug:
35443111
Bug:
33553066
Change-Id: I69465c720f3b3eca7ae2025e01c315720862bec8
Sunny Goyal [Sat, 11 Feb 2017 00:52:16 +0000 (16:52 -0800)]
Simplifying some launcher themes
> Replacing some colors with theme attributes
> Simplifying styles definition by removing unnecessary inheritance and inlining some definitions
Change-Id: Ifa167515cae6a7fd3720f1a52ff9ce11abb4495f
Tony Wickham [Thu, 16 Feb 2017 23:17:31 +0000 (23:17 +0000)]
Merge "Ensure that filtered notifications are removed from BadgeInfo." into ub-launcher3-master
TreeHugger Robot [Thu, 16 Feb 2017 21:56:39 +0000 (21:56 +0000)]
Merge "Separating methods for updating the model to a sepatate class." into ub-launcher3-master
Sunny Goyal [Thu, 2 Feb 2017 21:52:53 +0000 (13:52 -0800)]
Separating methods for updating the model to a sepatate class.
Removing static access to model update methods, to allow for better
access control and testing
Change-Id: I9afe004dbf1b2fe50df422fd28bceea9230a4704
Sunny Goyal [Thu, 16 Feb 2017 21:48:28 +0000 (21:48 +0000)]
Merge "Updating the shortcut preview generation logic" into ub-launcher3-master
Sunny Goyal [Mon, 13 Feb 2017 18:44:43 +0000 (10:44 -0800)]
Updating the shortcut preview generation logic
Drawing a shortcut icon on a white round-rect with shadow
Also center aligning the preview
Bug:
34819119
Change-Id: Ic25be6bf301aeb11315a5050f009259b26c6134a
Sunny Goyal [Mon, 13 Feb 2017 20:13:43 +0000 (12:13 -0800)]
Removing wrapper around ViewPropertyAnimator, and using ObjectAnimator
instead
Bug:
35218222
Change-Id: Ic714cf7d20989cb45f07712e8a6f6659d0e3f30d
TreeHugger Robot [Thu, 16 Feb 2017 18:08:15 +0000 (18:08 +0000)]
Merge "Fixing wrong check for grid migration" into ub-launcher3-master
Sunny Goyal [Thu, 16 Feb 2017 18:01:46 +0000 (18:01 +0000)]
Merge "Adding some logging around launcher grid when device profile changes" into ub-launcher3-master
Tony Wickham [Thu, 16 Feb 2017 16:39:17 +0000 (16:39 +0000)]
Merge "Animate notification background color directly" into ub-launcher3-master
Tony Wickham [Thu, 16 Feb 2017 16:38:59 +0000 (16:38 +0000)]
Merge "Ignore touches before notification is populated" into ub-launcher3-master
Tony [Tue, 14 Feb 2017 18:18:48 +0000 (10:18 -0800)]
Animate notification background color directly
Before we were calling setBackgroundColor() in the update
listener, which is less efficient because it creates a
new ColorDrawable; now we reuse one throughout.
Change-Id: I0cd87e5ee72af41d2dae4375ce3df9fd6e92bd82
Tony Wickham [Thu, 16 Feb 2017 00:03:27 +0000 (16:03 -0800)]
Ignore touches before notification is populated
Bug:
35398757
Change-Id: I24f1b66787af7c7caeb325e9a1f3e6ef86e62b81
Tony Wickham [Wed, 15 Feb 2017 22:53:08 +0000 (14:53 -0800)]
Fallback to WallpaperManager#getDrawable() if getWallpaperFile() is null
Bug:
34521181
Change-Id: Ifc5f7cd9a11ff1f66acaadaea494ba4a0d142c3c
Sunny Goyal [Wed, 15 Feb 2017 22:41:35 +0000 (14:41 -0800)]
Fixing wrong check for grid migration
Change-Id: I0475512302fd185fcd984d032cf19b34df3f8840
Sunny Goyal [Wed, 15 Feb 2017 22:39:54 +0000 (14:39 -0800)]
Adding some logging around launcher grid when device profile changes
Bug:
35349518
Change-Id: Ia71504cd37749f8eaa5e038ac2867bcd9749a4bb
TreeHugger Robot [Wed, 15 Feb 2017 18:53:19 +0000 (18:53 +0000)]
Merge "Adding minSDK for test targets" into ub-launcher3-master
Sunny Goyal [Wed, 15 Feb 2017 18:38:41 +0000 (10:38 -0800)]
Adding minSDK for test targets
Bug:
35079440
Change-Id: Ie27eebe7afaed6a80efc43cb41f651e8acabc835
Hyunyoung Song [Tue, 14 Feb 2017 18:25:27 +0000 (18:25 +0000)]
Merge "Hide legacy icon treatment behind a flag." into ub-launcher3-master
Sunny Goyal [Tue, 14 Feb 2017 18:02:33 +0000 (18:02 +0000)]
Merge "Initializing LauncherAppState only on the main thread" into ub-launcher3-master
Hyunyoung Song [Tue, 14 Feb 2017 17:23:30 +0000 (09:23 -0800)]
Hide legacy icon treatment behind a flag.
Change-Id: I662f1317945e6dd175fd03dbabc264e45c18dcee
Sunny Goyal [Wed, 1 Feb 2017 20:52:54 +0000 (12:52 -0800)]
Initializing LauncherAppState only on the main thread
Bug:
33032833
Change-Id: I7992a5358142dde80aeaf8c6b7a6c7bfef2c8a00
TreeHugger Robot [Tue, 14 Feb 2017 00:29:47 +0000 (00:29 +0000)]
Merge "Fixing bug in AnimationLayerSet where it sets the layer type to software at the end of the animation instead fo setting it back to the original value" into ub-launcher3-master
Sunny Goyal [Mon, 13 Feb 2017 23:43:00 +0000 (15:43 -0800)]
Fixing bug in AnimationLayerSet where it sets the layer type to software
at the end of the animation instead fo setting it back to the original value
Change-Id: I528dc41fb896ae57905d5ceab7256a53bdb81489
Sunny Goyal [Mon, 13 Feb 2017 20:03:08 +0000 (20:03 +0000)]
Revert "Changing LauncherViewPropertyAnimator to use ValueAnimator"
Issue: Animations do not run
This reverts commit
33c04705beee04f7df309d702bc7303f161a8f18.
Change-Id: I069379ac1003c4b11e008b82530c952a66604459
Sunny Goyal [Fri, 10 Feb 2017 01:37:56 +0000 (17:37 -0800)]
Changing LauncherViewPropertyAnimator to use ValueAnimator
Using ValueAnimator allows better support for changes in Animator
APIs.
Bug:
35218222
Change-Id: I4efa470b4bb686328539d35d8e23e297a4ac885a
Tony Wickham [Fri, 10 Feb 2017 16:03:22 +0000 (08:03 -0800)]
Ensure that filtered notifications are removed from BadgeInfo.
There are cases where a BadgeInfo can contain a key that is later
used for a notification that should be filtered out. So instead
of simply not sending filtered notifications to PopupDataProvider,
now we explicitly send them and remove the corresponding key from
the BadgeInfo if it exists.
Bug:
35239510
Change-Id: I9532f47b1f07b44234f8707657b15b0de519b347
TreeHugger Robot [Thu, 9 Feb 2017 23:28:20 +0000 (23:28 +0000)]
Merge "Making methods in PaackageManagerHelper non-static" into ub-launcher3-master
Tony Wickham [Thu, 9 Feb 2017 22:21:34 +0000 (14:21 -0800)]
Temporarily remove notification listener from the manifest.
Bug:
35102937
Change-Id: I830b7146815248c80f65c91a6cf81a2664afeaac
TreeHugger Robot [Thu, 9 Feb 2017 21:59:46 +0000 (21:59 +0000)]
Merge "Create a singleton HashMap instead of using Collections.singleton()" into ub-launcher3-master
Tony Wickham [Thu, 9 Feb 2017 16:28:52 +0000 (08:28 -0800)]
Create a singleton HashMap instead of using Collections.singleton()
The Set returned by Collections.singleton() doesn't support all
operations, causing crashes in certain situations (namely, whenever
a notification is updated rather than added or removed).
Change-Id: Ie104b7f99c4a32db5f1f7e43ec3775d34dc26ce1
Sunny Goyal [Thu, 9 Feb 2017 18:25:06 +0000 (18:25 +0000)]
Merge "Updating the default widget preview generation logic" into ub-launcher3-master
TreeHugger Robot [Thu, 9 Feb 2017 18:24:16 +0000 (18:24 +0000)]
Merge "Updating widget tray theme" into ub-launcher3-master
Sunny Goyal [Tue, 7 Feb 2017 21:11:17 +0000 (13:11 -0800)]
Updating widget tray theme
Using standard theme attributes rather than custom color codes, so
that it plays nice with system theme changes.
Bug:
34819119
Bug:
34897402
Bug:
21446746
Change-Id: I265fba3ceae8873650fd09e4704838d313155e83
Sunny Goyal [Tue, 7 Feb 2017 23:06:32 +0000 (15:06 -0800)]
Updating the default widget preview generation logic
We draw a while round rect box which is divided into the cells to
represent the widget size. The app icon is drawn in the center
for this white box.
Bug:
34819119
Change-Id: Ie4d83712577f21b276c6744a55993f71da368398
Jon Miranda [Wed, 8 Feb 2017 01:12:36 +0000 (17:12 -0800)]
Add basic logs for tap outside action.
Change-Id: I6288610b9870c3abe88794c53309b1d76dd2780f
Tony Wickham [Tue, 7 Feb 2017 22:26:20 +0000 (22:26 +0000)]
Merge "Animate badges when they are added or removed" into ub-launcher3-master
Tony Wickham [Thu, 2 Feb 2017 20:57:18 +0000 (12:57 -0800)]
Animate badges when they are added or removed
- Scale the badge and text or icon up or down, respectively.
- Only animate if the badge is visible, and don't animate when
applying shortcut or app info.
- Animate folder badge out when folder enters accepting state.
Bug:
34838365
Bug:
32410600
Change-Id: Ie60cb1fc54fe60d72734d833040545d27660d645
Jonathan Miranda [Tue, 7 Feb 2017 21:45:39 +0000 (21:45 +0000)]
Merge "Update PreviewLayoutRule API to prepare for new folder animation." into ub-launcher3-master
Tony Wickham [Tue, 7 Feb 2017 19:05:40 +0000 (19:05 +0000)]
Merge "Add logging for notifications." into ub-launcher3-master
Tony Wickham [Tue, 7 Feb 2017 18:59:04 +0000 (18:59 +0000)]
Merge "Add badges to folders" into ub-launcher3-master
Tony Wickham [Tue, 7 Feb 2017 18:57:32 +0000 (18:57 +0000)]
Merge "Show notification icon in place of "1" in badge." into ub-launcher3-master
Tony Wickham [Wed, 1 Feb 2017 17:13:24 +0000 (09:13 -0800)]
Add logging for notifications.
- Log notification launches
- Log notification swipes
- Fix logDragNDrop() to only log if the pre-drag ends (so it doesn't
log a long-press that only shows shortcuts without dragging).
- Add shortcut rank to logs when launching deep shortcuts, where 0
is the shortcut closest to the app icon (highest rank).
Bug:
34770729
Bug:
32410600
Change-Id: I99dcef9b6a71da2ef58e32397702bb137407b10f
Tony Wickham [Thu, 2 Feb 2017 20:42:50 +0000 (12:42 -0800)]
Add badges to folders
- The folder badge contains the sum of the badge counts within.
- This is represented by FolderBadgeInfo, a subclass of BadgeInfo.
Bug:
34828806
Bug:
32410600
Change-Id: I977a69cc7baf80a7207af9adf98dddb0a3509c47
Tony Wickham [Tue, 31 Jan 2017 18:49:18 +0000 (10:49 -0800)]
Show notification icon in place of "1" in badge.
- When notifications update, add the NotificationInfo to the
BadgeInfo if there is only one for an app. BadgeRenderer
will use the NotificationInfo to get the icon to draw.
- When retrieving the icon from the NotificationInfo, we draw
it into a shader (similar to MaskableIconDrawable), which is
rendered by BadgeRenderer.
- For now, we only use the notification icon if it is large.
Bug:
34839959
Bug:
32410600
Bug:
33553066
Change-Id: I31851804008dd15bab75d2759441187830c3265e
Jon Miranda [Mon, 6 Feb 2017 23:45:53 +0000 (15:45 -0800)]
Update PreviewLayoutRule API to prepare for new folder animation.
Also created a new FeatureFlag to start building behind.
Bug:
35064148
Change-Id: I4a7d30bf1e1f49f1012eb963695d44d67096a5bc
Sunny Goyal [Tue, 7 Feb 2017 01:23:36 +0000 (01:23 +0000)]
Merge "Updating the PreloadIconDrawable" into ub-launcher3-master
Tony Wickham [Tue, 7 Feb 2017 01:21:29 +0000 (01:21 +0000)]
Merge "Add ActivityOptions for clip reveal animation for notifications" into ub-launcher3-master
Jon Miranda [Mon, 6 Feb 2017 23:54:41 +0000 (15:54 -0800)]
Remove unused View parameter from ofFloat method.
Change-Id: I5fabd5c78de52ba68b67e0b1bd7208f4d1f7cbea
Sunny Goyal [Fri, 3 Feb 2017 00:37:21 +0000 (16:37 -0800)]
Updating the PreloadIconDrawable
> The drawable gets the path from MaskIconDrawable path, instead of
using a circle
> The progress changes are animated as well
Bug:
34831873
Change-Id: I4e7f0b610f4fd94de8e0cfcf8b179b775cf0b4d8
Tony Wickham [Fri, 3 Feb 2017 18:24:14 +0000 (18:24 +0000)]
Merge "Gracefully ignore items that don't support notifications" into ub-launcher3-master
Tony Wickham [Thu, 2 Feb 2017 21:58:33 +0000 (13:58 -0800)]
Gracefully ignore items that don't support notifications
PackageUserKey is only meant to be used for items that support
notifications, so when trying to update it for an item that
doesn't, we don't use it to check if the item has notifications.
This fixes a crash that happens when trying to update notifications
for a legacy shortcut, as such a shortcut doesn't have a component
on its intent, which we were trying to use to populate PackageUserKey.
Bug:
34842278
Change-Id: I8c69ccebbf9d93505d5b29ecd25d76c65610ddc4
Sunny Goyal [Thu, 2 Feb 2017 23:21:08 +0000 (15:21 -0800)]
Making methods in PaackageManagerHelper non-static
Bug:
34112546
Change-Id: Ia3db3e2f56d26e314000e302b51e6d38607c525d
Hyunyoung Song [Mon, 30 Jan 2017 23:11:27 +0000 (15:11 -0800)]
Clean up around 1) Log.VERBOSE and 2) dump
b/
31772480
Note: in the follow up CL, I will add the dump result of the bgDataModel
to a proto
Change-Id: I5261cff0fb29cedd1dd772b8b15f67095ad5b967
Tony Wickham [Wed, 1 Feb 2017 19:12:12 +0000 (11:12 -0800)]
Add ActivityOptions for clip reveal animation for notifications
Change-Id: Ib621e3ae73eecf047568b85112cddaf3ae60bb0f
Tony Wickham [Wed, 1 Feb 2017 19:10:37 +0000 (19:10 +0000)]
Merge "Ensure getNotificationKeysForItem() returns empty on unsupported items." into ub-launcher3-master
Tony Wickham [Wed, 1 Feb 2017 17:58:40 +0000 (09:58 -0800)]
Ensure getNotificationKeysForItem() returns empty on unsupported items.
We were bypassing the check in getBadgeInfoForItem(), which meant
we would return notifications based on package/user regardless of
the item type. In particular, deep shortcuts would show notifications
when long-pressed.
Bug:
34866646
Change-Id: I6575a28539313c0c5d0eea1cbf7b7726f747bcd5
Mario Bertschler [Tue, 31 Jan 2017 01:47:30 +0000 (17:47 -0800)]
Fixes a bug where the workspace doesn't properly enter into freescroll mode
hence the overscroll will appear and you can wrongly enter into the -1 screen.
The problem was that the state value in the workspace was set after enabling
free scroll, but enabling free scroll checks the current state for validation.
This bug was introduced by Icc3005fd431569e2b9e3f52d2249de8ba8d13eab.
Bug:
34817798
Change-Id: I46802c93c49a2ae8ee5c40ef24e465d7fe63c4bb
Tony Wickham [Tue, 31 Jan 2017 22:38:36 +0000 (22:38 +0000)]
Merge "Use notification icon views' tags to store NotificationInfo." into ub-launcher3-master
TreeHugger Robot [Tue, 31 Jan 2017 07:28:27 +0000 (07:28 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-master
Bill Yi [Tue, 31 Jan 2017 06:03:45 +0000 (22:03 -0800)]
Import translations. DO NOT MERGE
Change-Id: I6939381d081f809324360287994fd424dd533f66
Auto-generated-cl: translation import
Hyunyoung Song [Wed, 18 Jan 2017 10:43:17 +0000 (02:43 -0800)]
Changes required to use MaskableIconDrawable inside Launcher3
This CL will bake the legacy icons inside a grey background
Note: There will be follow up CL to change the color and shadow of the
legacy icon. The idea of this CL is to first test if MaskableIconDrawable
methods and class work properly.
Bug:
32063838
Bug:
33553066
Change-Id: I3d02e619fcb0cd9879baa22a025b5d95c829f26c
Tony Wickham [Fri, 27 Jan 2017 23:34:19 +0000 (23:34 +0000)]
Merge "Ensure notification icons have enough contrast with background." into ub-launcher3-master
Sunny Goyal [Thu, 26 Jan 2017 02:23:36 +0000 (18:23 -0800)]
Updating the preview generation logic so that it aligns better with
the drag source image
> Using common code for pending item drag (WidgetContainerView and PinItemDragListener)
> Adding a shortcut-circuit in Workspace when a pendingItem can create a shortcut
directly. Previously the multi-window drop was routing through onActivityResult which
was causing some state information to be lost.
Bug:
33584624
Change-Id: I0259870032185713caa9bff27092dbae6ce91199
Tony Wickham [Fri, 27 Jan 2017 22:28:42 +0000 (14:28 -0800)]
Use notification icon views' tags to store NotificationInfo.
Previously we had a mapping from View to NotificationInfo,
but this way we don't have to maintain that separate mapping
and can follow the pattern used throughout the rest of launcher.
Change-Id: Ia988f822613b9978bab3d0127226de920a3e73c9
Tony Wickham [Fri, 27 Jan 2017 16:45:49 +0000 (08:45 -0800)]
Ensure notification icons have enough contrast with background.
This uses the same color calculations as the system, except that
we use the extracted notification background instead of assuming
it is white.
Bug:
32410600
Change-Id: I7be8b9459ca38d01a6780758898541e69ec42576
Sunny Goyal [Fri, 27 Jan 2017 17:58:34 +0000 (17:58 +0000)]
Merge "Handing pin item drag when workspce is not loaded" into ub-launcher3-master
Sunny Goyal [Wed, 25 Jan 2017 19:30:06 +0000 (11:30 -0800)]
Improving widget handling for pinItemRequest
> Preloading widget view while dragging for smoother
transition
> Skipping config activity and sending confirmation to
the caller when widget is dropped
Bug:
33584624
Change-Id: Ib23e5964298296d12d9c93f38aefdf924a07368e