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:
@@ -39,27 +39,17 @@ import com.android.setupwizardlib.view.NavigationBar;
|
||||
*/
|
||||
public class SetupRedactionInterstitial extends RedactionInterstitial {
|
||||
|
||||
public static Intent createStartIntent(Context ctx) {
|
||||
Intent startIntent = RedactionInterstitial.createStartIntent(ctx, UserHandle.myUserId());
|
||||
if (startIntent != null) {
|
||||
startIntent.setClass(ctx, SetupRedactionInterstitial.class);
|
||||
startIntent.putExtra(EXTRA_PREFS_SHOW_BUTTON_BAR, false)
|
||||
.putExtra(EXTRA_SHOW_FRAGMENT_TITLE_RESID, -1);
|
||||
}
|
||||
return startIntent;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Intent getIntent() {
|
||||
Intent modIntent = new Intent(super.getIntent());
|
||||
modIntent.putExtra(EXTRA_SHOW_FRAGMENT,
|
||||
SetupEncryptionInterstitialFragment.class.getName());
|
||||
SetupRedactionInterstitialFragment.class.getName());
|
||||
return modIntent;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean isValidFragment(String fragmentName) {
|
||||
return SetupEncryptionInterstitialFragment.class.getName().equals(fragmentName);
|
||||
return SetupRedactionInterstitialFragment.class.getName().equals(fragmentName);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -68,7 +58,7 @@ public class SetupRedactionInterstitial extends RedactionInterstitial {
|
||||
super.onApplyThemeResource(theme, resid, first);
|
||||
}
|
||||
|
||||
public static class SetupEncryptionInterstitialFragment extends RedactionInterstitialFragment
|
||||
public static class SetupRedactionInterstitialFragment extends RedactionInterstitialFragment
|
||||
implements NavigationBar.NavigationBarListener {
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user