summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/compat/LauncherAppsCompatVL.java
Commit message (Collapse)AuthorAgeFilesLines
* 1. Replace use of java.util.HashMap with android.util.ArrayMap inRajeev Kumar2017-06-151-8/+16
| | | | | | | | | | 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
* Use source bounds/activity options for App Info System ShortcutTony2017-05-021-2/+3
| | | | | Bug: 37923215 Change-Id: I6c3e64b7a98223ab26fde80c0a86dd169200065f
* Add support for getting widgets/shortucts for a particular package/userTony Wickham2017-04-041-3/+12
| | | | | | Bug: 34940468 Bug: 33553066 Change-Id: I5d0131df206c6a13d4227ad28c5b094bbf1343df
* Fixing wrong check being used for application statusSunny Goyal2017-03-011-1/+2
| | | | | | | | | | 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
* Fixing SDCard and package enabled state checks in PackageManagerHelerSunny Goyal2017-03-011-3/+23
| | | | | Bug: 32365540 Change-Id: Iaac3e08ce55457ebbfb3633514ebc8ade6d200c5
* Launcher3: fix app shortcuts for suspended appsCharles He2017-02-211-0/+7
| | | | | | | | | | | | | | | | | | 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
* Adding support for new APIs in O related to configurable shortcutsSunny Goyal2017-01-191-1/+17
| | | | | | | | > Config activities can now return PinItemRequest which can be used to pin deep shortcuts Bug: 33584624 Change-Id: Ic0df436bd79e069615b9d60d24eb7594b824b2da
* No more LauncherActivityInfoCompatSunny Goyal2017-01-111-18/+4
| | | | | Bug: 32745285 Change-Id: I00f13794d5dc0a2b1fe03ec74de36018f22eb386
* Removing all compatibility code below LollipopSunny Goyal2016-12-161-18/+14
| | | | | Bug: 32745285 Change-Id: I62971908e3e4402941fab627bbdfd47be64473a3
* No more UserHandleCompatSunny Goyal2016-12-151-25/+21
| | | | | Bug: 32745285 Change-Id: I762fb4e268c1afe48a1860ab12a4ccb3f626aa95
* Add support for launcher shortcuts.Tony Wickham2016-06-211-2/+17
| | | | | | | | | | | | | | | | | | | - 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
* Grey out suspended applications.Kenny Guy2016-01-251-1/+13
| | | | | | | | Grey out application shortcuts and all apps entries for packages that are suspended. Bug: 22776761 Change-Id: I1b63da1816aca1de52b9f9bee62d1b162d0cdf4d
* Deleting empty folders based on DB stateSunny Goyal2015-06-121-1/+1
| | | | | | | | | > 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
* Various lint error fixes.Sunny Goyal2015-05-141-0/+2
| | | | | | | | > 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
* Remove catch now api has hit googlefood.Kenny Guy2014-09-181-10/+2
| | | | | Bug: 17543647 Change-Id: Ie0b57719393a705e8c02b226d3e3f57dbf43d800
* Update compat layer for API review changes to LauncherAppsKenny Guy2014-09-111-2/+10
| | | | | Bug:17390765 Change-Id: I15a927402a05387b14a2a6899fd513fc59a2ee41
* Updated calls for LauncherApps renaming.Kenny Guy2014-08-291-7/+7
| | | | | Bug: 17008230 Change-Id: Id851d0b40756973be48c5ce370dd64c1dd6a3c1d
* Launch app details for correct profile.Kenny Guy2014-08-041-0/+4
| | | | | | | | | Support showing app details for apps in other profiles. Bug: 16371359 Change-Id: I1cabcd9f74f2a6ea6c4202a7d58af3ff3b458fd2
* Revert "Revert Cls stopping now-master running on googlefood"Kenny Guy2014-06-301-119/+43
| | | | | | | | | This reverts commit 7bc272a11b701a32d2ed91277341c382cbd84aeb. Conflicts: src/com/android/launcher3/BubbleTextView.java Change-Id: Id1fb2e1249e72658ce5477165c9bcacba9de2b04
* Revert Cls stopping now-master running on googlefoodKenny Guy2014-06-241-43/+119
| | | | | | | | | | 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
* Remove reflection now we are building against LKenny Guy2014-06-231-119/+43
| | | | | | | Remove reflection and update changed renamed L APIs now that branch has L sdk. Change-Id: I223c6528487110eb328e2e229bbcbefb701e0c20
* Return null from compat when resolveActivity returns null.Kenny Guy2014-05-141-2/+7
| | | | | | | | | Fixes bug that LauncherAppsCompatVL.resolveActivity was wrapping a null in a compat class when LauncherApps.resolveActivity returns null. Bug: 14891460 Change-Id: I0364b198486f14393e51ac383a9d10b89e466bdf
* Launcher3 multi-profile supportKenny Guy2014-04-301-0/+204
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