summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenny Guy <kennyguy@google.com>2014-10-03 11:15:53 (GMT)
committerKenny Guy <kennyguy@google.com>2014-10-03 11:15:53 (GMT)
commit92d6d3b2755ba7cf282251431d9a82526ea504e4 (patch)
treeed09775591e5130d1ea15cf01b918ec287437dcc
parent6d467e27b7e16442d3fb56af2aa3d94e657dff25 (diff)
downloadandroid_packages_apps_Trebuchet-92d6d3b2755ba7cf282251431d9a82526ea504e4.zip
android_packages_apps_Trebuchet-92d6d3b2755ba7cf282251431d9a82526ea504e4.tar.gz
android_packages_apps_Trebuchet-92d6d3b2755ba7cf282251431d9a82526ea504e4.tar.bz2
Remove reference to CODENAME from compat code.
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
-rw-r--r--src/com/android/launcher3/compat/UserHandleCompat.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/com/android/launcher3/compat/UserHandleCompat.java b/src/com/android/launcher3/compat/UserHandleCompat.java
index 4baf052..2ae6731 100644
--- a/src/com/android/launcher3/compat/UserHandleCompat.java
+++ b/src/com/android/launcher3/compat/UserHandleCompat.java
@@ -20,6 +20,8 @@ import android.content.Intent;
import android.os.Build;
import android.os.UserHandle;
+import com.android.launcher3.Utilities;
+
public class UserHandleCompat {
private UserHandle mUser;
@@ -86,9 +88,8 @@ public class UserHandleCompat {
* profiles so this is a no-op.
*/
public void addToIntent(Intent intent, String name) {
- // TODO change this to use api version once L gets an API number.
- if ("L".equals(Build.VERSION.CODENAME) && mUser != null) {
+ if (Utilities.isLmpOrAbove() && mUser != null) {
intent.putExtra(name, mUser);
}
}
-} \ No newline at end of file
+}