Merge "Remove reference to CODENAME from compat code." into ub-now-porkchop

This commit is contained in:
Kenny Guy
2014-10-03 12:16:59 +00:00
committed by Android (Google) Code Review
@@ -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);
}
}
}
}