Commit Graph

13132 Commits

Author SHA1 Message Date
Sunny Goyal
d9843357d0 Adding some tests for request pin shortcut/widget flow
Bug: 33584624
Change-Id: I49df36f60d2ae071b9d2c77c9c3300e010cd3bb9
2017-02-22 15:46:40 -08:00
TreeHugger Robot
9f0fa84439 Merge "Close Folder when an item is auto added to it." into ub-launcher3-master 2017-02-22 19:46:10 +00:00
Bill Rassieur
9ef673fb92 Empty commit to trigger a build.
am: 8dfc049598

Change-Id: Ic3dae2d96ac6dac123392c4d232e1362f3206a32
2017-02-22 19:28:46 +00:00
Bill Rassieur
8dfc049598 Empty commit to trigger a build.
BUG: 35639108
2017-02-22 11:23:19 -08:00
Jon Miranda
440609453f 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
2017-02-22 10:55:52 -08:00
Bill Yi
25867b8c92 Import translations. DO NOT MERGE
Change-Id: I2424c6b29a8d71a3fb697a85f82f2678774c975f
Auto-generated-cl: translation import
2017-02-22 07:53:34 -08:00
Sunny Goyal
e3db7a87e9 Merge "Fixing accessibility description for all-apps grid adapter. Only counting app icons towards various collection related info" into ub-launcher3-master 2017-02-22 01:18:17 +00:00
Sunny Goyal
4497361984 Fixing accessibility description for all-apps grid adapter.
Only counting app icons towards various collection related info

Change-Id: I2aca87e1acf6cd7bdaddfbaad174e273e8272d4b
2017-02-21 16:45:48 -08:00
Jon Miranda
6dc7f1e000 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
2017-02-21 12:37:51 -08:00
TreeHugger Robot
232f6a3884 Merge "Launcher3: fix app shortcuts for suspended apps" into ub-launcher3-master 2017-02-21 20:33:33 +00:00
Charles He
3ff9047221 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
2017-02-21 20:23:50 +00:00
Jon Miranda
48dfd26195 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
2017-02-21 09:07:00 -08:00
Tony Wickham
872943ed69 Merge "Remove badges when launcher loses notification access" into ub-launcher3-master 2017-02-21 16:45:04 +00:00
Tony
be3c7d0c56 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
2017-02-21 08:44:28 -08:00
Sunny Goyal
80f4c9d830 Enabling translation for string relates to Add to homescreen confirmation prompt
Bug: 34819119
Change-Id: Id4c522319c92641faa28bb685f4ea4658aa4ec9e
2017-02-17 12:11:24 -08:00
Sunny Goyal
519fbdb2b3 Merge "Simplifying some launcher themes" into ub-launcher3-master 2017-02-17 17:53:58 +00:00
TreeHugger Robot
dd88dd16c5 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2017-02-17 07:43:38 +00:00
Bill Yi
3cfa7d919f Import translations. DO NOT MERGE
am: e5c99a2140  -s ours

Change-Id: Ifffdd23bc65534039a330bf77ceffaba418982ba
2017-02-17 07:40:20 +00:00
Bill Yi
953f9f90c5 Import translations. DO NOT MERGE
Change-Id: Id2b9f6fbdd4aea3663ba8e418888bac8cf956da3
Auto-generated-cl: translation import
2017-02-16 23:31:06 -08:00
Bill Yi
e5c99a2140 Import translations. DO NOT MERGE
Change-Id: If87152e5d565c37127110756f1185f82833ec685
Auto-generated-cl: translation import
2017-02-16 23:30:20 -08:00
Adam Cohen
09f5a96a71 Merge "Add notification listener back to the manifest" into ub-launcher3-master 2017-02-17 00:50:57 +00:00
Tony
4d8019abf4 Add notification listener back to the manifest
This reverts commit d27b65d4d0.

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
2017-02-16 16:38:54 -08:00
Sunny Goyal
1f3f07d47c Simplifying some launcher themes
> Replacing some colors with theme attributes
> Simplifying styles definition by removing unnecessary inheritance and inlining some definitions

Change-Id: Ifa167515cae6a7fd3720f1a52ff9ce11abb4495f
2017-02-16 15:24:37 -08:00
Tony Wickham
2f64ffe53e Merge "Ensure that filtered notifications are removed from BadgeInfo." into ub-launcher3-master 2017-02-16 23:17:31 +00:00
TreeHugger Robot
93bc3c1e41 Merge "Separating methods for updating the model to a sepatate class." into ub-launcher3-master 2017-02-16 21:56:39 +00:00
Sunny Goyal
43bf11d9c9 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
2017-02-16 13:50:14 -08:00
Sunny Goyal
a74e92a75a Merge "Updating the shortcut preview generation logic" into ub-launcher3-master 2017-02-16 21:48:28 +00:00
Sunny Goyal
7d87cb1a6e 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
2017-02-16 13:41:04 -08:00
Sunny Goyal
9e76f682f3 Removing wrapper around ViewPropertyAnimator, and using ObjectAnimator
instead

Bug: 35218222
Change-Id: Ic714cf7d20989cb45f07712e8a6f6659d0e3f30d
2017-02-16 11:19:01 -08:00
TreeHugger Robot
eb04b84153 Merge "Fixing wrong check for grid migration" into ub-launcher3-master 2017-02-16 18:08:15 +00:00
Sunny Goyal
6130fa91af Merge "Adding some logging around launcher grid when device profile changes" into ub-launcher3-master 2017-02-16 18:01:46 +00:00
Tony Wickham
4f43bbe048 Merge "Animate notification background color directly" into ub-launcher3-master 2017-02-16 16:39:17 +00:00
Tony Wickham
05661918eb Merge "Ignore touches before notification is populated" into ub-launcher3-master 2017-02-16 16:38:59 +00:00
Tony
ffb0b68ae2 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
2017-02-15 16:39:22 -08:00
Tony Wickham
7aefaae5d9 Ignore touches before notification is populated
Bug: 35398757
Change-Id: I24f1b66787af7c7caeb325e9a1f3e6ef86e62b81
2017-02-15 16:05:40 -08:00
Tony Wickham
0891d1fd9b Fallback to WallpaperManager#getDrawable() if getWallpaperFile() is null
Bug: 34521181
Change-Id: Ifc5f7cd9a11ff1f66acaadaea494ba4a0d142c3c
2017-02-15 14:53:08 -08:00
Sunny Goyal
f3a13e1584 Fixing wrong check for grid migration
Change-Id: I0475512302fd185fcd984d032cf19b34df3f8840
2017-02-15 14:42:47 -08:00
Sunny Goyal
c29de85780 Adding some logging around launcher grid when device profile changes
Bug: 35349518
Change-Id: Ia71504cd37749f8eaa5e038ac2867bcd9749a4bb
2017-02-15 14:40:30 -08:00
TreeHugger Robot
a59402f98c Merge "Adding minSDK for test targets" into ub-launcher3-master 2017-02-15 18:53:20 +00:00
Sunny Goyal
c9a489c75c Adding minSDK for test targets
Bug: 35079440
Change-Id: Ie27eebe7afaed6a80efc43cb41f651e8acabc835
2017-02-15 10:39:35 -08:00
Hyunyoung Song
06d4be29cf Merge "Hide legacy icon treatment behind a flag." into ub-launcher3-master 2017-02-14 18:25:27 +00:00
Sunny Goyal
b7f52ec0d1 Merge "Initializing LauncherAppState only on the main thread" into ub-launcher3-master 2017-02-14 18:02:33 +00:00
Hyunyoung Song
42c9434346 Hide legacy icon treatment behind a flag.
Change-Id: I662f1317945e6dd175fd03dbabc264e45c18dcee
2017-02-14 09:23:30 -08:00
Sunny Goyal
fdbef27759 Initializing LauncherAppState only on the main thread
Bug: 33032833
Change-Id: I7992a5358142dde80aeaf8c6b7a6c7bfef2c8a00
2017-02-13 17:36:18 -08:00
TreeHugger Robot
7d093e75f6 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 2017-02-14 00:29:47 +00:00
Sunny Goyal
2ae9c85bd7 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
2017-02-13 15:43:40 -08:00
Sunny Goyal
ef1292149a Revert "Changing LauncherViewPropertyAnimator to use ValueAnimator"
Issue: Animations do not run

This reverts commit 33c04705be.

Change-Id: I069379ac1003c4b11e008b82530c952a66604459
2017-02-13 20:03:08 +00:00
Sunny Goyal
33c04705be Changing LauncherViewPropertyAnimator to use ValueAnimator
Using ValueAnimator allows better support for changes in Animator
APIs.

Bug: 35218222
Change-Id: I4efa470b4bb686328539d35d8e23e297a4ac885a
2017-02-13 09:20:34 -08:00
Tony Wickham
988f34b7f2 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
2017-02-13 07:02:26 -08:00
TreeHugger Robot
ee544c5d24 Merge "Making methods in PaackageManagerHelper non-static" into ub-launcher3-master 2017-02-09 23:28:21 +00:00