Merge "Launch work lock scrim as clear_top not single_top"
This commit is contained in:
committed by
Android (Google) Code Review
commit
5841a983e8
@@ -500,7 +500,6 @@
|
||||
android:label="@string/accessibility_desc_work_lock"
|
||||
android:permission="android.permission.MANAGE_USERS"
|
||||
android:exported="false"
|
||||
android:launchMode="singleTop"
|
||||
android:excludeFromRecents="true"
|
||||
android:stateNotNeeded="true"
|
||||
android:resumeWhilePausing="true"
|
||||
|
||||
@@ -42,9 +42,8 @@ public class WorkLockActivityController {
|
||||
Intent intent = new Intent(KeyguardManager.ACTION_CONFIRM_DEVICE_CREDENTIAL_WITH_USER)
|
||||
.setComponent(new ComponentName(mContext, WorkLockActivity.class))
|
||||
.putExtra(Intent.EXTRA_USER_ID, userId)
|
||||
.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS
|
||||
| Intent.FLAG_ACTIVITY_REORDER_TO_FRONT
|
||||
| Intent.FLAG_ACTIVITY_SINGLE_TOP);
|
||||
.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT
|
||||
| Intent.FLAG_ACTIVITY_CLEAR_TOP);
|
||||
|
||||
final ActivityOptions options = ActivityOptions.makeBasic();
|
||||
options.setLaunchTaskId(taskId);
|
||||
|
||||
Reference in New Issue
Block a user