History log of /packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompatVL.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f75faf80368d3e759730f269708ab494f1fd6b24 16-Jun-2017 Rajeev Kumar <rajekumar@google.com> 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
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompatVL.java
e3c59256794448c67e01333a9f5036559b1bd502 03-May-2017 Tony <twickham@google.com> Use source bounds/activity options for App Info System Shortcut

Bug: 37923215
Change-Id: I6c3e64b7a98223ab26fde80c0a86dd169200065f
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompatVL.java
86222d23e28a09a7a26e7a0d4b4830ded2efb384 30-Mar-2017 Tony Wickham <twickham@google.com> Add support for getting widgets/shortucts for a particular package/user

Bug: 34940468
Bug: 33553066
Change-Id: I5d0131df206c6a13d4227ad28c5b094bbf1343df
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompatVL.java
f2db25398a029b6f13afccbec331e35c8007dde6 02-Mar-2017 Sunny Goyal <sunnygoyal@google.com> Fixing wrong check being used for application status

Earlier we were relying on activity list to check is an app is
installed or not. It fails if the app only exposes widgets and
no visible activity. Hence dragging an icon to AppInfo sometimes
causes the icon to get disappear.

Bug: 33241335
Change-Id: Ieb71e298a0930dd0a831cf09bd1e998514a427fd
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompatVL.java
ad2e91a216edae0f25bce83a2b058c81953981af 01-Mar-2017 Sunny Goyal <sunnygoyal@google.com> Fixing SDCard and package enabled state checks in PackageManagerHeler

Bug: 32365540
Change-Id: Iaac3e08ce55457ebbfb3633514ebc8ade6d200c5
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompatVL.java
3ff9047221820a01c6510503466f8c78b43fdc6d 15-Feb-2017 Charles He <qiurui@google.com> 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
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompatVL.java
782f0c9a896db58aeaa60d15f291831b8d7b4c93 19-Jan-2017 Sunny Goyal <sunnygoyal@google.com> Adding support for new APIs in O related to configurable shortcuts

> Config activities can now return PinItemRequest which can be used to pin
deep shortcuts

Bug: 33584624
Change-Id: Ic0df436bd79e069615b9d60d24eb7594b824b2da
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompatVL.java
3e9be43b6ea75c8b82b57aa58508a0c3e8e1d721 06-Jan-2017 Sunny Goyal <sunnygoyal@google.com> No more LauncherActivityInfoCompat

Bug: 32745285
Change-Id: I00f13794d5dc0a2b1fe03ec74de36018f22eb386
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompatVL.java
a52ecb0390c85afb385371bb844bb496c59ddf87 17-Dec-2016 Sunny Goyal <sunnygoyal@google.com> Removing all compatibility code below Lollipop

Bug: 32745285
Change-Id: I62971908e3e4402941fab627bbdfd47be64473a3
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompatVL.java
7c74e4ae641e76f73d74348e293c244a157f6585 16-Dec-2016 Sunny Goyal <sunnygoyal@google.com> No more UserHandleCompat

Bug: 32745285
Change-Id: I762fb4e268c1afe48a1860ab12a4ccb3f626aa95
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompatVL.java
bfbf7f9f4a0b300613f0ff27a4eb592d88c08325 19-May-2016 Tony Wickham <twickham@google.com> Add support for launcher shortcuts.

- This CL has no UI but provides the necessary backing for one.
- Adds new item type: ITEM_TYPE_DEEP_SHORTCUT, to distinguish from
ITEM_TYPE_SHORTCUT. We can reconsider these names.
- Adds ShortcutCache, using LruCache for up to 30 dynamic shortcuts
(pinned shortcuts are always cached in a HashMap).
- DeepShortcutManager queries for shortcuts and other things like
pin them. In a future CL it will use the cache, but for now it
simply makes an RPC for all queries.
- LauncherModel maintains counts for pinned shortcuts, pinning and
unpinning when counts reach 1 or 0, respectively.
- LauncherModel maintains a map of components to lists of shortcut ids,
which Launcher gets a copy of after it is changed in the background.
This will allow us to know how many shortcuts an app has immediately,
and query for details as the UI is animating.

Change-Id: Ic526f374dd10d72a261bae67f07f098fca8d8bca
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompatVL.java
44cba696386b44f9115cad13ec9ecf67a0ac9119 21-Jan-2016 Kenny Guy <kennyguy@google.com> Grey out suspended applications.

Grey out application shortcuts and all apps entries
for packages that are suspended.

Bug: 22776761
Change-Id: I1b63da1816aca1de52b9f9bee62d1b162d0cdf4d
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompatVL.java
b1622cc30f2fd9b579cb918083e063685950df92 11-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Deleting empty folders based on DB state

> Previously folders were getting deleted based on in-memory
loader state. If for some reason, an item failed to load, we would
delete the folder from DB as well.

Bug: 21354058
Change-Id: I5318ee8a99afa9cafd93ed2b9ef0e155f502a41b
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompatVL.java
7066003b2032a49ae5e59dab9b706259bdeb7e6e 14-May-2015 Sunny Goyal <sunnygoyal@google.com> Various lint error fixes.

> Fixing some RTL errors by specifying both marginStart and marginLeft
> Moving all layout direction checks to Utilities
> Explicitely adding @TargetApi before every method

Change-Id: Ibe9c52b93b5a6adeadb27ace2b312770fd732ea0
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompatVL.java
850d471b29f853d12cdba7104b3d8ba0159c9540 18-Sep-2014 Kenny Guy <kennyguy@google.com> Remove catch now api has hit googlefood.

Bug: 17543647
Change-Id: Ie0b57719393a705e8c02b226d3e3f57dbf43d800
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompatVL.java
577e7dc7db00fb255869a5a0c845010a29d02838 11-Sep-2014 Kenny Guy <kennyguy@google.com> Update compat layer for API review changes to LauncherApps

Bug:17390765
Change-Id: I15a927402a05387b14a2a6899fd513fc59a2ee41
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompatVL.java
4da9efa5183c86966946d90f41be435cd1dcbaf4 26-Aug-2014 Kenny Guy <kennyguy@google.com> Updated calls for LauncherApps renaming.

Bug: 17008230
Change-Id: Id851d0b40756973be48c5ce370dd64c1dd6a3c1d
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompatVL.java
f07af7b77de0319355e228e8630824d924522d78 31-Jul-2014 Kenny Guy <kennyguy@google.com> Launch app details for correct profile.

Support showing app details for apps in other
profiles.

Bug: 16371359

Change-Id: I1cabcd9f74f2a6ea6c4202a7d58af3ff3b458fd2
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompatVL.java
c2bd8101b8e26b9ebb2c079ae6867229dad3f196 30-Jun-2014 Kenny Guy <kennyguy@google.com> Revert "Revert Cls stopping now-master running on googlefood"

This reverts commit 7bc272a11b701a32d2ed91277341c382cbd84aeb.

Conflicts:
src/com/android/launcher3/BubbleTextView.java

Change-Id: Id1fb2e1249e72658ce5477165c9bcacba9de2b04
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompatVL.java
7bc272a11b701a32d2ed91277341c382cbd84aeb 24-Jun-2014 Kenny Guy <kennyguy@google.com> Revert Cls stopping now-master running on googlefood

This reverts commits 01453e855fa87ee19f61223b2b1a6965071ee95a.
and 242bbe1b72e4978dde8a662d164cd186305e14a7.
"Add content description to bagded icons."
"Remove reflection now we are building against L"

Bug: 15833449
Change-Id: I81a5316f5619a9cd3b6ab9fd03b2ba96657b7f68
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompatVL.java
242bbe1b72e4978dde8a662d164cd186305e14a7 12-Jun-2014 Kenny Guy <kennyguy@google.com> Remove reflection now we are building against L

Remove reflection and update changed renamed L APIs
now that branch has L sdk.

Change-Id: I223c6528487110eb328e2e229bbcbefb701e0c20
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompatVL.java
792dd77e8c6fed786ef95da0cd9f5c342c9f1f6b 14-May-2014 Kenny Guy <kennyguy@google.com> Return null from compat when resolveActivity returns null.

Fixes bug that LauncherAppsCompatVL.resolveActivity was wrapping
a null in a compat class when LauncherApps.resolveActivity returns
null.

Bug: 14891460
Change-Id: I0364b198486f14393e51ac383a9d10b89e466bdf
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompatVL.java
ed13187a745866483139e2878037e1f8427ce567 30-Apr-2014 Kenny Guy <kennyguy@google.com> Launcher3 multi-profile support

Use LauncherApps API and badging APIs instead of PackageManager.
With compatability layer that uses PackageManager pre L.

Adds support to show apps from current user and any managed profiles.

Background: Managed profiles are user sandboxes that are visible from
the primary user and can be launched as if they are a part of this user.
A launcher should now be capable of listing apps from this user as well
as related profiles of this user.

Launching of activities is now via the LauncherApps interface, to allow
for cross-profile app launching. Only activities with category LAUNCHER
can be added as a shortcut on the workspace for a managed profile.

Widgets and non-application shortcuts are only supported for the
current profile. Widgets from the managed profile are not available.

Change-Id: I5f396b1bf7f91ad91a5710ea4a0fd14573972eb9
/packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompatVL.java