summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenny Guy <kennyguy@google.com>2014-10-03 12:16:59 (GMT)
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-10-03 12:16:59 (GMT)
commit0cd271918a7c7baa69e872f7128351a0c7dbbbae (patch)
tree396fc4760831096d7431b84a088902ec225aad91
parent52077b7a951153ce77e7354c6096b3bcfbec8c3e (diff)
parent92d6d3b2755ba7cf282251431d9a82526ea504e4 (diff)
downloadandroid_packages_apps_Trebuchet-0cd271918a7c7baa69e872f7128351a0c7dbbbae.zip
android_packages_apps_Trebuchet-0cd271918a7c7baa69e872f7128351a0c7dbbbae.tar.gz
android_packages_apps_Trebuchet-0cd271918a7c7baa69e872f7128351a0c7dbbbae.tar.bz2
Merge "Remove reference to CODENAME from compat code." into ub-now-porkchop
-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
+}