diff options
author | Todd Volkert <tvolkert@google.com> | 2015-06-25 15:15:15 -0700 |
---|---|---|
committer | Todd Volkert <tvolkert@google.com> | 2015-07-01 13:24:37 -0700 |
commit | f2736bd4fb3df44ac03385162b9f8d1bf4cb9b61 (patch) | |
tree | cfdd2b8ee8fe19cd6329442f1cb76dff456f331e /src/com/android/packageinstaller/permission/utils | |
parent | 1cc22115a4d3862bef9ddef140a20dc968e3909a (diff) | |
download | android_packages_apps_PackageInstaller-f2736bd4fb3df44ac03385162b9f8d1bf4cb9b61.tar.gz android_packages_apps_PackageInstaller-f2736bd4fb3df44ac03385162b9f8d1bf4cb9b61.tar.bz2 android_packages_apps_PackageInstaller-f2736bd4fb3df44ac03385162b9f8d1bf4cb9b61.zip |
Migrate package installer permissions fragments to preference support lib.
In order to allow for TV-friendly layouts, this migrates the permissions
fragments to the preference support lib, and modifies the necessary layouts
and themes to make them work on TV.
b/22043727
b/22045650
b/22044940
Change-Id: Ic862effe2c126da78c304983fd06e017c3ee4472
Diffstat (limited to 'src/com/android/packageinstaller/permission/utils')
-rw-r--r-- | src/com/android/packageinstaller/permission/utils/Utils.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/packageinstaller/permission/utils/Utils.java b/src/com/android/packageinstaller/permission/utils/Utils.java index 144ff774..940e3597 100644 --- a/src/com/android/packageinstaller/permission/utils/Utils.java +++ b/src/com/android/packageinstaller/permission/utils/Utils.java @@ -123,6 +123,10 @@ public class Utils { return icon; } + public static Drawable applyTint(Context context, int iconResId, int attr) { + return applyTint(context, context.getDrawable(iconResId), attr); + } + public static ArraySet<String> getLauncherPackages(Context context) { ArraySet<String> launcherPkgs = new ArraySet<>(); for (ResolveInfo info : |