History log of /packages/apps/Launcher3/src/com/android/launcher3/compat/UserManagerCompatVL.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8cae50d8b2b2e8f4d8ee76b6b8e51b66326abe7f 15-Jun-2017 Rajeev Kumar <rajekumar@google.com> Replace use of java.util.HashMap with android.util.ArrayMap in
UserManagerCompatVL class

Bug: 62466540
Change-Id: Ia492a9189ae950d2a96b79b786dc447afa982c21
/packages/apps/Launcher3/src/com/android/launcher3/compat/UserManagerCompatVL.java
a474a9bcf5d533ac942c58409e45e5ec6d8b4893 05-May-2017 Sunny Goyal <sunnygoyal@google.com> 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
/packages/apps/Launcher3/src/com/android/launcher3/compat/UserManagerCompatVL.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/UserManagerCompatVL.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/UserManagerCompatVL.java
35908f9e67b9cdae917385ef9e67e168cb0c93b3 31-Aug-2016 Sunny Goyal <sunnygoyal@google.com> Splitting some methods into individual compat classes

Change-Id: Id5a2650b290367d1574eb56346beca389900596b
/packages/apps/Launcher3/src/com/android/launcher3/compat/UserManagerCompatVL.java
f912beb2ee4b75af1fe8c710d6948b9737fed531 20-Oct-2015 Sunny Goyal <sunnygoyal@google.com> resolve merge conflicts of fe3db428ab to ub-launcher3-master.

Change-Id: Icc60a61f621fefe9db67b178921e62f7d72d7e5a
f725824fa2091cab44cf1bcbfe5b5b8d06475560 20-Oct-2015 Sunny Goyal <sunnygoyal@google.com> Refactoring getPreferenceKey method

This method was returnning a constant and getting inlined by proguard.

Change-Id: I87348e25b21483adc1b27d16f99dec4b73205701
/packages/apps/Launcher3/src/com/android/launcher3/compat/UserManagerCompatVL.java
b84046dacf48b38069c89ac908ff5ae1e8fc1d13 19-Oct-2015 Sunny Goyal <sunnygoyal@google.com> Scaling down the icon before applying the user badge
> This also saves memory only create one new bitmap while loading instead of two

Bug: 25027252
Change-Id: Ia594dd65a30f32e99404190f649b334615c9e17f
/packages/apps/Launcher3/src/com/android/launcher3/compat/UserManagerCompatVL.java
ad0c2f28ceb750646e0132a01d393f5115cbfca9 21-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Using the usermanager api to get creation time

Bug: 22539048
Change-Id: I17647f2456434ca66a9778300e1a2910cec171d4
/packages/apps/Launcher3/src/com/android/launcher3/compat/UserManagerCompatVL.java
a2a039b66f05a1164f954387b1c12a8fb4063e92 05-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Using a reverse hashmap instead of indexOfValue in userManager

Bug: 22980139
Change-Id: I87b633d194ff4e1529dd679dc02da573ed374207
/packages/apps/Launcher3/src/com/android/launcher3/compat/UserManagerCompatVL.java
823fd5090209017a029460e7dbd8ab9d51d013dd 04-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Creating a cache of users to avoid multiple calls to UserManager

Bug: 22805101
Change-Id: I9cd270efd74fdd34a7eb738fc25797e6f1bf2487
/packages/apps/Launcher3/src/com/android/launcher3/compat/UserManagerCompatVL.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/UserManagerCompatVL.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/UserManagerCompatVL.java
18bf8e2ffde3444d53aaa9654da02cdedd0b7cd1 09-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Automatically adding managed profile shortcuts to homescreen.

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
/packages/apps/Launcher3/src/com/android/launcher3/compat/UserManagerCompatVL.java
3d0854e4b8c0a6daaa80ac14c6bc7572a4e90916 10-Sep-2014 Dharmesh Mokani <mokani@google.com> Remove STOPSHIPs from GSA 4.0

Added stopships so that GSA won't crash on older L release.

Bug: 17443440
Change-Id: I792eb53d5021118bdb09c44ffae7a8286a0cd69b
/packages/apps/Launcher3/src/com/android/launcher3/compat/UserManagerCompatVL.java
49909c2b336de95de2543af0ebe3b7554fe05a6c 11-Sep-2014 Kenny Guy <kennyguy@google.com> Catch Throwable as NoSuchMethodError isn't an Exception.

Bug: 17462165
Change-Id: Ifafdc882fd1020fb6468d2bcae2f219ef5cba64c
/packages/apps/Launcher3/src/com/android/launcher3/compat/UserManagerCompatVL.java
f9847b9bd3e5286fe10667ec12dab5b4c43355fa 06-Sep-2014 Dharmesh Mokani <mokani@google.com> Launcher change corresponding to platform change.

Here is platform change : ag/540450

Added try catch block so the APK works on older builds as well.

Bug: 17390424
Change-Id: Id5731c65f036e35b71aa74ce6d8ae031107ed60b
/packages/apps/Launcher3/src/com/android/launcher3/compat/UserManagerCompatVL.java
11b85a283b7dd11d21aa614e9f0bf2652a4316d3 27-Aug-2014 Dharmesh Mokani <mokani@google.com> Remove StopShip from UserManagerCompactVl file.

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
/packages/apps/Launcher3/src/com/android/launcher3/compat/UserManagerCompatVL.java
fd449c88316a1caca4f034a339c1e5128c5da849 09-Aug-2014 Mark Brophy <mbrophy@google.com> Make GEL not crashloop.

Being able to actually use the phone is a good feature.

Change-Id: I345258374dda81a852544d8ed0045e57195f88d3
/packages/apps/Launcher3/src/com/android/launcher3/compat/UserManagerCompatVL.java
6075170b838bfe7a040bbff25c2c22859b7d6ee5 08-Aug-2014 Dharmesh Mokani <mokani@google.com> Changes corresponding to framework changes.

Following method has been removed.
UserManager.getBadgedDrawableForUser(Drawable, UserHandle)

This will only work on builds after lrw38

Change-Id: I777a630dd123a9cf8d92cd096e150e90035b3531
/packages/apps/Launcher3/src/com/android/launcher3/compat/UserManagerCompatVL.java
d6fe52636dcaa96ec1e10ce2daebe98b820c9739 21-Jul-2014 Kenny Guy <kennyguy@google.com> Change getBadgedLabelForUser to use CharSequence

Bug: 16401636
Change-Id: I7b72a6dd53fec1c0afe6ea33803af9e3c54e597e
/packages/apps/Launcher3/src/com/android/launcher3/compat/UserManagerCompatVL.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/UserManagerCompatVL.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/UserManagerCompatVL.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/UserManagerCompatVL.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/UserManagerCompatVL.java