am 0cd27191: Merge "Remove reference to CODENAME from compat code." into ub-now-porkchop
* commit '0cd271918a7c7baa69e872f7128351a0c7dbbbae': Remove reference to CODENAME from compat code.
This commit is contained in:
commit
ebb2a66b79
1 file changed
+4
-3
@@ -20,6 +20,8 @@ import android.content.Intent;
|
|||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.os.UserHandle;
|
import android.os.UserHandle;
|
||||||
|
|
||||||
|
import com.android.launcher3.Utilities;
|
||||||
|
|
||||||
public class UserHandleCompat {
|
public class UserHandleCompat {
|
||||||
private UserHandle mUser;
|
private UserHandle mUser;
|
||||||
|
|
||||||
@@ -86,9 +88,8 @@ public class UserHandleCompat {
|
|||||||
* profiles so this is a no-op.
|
* profiles so this is a no-op.
|
||||||
*/
|
*/
|
||||||
public void addToIntent(Intent intent, String name) {
|
public void addToIntent(Intent intent, String name) {
|
||||||
// TODO change this to use api version once L gets an API number.
|
if (Utilities.isLmpOrAbove() && mUser != null) {
|
||||||
if ("L".equals(Build.VERSION.CODENAME) && mUser != null) {
|
|
||||||
intent.putExtra(name, mUser);
|
intent.putExtra(name, mUser);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user