summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/compat
Commit message (Collapse)AuthorAgeFilesLines
* Using the usermanager api to get creation timeSunny Goyal2015-08-211-1/+4
| | | | | Bug: 22539048 Change-Id: I17647f2456434ca66a9778300e1a2910cec171d4
* Version code cleanupSunny Goyal2015-08-177-14/+15
| | | | | | | | > Renaming Lmp to Lollipop > Lollipop_MR1 instead of directly using 22 > Using M APIs directly instead of reflection Change-Id: I10a307f46e3be15b3299f549a2fd7e0e215a6a1b
* Using a reverse hashmap instead of indexOfValue in userManagerSunny Goyal2015-08-052-11/+22
| | | | | Bug: 22980139 Change-Id: I87b633d194ff4e1529dd679dc02da573ed374207
* Creating a cache of users to avoid multiple calls to UserManagerSunny Goyal2015-08-044-6/+74
| | | | | Bug: 22805101 Change-Id: I9cd270efd74fdd34a7eb738fc25797e6f1bf2487
* Merge "Deleting empty folders based on DB state" into ub-launcher3-burnabySunny Goyal2015-06-182-2/+2
|\
| * Deleting empty folders based on DB stateSunny Goyal2015-06-122-2/+2
| | | | | | | | | | | | | | | | | | > 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
* | Making UserHandleCompat constructor publicSunny Goyal2015-06-161-1/+1
| | | | | | | | Change-Id: Ied4c62964e608d543f0bcf3b232c0df7b57bdf5d
* | Work profile badge alignmentHyunyoung Song2015-06-152-6/+7
|/ | | | | | b/21336417 Change-Id: Icd54320fa0d0976cac0ae66d180cc2c99ddd0c1c
* Merge "Place the work profile badge in the correct bottom right (left for ↵Hyunyoung Song2015-05-153-4/+6
|\ | | | | | | RTL) location" into ub-launcher3-burnaby
| * Place the work profile badge in the correct bottom right (left for RTL)Hyunyoung Song2015-05-143-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | location Also: - clean up of some code - remove requestLayout() method call that is not needed. b/20338602 Change-Id: I65e0e1ac40da2e3fa85af4d3aca54bed3f200a99
* | Various lint error fixes.Sunny Goyal2015-05-147-9/+18
|/ | | | | | | | > 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
* Tweaking section processing for different languagesWinson Chung2015-05-121-4/+23
| | | | | | | | | | - Ensuring that apps with non-letter/digit characters are ordered last in the misc bucket - Removing duplicate latin-alphabet sections for Simplified Chinese - Adding more appropriate misc bucket label for Japanese Bug 21022854 Change-Id: I62c7b219820ef88787fcfa83f1bd4202f16f9c0c
* Trim all whitespace from titles and labels.Winson Chung2015-05-082-4/+6
| | | | | | Bug: 20953160 Change-Id: I1610df5e445a4139522226f68fa6439926bc70c6
* Fixing missing updates in package install sessionsSunny Goyal2015-04-223-273/+39
| | | | | | | | | | | | > Ensure icon cache never returns null icon > Enabling install shortuct receiver only after workspace has finished binding > Making all the model changes for package installs on worker thread and only posting the updaes on the UI > Making shortcut exists check on the loaded items and not on the DB > Explicitely using worker thread for PckageInstallListener > Removing backward compatibility support from PackageInstallerCompat Change-Id: I9592771b9670c1c1c84c8208cae8dafa7b393e65
* Automatically adding managed profile shortcuts to homescreen.Sunny Goyal2015-04-103-1/+25
| | | | | | | | | | | | When the managed profile is created, a "Work" folder is created and added to the homescreen. All work profile apps are added to this folder and icons for subsequent installs (withing a fixed time frame) are automatically added to this folder. If this folder get deleted or the time-frame expires, icon for any new install is placed on the homescreen. Bug: 17410319 Change-Id: I49f4e437707d5eabe4eec85320765bf6ba7fde97
* Deduping shortcuts to app-shortcuts if they have a valid intentSunny Goyal2015-04-101-0/+9
| | | | | | | > Only deduping shortcuts for the primary user as custom shortcuts for secondary users is not supported. Change-Id: If129dee64a395602006ebb996d4b09b93b89084f
* Check the code point instead of the character when determining digit sections.Winson Chung2015-03-241-1/+1
| | | | Change-Id: Ie21fda92ca5097cc9deb7c59001b61dc44603d4b
* Reducing method count by eliminating synthetic accessorsAdam Cohen2015-03-202-7/+10
| | | | | | | | | | | Elimates 304 methods based on dex analysis The java compiler generates sythetic accessor methods for all private fields, methods and contructors accessed from inner classes. By marking them package-private and @Thunk instead, sythentic accessor methods are no longer needeed. These annotated elements should be treated as private. Change-Id: Id0dc2c92733474250d8ff12fa793d3a8adeb1f26
* Minor changes to apps view.Winson Chung2015-03-131-4/+22
| | | | | | | | - Ensuring that apps with numbers and in other locals have a section header. - Adding an empty state when there are no apps with the current filter - Removing unnecessary call to check AppInfos Change-Id: I9dc541c680475b98745fa257ad7e4af06e3966c9
* Adding app grid layout with fastscroller.Winson Chung2015-03-121-0/+131
| | | | | | - Adding filtering and using alphabetic index for app grouping. Change-Id: I745b644fa8f90f5ff24a8642ac377ef1c65d8aff
* Use ResolveInfo for label and icon for LauncherActivityInfoSunny Goyal2015-02-111-22/+23
| | | | | | | | Instead of using the ActivityInfo, use the ResolveInfo so that any label or icon specified on the intent-filter is used. Bug: 18482039 Change-Id: I87c0d9dba0754e3aa2c81727a9f60d789e5e8630
* Updating version codes from L to LOLLIPOPBrian Parfett2014-12-121-1/+1
| | | | | | | This is required so Launcher3 can compile within IntelliJ. Change-Id: I99a98a6d2326a8f8b0f0320430de9b555ea430c6 Bugs: b/18720914
* Supporting custom widgets provided by launcherAdam Cohen2014-12-053-15/+21
| | | | | | | -> This change provides integration for widgets provided by the launcher package which can run arbitrary code. Change-Id: I6052da5c4afed7ee72e3b44d045b9c46f2d84c42
* Moving methods which update internal sets on a separate threadSunny Goyal2014-10-301-7/+24
| | | | | Bug: 18152117 Change-Id: I5fccd203b5fe65e79dcc5aead6cb1cb6c3b622fe
* Keeping icons in disabled state when SD-card is unmountedSunny Goyal2014-10-082-10/+20
| | | | | | | | | | > changing shortcutInfo.isDisabled to be a flag based variable > on received OnPackageUnavailable, icons are disabled from desktop instead of being removed. Icons in all apps are removed Bug: 15852084 Bug: 16238283 Change-Id: I126d23c709682a917d4bbb84de71032593dce8f9
* Remove reference to CODENAME from compat code.Kenny Guy2014-10-031-3/+4
| | | | | | | | | Fixes bug with uninstalling apps for managed profile as codename check means it fails to include the user when uninstalling the app. Bug: 17800161 Change-Id: I6901eff5aa8f00fb3b859e8db37930b95f031625
* Merge "Updating promise icon's bitmap and label when onBadgingChanged is ↵Sunny Goyal2014-09-191-7/+25
|\ | | | | | | received" into ub-now-porkchop
| * Updating promise icon's bitmap and label when onBadgingChanged is receivedSunny Goyal2014-09-191-7/+26
| | | | | | | | | | Bug: 17583799 Change-Id: I68b4f9d4086c43bd949ad8b46b574ec78edb32db
* | Merge "Adding support to delete unrestored icons and widgets" into ↵Sunny Goyal2014-09-193-5/+16
|\ \ | | | | | | | | | ub-now-porkchop
| * | Adding support to delete unrestored icons and widgetsSunny Goyal2014-09-193-5/+16
| |/ | | | | | | | | Bug: 17584719 Change-Id: If8e76fc80ea885c9004c50b7b6a9353525a50105
* | Merge "Update calls now we have an L API version." into ub-now-porkchopKenny Guy2014-09-184-7/+8
|\ \
| * | Update calls now we have an L API version.Kenny Guy2014-09-184-7/+8
| |/ | | | | | | | | Bug: 17543647 Change-Id: I92c652a4ced5a5e783b24e42f9da4d9dfe1118ba
* / Remove catch now api has hit googlefood.Kenny Guy2014-09-181-10/+2
|/ | | | | Bug: 17543647 Change-Id: Ie0b57719393a705e8c02b226d3e3f57dbf43d800
* Merge "Setting context in LauncherAppState before initialising it, as it can ↵Sunny Goyal2014-09-171-0/+1
|\ | | | | | | be called from a BroadcastReceiver" into ub-now-porkchop
| * Setting context in LauncherAppState before initialising it,Sunny Goyal2014-09-161-0/+1
| | | | | | | | | | | | | | as it can be called from a BroadcastReceiver Bug: 17519159 Change-Id: I0434a3d1c392e8861eb759d88942deaf98116c19
* | Merge "Using ApplicationContext in static objects" into ub-now-porkchopSunny Goyal2014-09-173-7/+5
|\ \
| * | Using ApplicationContext in static objectsSunny Goyal2014-09-153-7/+5
| |/ | | | | | | | | Bug: 17507543 Change-Id: I1651b694acabaf62188dd4ba42739b64a60194c3
* / Remove STOPSHIPs from GSA 4.0Dharmesh Mokani2014-09-123-33/+7
|/ | | | | | | Added stopships so that GSA won't crash on older L release. Bug: 17443440 Change-Id: I792eb53d5021118bdb09c44ffae7a8286a0cd69b
* Merge "Update compat layer for API review changes to LauncherApps" into ↵Kenny Guy2014-09-121-2/+10
|\ | | | | | | ub-now-porkchop
| * Update compat layer for API review changes to LauncherAppsKenny Guy2014-09-111-2/+10
| | | | | | | | | | Bug:17390765 Change-Id: I15a927402a05387b14a2a6899fd513fc59a2ee41
* | Dogfood Crash Loop : Fixing crash loop by try and catchDharmesh Mokani2014-09-111-2/+11
| | | | | | | | | | Bug: 17467377 Change-Id: Idb2084339323b4953cbd6bbde2735f814fb75a76
* | Catch Throwable as NoSuchMethodError isn't an Exception.Kenny Guy2014-09-112-4/+4
|/ | | | | Bug: 17462165 Change-Id: Ifafdc882fd1020fb6468d2bcae2f219ef5cba64c
* Launcher change corresponding to platform change.Dharmesh Mokani2014-09-083-13/+30
| | | | | | | | | Here is platform change : ag/540450 Added try catch block so the APK works on older builds as well. Bug: 17390424 Change-Id: Id5731c65f036e35b71aa74ce6d8ae031107ed60b
* Handling label and icon from SessionInfo.Sunny Goyal2014-09-043-9/+35
| | | | | | | | | > The ShortcutInfo stores state as bit flags and not as ints > Intents of auto-install shortcut are automatically updated upon installation > Icons/titles for active sessions are cached in IconCache Change-Id: I2047849f67d4a8aaf2bc346b58110325bb4807d4
* Updated calls for LauncherApps renaming.Kenny Guy2014-08-292-8/+8
| | | | | Bug: 17008230 Change-Id: Id851d0b40756973be48c5ce370dd64c1dd6a3c1d
* Remove StopShip from UserManagerCompactVl file.Dharmesh Mokani2014-08-271-6/+1
| | | | | | | New getBadgedIconForUser is available to all dogfood users and droidfood users (LRW52G). GSA will crash if system build is less than LRW38. Change-Id: I8d6bf9d065fa79198fa63b110de37f84663ed940
* Adding support for managed profiles in widgetSunny Goyal2014-08-203-0/+315
| | | | | | issue: 16892811 Change-Id: If8c81f2a5a3bc846b02a5d225c5a8f27b1382dab
* Fixing class name change in sdkSunny Goyal2014-08-181-7/+7
| | | | Change-Id: Id905f8742d39347cd66e5e79931e1dccdd406126
* Merge "Update code so it compiles on google3" into ub-now-porkchopSameer Padala2014-08-112-4/+4
|\
| * Update code so it compiles on google3Sameer Padala2014-08-082-4/+4
| | | | | | | | Change-Id: I76c6a5264585c8ad4ded22501d2e2ee1672308c3