Commit Graph

12 Commits

Author SHA1 Message Date
Sunny Goyal
18bf8e2ffd 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
2015-04-10 19:37:13 -07:00
Dharmesh Mokani
3d0854e4b8 Remove STOPSHIPs from GSA 4.0
Added stopships so that GSA won't crash on older L release.

Bug: 17443440
Change-Id: I792eb53d5021118bdb09c44ffae7a8286a0cd69b
2014-09-12 10:22:51 -07:00
Kenny Guy
49909c2b33 Catch Throwable as NoSuchMethodError isn't an Exception.
Bug: 17462165
Change-Id: Ifafdc882fd1020fb6468d2bcae2f219ef5cba64c
2014-09-11 13:44:05 +01:00
Dharmesh Mokani
f9847b9bd3 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
2014-09-08 09:39:51 -07:00
Dharmesh Mokani
11b85a283b 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
2014-08-27 20:01:23 +00:00
Mark Brophy
fd449c8831 Make GEL not crashloop.
Being able to actually use the phone is a good feature.

Change-Id: I345258374dda81a852544d8ed0045e57195f88d3
2014-08-09 19:32:52 +01:00
Dharmesh Mokani
6075170b83 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
2014-08-08 10:24:18 -07:00
Kenny Guy
d6fe52636d Change getBadgedLabelForUser to use CharSequence
Bug: 16401636
Change-Id: I7b72a6dd53fec1c0afe6ea33803af9e3c54e597e
2014-07-21 18:33:40 +01:00
Kenny Guy
c2bd8101b8 Revert "Revert Cls stopping now-master running on googlefood"
This reverts commit 7bc272a11b.

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

Change-Id: Id1fb2e1249e72658ce5477165c9bcacba9de2b04
2014-06-30 12:30:31 +01:00
Kenny Guy
7bc272a11b Revert Cls stopping now-master running on googlefood
This reverts commits 01453e855f.
and 242bbe1b72.
"Add content description to bagded icons."
"Remove reflection now we are building against L"

Bug: 15833449
Change-Id: I81a5316f5619a9cd3b6ab9fd03b2ba96657b7f68
2014-06-24 11:43:19 +01:00
Kenny Guy
242bbe1b72 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
2014-06-23 13:56:05 +01:00
Kenny Guy
ed13187a74 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
2014-04-30 23:43:00 +01:00