Jon Miranda
5ab0d896c6
Send directed broadcast to package installers that have active sessions.
...
For each installer, we send a broadcast that includes package names of items that:
* Are being installed by that installer
* Are on the first screen
* Have an active install session
The packages are seperated by:
* Folder items
* Workspace items
* Hotseat items
* Widgets
Bug: 74355094
Change-Id: I573ed6b3b84314ef244486fcf8354bebdff8bbdf
2018-03-27 12:32:49 -07:00
Tony Mak
1b6826c53c
Deprecate work folder
...
FIX: 73876183
Change-Id: I9d15df247eed3500c679cba085c680b75581cffb
2018-02-27 17:47:22 +00:00
Tony Mak
b5950bbd6c
Update label accordingly when work mode is changed
...
Also, updates the work related strings accordingly.
Fix: 71987096
Change-Id: Iedbf6ee04f3a165a392efdf2bd351817997817ca
2018-01-16 21:33:56 +00:00
Tony Mak
9f082604b0
Rename trySetQuietModeEnabled to requestQuietModeEnabled as per ...
...
the feedback from API council
Fix: 71818127
Test: Build
Change-Id: I4bfb0eecb281961e24a4f613485420e9e8b357ab
2018-01-13 16:10:33 +00:00
Sunny Goyal
18a4e5aefb
Making LauncherIcons thread safe
...
Creating a pool of LauncherIcons so that they can be used from multiple threads
Change-Id: Idc7b5ddb47b6e338a5389f3c4faa6f63de108c72
2018-01-09 17:30:52 -08:00
TreeHugger Robot
01629fea69
Merge "Consume work mode API" into ub-launcher3-master
2018-01-04 19:14:17 +00:00
Tony Mak
6eeb040d86
Consume work mode API
...
Fix: 69905244
Change-Id: I5958b3a2ebba2fa0e0f69448d5526dc72ed6a97b
2018-01-04 19:06:01 +00:00
Sunny Goyal
179249d804
Dominant color is part of icon cache
...
> Calculating extracted color during icon generation and storing it in model and DB
> Removing unused logic avoid various types of badge rendering
> Icons are badged with extracted colors, while folder is badged with theme color
Bug: 35428783
Change-Id: I93e30c52fbded7515c3ae1778422e84672eafb56
2018-01-03 16:55:58 -08:00
Sunny Goyal
d0030b05f5
Adding placeholder method for compat implementations for Accessibility manager
...
> Moving some utility methods to the compat class
Bug: 69611105
Change-Id: Ide0cab0b926d7bc03617fc568d2a2b429ee00cd9
2017-12-08 16:09:45 -08:00
Sunny Goyal
031022029b
Using state animation to control all-apps transition
...
> Separating all-apps transtions control and vertical shift touch handling
> Creating separate spring handler for search box (to avoid adding and removing spring)
> Driving all-apps vertical shift using state AnimatorSet
Bug: 67678570
Change-Id: I3b6a4d1f43275a5f485b399444742b6b9a8c4bb9
2017-10-31 15:29:02 -07:00
Sunny Goyal
5bc6b6f14c
Consolidating various interpolators
...
Change-Id: I9588eee3552001b162a1e8d5ccefcfb44d221880
2017-10-26 16:38:55 -07:00
Sunny Goyal
b871c13ee3
Adding a compat implementation for playback control on AnimatorSet
...
Change-Id: I9f01fc319341cf2499fffb59521d32c2c81eba45
2017-10-26 10:18:41 -07:00
Sunny Goyal
f2dd4216c1
Removing extraction service and palette api dependency
...
Change-Id: I30ad1a1462a97b6bc03f8e386ae3058c7fe022e5
2017-09-29 10:40:08 -07:00
Sunny Goyal
952e63d006
Fixing custom widgets support:
...
> Moving the definitions to xml so that it is easier to override in derivative projects
> Fixing verious bind and save logic for custom widgets
> Adding feature flag to easily disable custom widgets
Change-Id: I0e278bc7dd415713029364060ef10842da990be9
2017-09-13 14:04:35 -07:00
Hyunyoung Song
e24cb63b81
WallpaperManagerCompat should target correct platform
...
Also replace Utilities.isAtLeastO() to static final constant.
Bug: 65544683
Change-Id: I39fbea66939d72c31702748716c4e65b4f9bee6a
2017-09-11 12:17:09 -07:00
Mario Bertschler
2b1073994c
Try-catching getColorHints in wallpapermanager compat.
...
Change-Id: I1b2fbbdfeecb46d1864dad888f4c7e9765a25715
2017-09-06 14:06:09 -07:00
Mario Bertschler
aeed7f24f2
Remove reflection from wallpaper manager for wallpaper colors.
...
Bug: 65016704
Change-Id: I36bac7a3cd9cd4911657e693a424c9960cb9d042
2017-09-05 14:58:30 -07:00
Mario Bertschler
78356a542e
Adjusting reflection api for color addOnColorsChangedListener that
...
caused reflection to break. The new api method is available in both
DR and MR1.
Bug: 64908004
Bug: 64839046
Change-Id: I812c320e2c817aea8264de8764e33ad218b591c5
2017-08-21 15:25:55 -07:00
Sunny Goyal
64a75aa305
Adding A feature flag to disable widgets and a corresponding build
...
target Launcher3Go without widgets support
Bug: 62353159
Change-Id: Ia03d2235a9bcf75f9ef191924f81630e63a2c684
2017-07-21 14:10:13 -07:00
Mario Bertschler
e5f4939cba
Supporting dark theme hint for wallpaper colors.
...
Bug: 63143283
Change-Id: I0815d22215409d781348d74baace8cb5d1e15fb8
2017-07-10 11:17:55 -07:00
Rajeev Kumar
50db3ad437
Merge "1. Replace use of java.util.HashMap with android.util.ArrayMap in LauncherAppsCompatVL class. 2. Fix Synchronization on a non-final field 'mCallbacks'. 3. Add missing @Override to the overriden methods. 4. Add missing @NonNull to the method parameters. Bug: 62466540" into ub-launcher3-dorval-polish
2017-06-22 17:19:24 +00:00
Sunny Goyal
027fba3527
Refactoring PinItemDragListener into a base class to allow diffenret implementations
...
of multi-window drag and drop
Bug: 62702235
Change-Id: Ie87e0f7d131575bac1cb1099b0a70b230560be9a
2017-06-20 13:48:38 -07:00
Mario Bertschler
636e081ab7
Applying API changes on WallpaperColors.
...
Bug: 62719001
Change-Id: Iabe2e446bd05c41ec910ed2ad534d623285e7e63
2017-06-19 14:47:57 -07:00
Rajeev Kumar
f75faf8036
1. Replace use of java.util.HashMap with android.util.ArrayMap in
...
LauncherAppsCompatVL class.
2. Fix Synchronization on a non-final field 'mCallbacks'.
3. Add missing @Override to the overriden methods.
4. Add missing @NonNull to the method parameters.
Bug: 62466540
Change-Id: I0d650bfe5b7e390db7090c2ae29a8622d49073d7
2017-06-15 16:56:49 -07:00
Rajeev Kumar
8cae50d8b2
Replace use of java.util.HashMap with android.util.ArrayMap in
...
UserManagerCompatVL class
Bug: 62466540
Change-Id: Ia492a9189ae950d2a96b79b786dc447afa982c21
2017-06-14 19:05:37 -07:00
Rajeev Kumar
bf3366f0d9
Fix synchronization on a non-final field 'sInstanceLock' by making
...
it final.
Bug: 62466540
Change-Id: I28a1c53435d761089b2ee7742d31a0cb482b8afd
2017-06-12 13:11:29 -07:00
Sunny Goyal
8231596619
Updating the WallpaperManagerCompatVL to use JobSchedular instead of intent service
...
Bug: 62065291
Change-Id: I5872cea1b110268e9593eeb6397e94ecea1bc03d
2017-06-08 15:39:38 -07:00
Sunny Goyal
9d887a2c45
Adding a utility method for getting device prefs
...
Change-Id: I1e3c7df0a3f4e847b40d722d44890e441cc73509
2017-06-08 14:00:54 -07:00
Sunny Goyal
9d1aa13a97
Some fixes in the compat implementation of wallpaper manager
...
Change-Id: I781fd520e812aaeaab42b8b765d7e7f2e64a96a1
2017-05-23 16:26:22 -07:00
Sunny Goyal
3e93ec558a
Adding compat implementation for the new WallpaperManager APIs for color extraction
...
Change-Id: Ie06c9ac3a77cd33d22ce298a55e234078895c3a0
2017-05-23 14:03:03 -07:00
Sunny Goyal
a474a9bcf5
Simplifying logic for managed for icon addition
...
> Checking for duplicate icons before adding new icons
For O and above, icon addition is controlled using
SessionCommitReceiver.
As long as the Launcher is the default app, it will keep adding
icons on the homescreen. Apps installed while launcher was
not the default homescreen, no icons will be added.
For below O, icons are added based on package event. As long as
the Launcher process is running, it will keep adding icons on the
homescreen. Apps installed while the launcher app was dead, no
icons will be added.
Bug: 37528649
Bug: 37082950
Bug: 34112546
Change-Id: Ic99501fa476c00474a479f2a36c24614bfa3f4bf
2017-05-22 13:31:04 -07:00
Sunny Goyal
22ca9ec137
Removing various reflection calls with final APIs
...
Change-Id: Ibf48d6015d808f86bc79ccf64e3077eb5b6ccaff
2017-05-22 11:00:29 -07:00
Mario Bertschler
6d696f8d7c
Fixes a bug in verifying the validity of a session info.
...
b/38276210
Change-Id: I4c89fb60b21d4dbc70efb91111ac16ec16bdea4f
2017-05-15 10:16:12 -07:00
Tony Wickham
a2d1540c0e
resolve merge conflicts of 82eb1f0ea to ub-launcher3-dorval-polish
...
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Ic1f6ace04ec2c11206276df76ef7a20df545d604
2017-05-03 12:59:09 -07:00
Tony
e3c5925679
Use source bounds/activity options for App Info System Shortcut
...
Bug: 37923215
Change-Id: I6c3e64b7a98223ab26fde80c0a86dd169200065f
2017-05-02 21:32:27 -07:00
Sunny Goyal
20141feb21
Merge "Updating getApplicationInfo to handle NameNotFoundException" into ub-launcher3-dorval
...
am: 932f25ee18
Change-Id: I126ce1c79ae58ee251d2f77e8aa8fd78c01f9d12
2017-04-17 17:29:00 +00:00
TreeHugger Robot
932f25ee18
Merge "Updating getApplicationInfo to handle NameNotFoundException" into ub-launcher3-dorval
2017-04-17 17:21:34 +00:00
Sunny Goyal
135c1be5a3
Updating getApplicationInfo to handle NameNotFoundException
...
Bug: 37324177
Change-Id: If4caf7c61667fc874e7dbaff9f8c48b2c2cc107f
2017-04-17 10:03:29 -07:00
Tony Wickham
616bb65051
Merge "Remove reflection for a couple of methods" into ub-launcher3-dorval
...
am: 46b3a13528
Change-Id: I193c67e00b8c6fe88602a90e066252c69cc79e42
2017-04-12 00:40:18 +00:00
Tony Wickham
8eaa8e64ac
Remove reflection for a couple of methods
...
Bug: 36855196
Change-Id: I3e6b2901d1c12fffd0172e85df98e2e17e737168
2017-04-11 16:39:58 -07:00
Tony Wickham
6c300c89ec
resolve merge conflicts of 128b7e59a to ub-launcher3-master
...
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I927373593dfb1b67b504a76b1ad013357b363a6e
2017-04-05 13:14:01 -07:00
Tony Wickham
86222d23e2
Add support for getting widgets/shortucts for a particular package/user
...
Bug: 34940468
Bug: 33553066
Change-Id: I5d0131df206c6a13d4227ad28c5b094bbf1343df
2017-04-04 14:36:52 -07:00
Sunny Goyal
67a25e6ff1
Fixing broken build
...
Change-Id: I9ec4dea773d1ca53522a216028a99fc3ed147f54
2017-03-30 18:45:53 -07:00
Sunny Goyal
917f4a44cb
Merge "Delay the PinItemRequest#accept() call until the drop animation is finished." into ub-launcher3-dorval
...
am: 4a907d0f9d
Change-Id: Icd6d070199cd685633ead1301bda9d3e4de698c9
2017-03-30 23:37:42 +00:00
Sunny Goyal
8a39b42cc8
Delay the PinItemRequest#accept() call until the drop animation is finished.
...
This prevents the caller app from taking over the focus while animation
it running.
Change-Id: I51b6673c59e848c263727502dee90504ed3a2162
2017-03-30 15:31:44 -07:00
Sunny Goyal
4f209caed5
Merge "Adding logging for various interaction in PinItemRequest UI" into ub-launcher3-dorval
...
am: c5c9cae70d
Change-Id: I0be49e2a81b9ee284230672c368a03f3aaef7916
2017-03-30 19:02:25 +00:00
Mario Bertschler
c06af333cb
Minor Refactoring only: no functional change
...
- organizing imports
- remove redundant modifiers on LauncherCallback interface
- fix typos
Change-Id: I61eb985cac7c1379b6b804a67d4f234386d3d1b4
2017-03-28 12:23:22 -07:00
Sunny Goyal
778634c818
Adding logging for various interaction in PinItemRequest UI
...
Bug: 34766840
Change-Id: Ib29d7d4b53ab99cdf3ff253976ef55345729487b
2017-03-22 16:47:21 -07:00
Mario Bertschler
bf2d46efad
Enable Promise App Icon in All Apps.
...
- feature flag defaults to true
- avoid adding additional workspace shortcut if promise shortcut already
exists
- handle promise app removal in package added callback for success case
Change-Id: I694701e35cc94481a9c337df3a17b1e5aa2c3b4c
2017-03-21 16:44:38 -07:00
Sunny Goyal
bf4327520c
Merge "Removing config shortcut activities for managed profiles for apps build with older sdk" into ub-launcher3-dorval
...
am: aeb60bffc9
Change-Id: I9570796d6ef999c346ac856b997c13685b51ac39
2017-03-20 22:25:15 +00:00