Read theme for lock screen flows
Move the applyThemeResource calls up from the setup wizard specific subclasses up to the settings classes so that it will get GLIF v2 theme on devices that request it. Test: Manual Bug: 62906814 Change-Id: I6ff4ff8d9ed3e6090b35b4ae7197e5d01f5a61f8
This commit is contained in:
@@ -24,6 +24,7 @@ import android.app.admin.DevicePolicyManager;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.content.Intent;
|
||||
import android.content.res.Resources;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.view.LayoutInflater;
|
||||
@@ -56,6 +57,12 @@ public class EncryptionInterstitial extends SettingsActivity {
|
||||
return modIntent;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) {
|
||||
resid = SetupWizardUtils.getTheme(getIntent());
|
||||
super.onApplyThemeResource(theme, resid, first);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean isValidFragment(String fragmentName) {
|
||||
return EncryptionInterstitialFragment.class.getName().equals(fragmentName);
|
||||
|
Reference in New Issue
Block a user