summaryrefslogtreecommitdiffstats
path: root/src/com/android/packageinstaller/permission/utils
diff options
context:
space:
mode:
authorTodd Volkert <tvolkert@google.com>2015-06-25 15:15:15 -0700
committerTodd Volkert <tvolkert@google.com>2015-07-01 13:24:37 -0700
commitf2736bd4fb3df44ac03385162b9f8d1bf4cb9b61 (patch)
treecfdd2b8ee8fe19cd6329442f1cb76dff456f331e /src/com/android/packageinstaller/permission/utils
parent1cc22115a4d3862bef9ddef140a20dc968e3909a (diff)
downloadandroid_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.java4
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 :