History log of /packages/apps/Launcher3/src/com/android/launcher3/compat/LauncherAppsCompatVL.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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