Changes SetupRedactionInterstitial to be an optional step
We no longer need this to be in inside the setup flow when setting up the lock screen. Move this class to be used as an optional step if a lock screen is added. bug:23893721 Change-Id: I15478e0f0d8d8771cbdce6ccf0f508cbd5dd4f36
This commit is contained in:
@@ -18,8 +18,10 @@ package com.android.settings;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.admin.DevicePolicyManager;
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.content.res.Resources;
|
||||
import android.os.Bundle;
|
||||
import android.os.UserHandle;
|
||||
@@ -118,6 +120,12 @@ public class SetupChooseLockGeneric extends ChooseLockGeneric {
|
||||
data.putExtra(EXTRA_PASSWORD_QUALITY,
|
||||
lockPatternUtils.getKeyguardStoredPasswordQuality(UserHandle.myUserId()));
|
||||
|
||||
PackageManager packageManager = getPackageManager();
|
||||
ComponentName componentName = new ComponentName("com.android.settings",
|
||||
"com.android.settings.SetupRedactionInterstitial");
|
||||
packageManager.setComponentEnabledSetting(componentName,
|
||||
PackageManager.COMPONENT_ENABLED_STATE_ENABLED,
|
||||
PackageManager.DONT_KILL_APP);
|
||||
super.onActivityResult(requestCode, resultCode, data);
|
||||
}
|
||||
// If the started activity was cancelled (e.g. the user presses back), then this
|
||||
|
Reference in New Issue
Block a user