Font size page support light theme in deferred setup.
Bug:124470158 Test: atest & manually test Change-Id: I41e1e98a9a64e516a294c4a94c8b5f335434078f
This commit is contained in:
@@ -16,12 +16,18 @@
|
||||
|
||||
package com.android.settings;
|
||||
|
||||
import static com.google.android.setupcompat.util.WizardManagerHelper.EXTRA_IS_FIRST_RUN;
|
||||
import static com.google.android.setupcompat.util.WizardManagerHelper.EXTRA_IS_SETUP_FLOW;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.sysprop.SetupWizardProperties;
|
||||
|
||||
import com.google.android.setupcompat.util.WizardManagerHelper;
|
||||
import com.google.android.setupdesign.util.ThemeHelper;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
|
||||
public class SetupWizardUtils {
|
||||
|
||||
@@ -90,4 +96,14 @@ public class SetupWizardUtils {
|
||||
public static void copySetupExtras(Intent fromIntent, Intent toIntent) {
|
||||
WizardManagerHelper.copyWizardManagerExtras(fromIntent, toIntent);
|
||||
}
|
||||
|
||||
public static Bundle copyLifecycleExtra(Bundle srcBundle, Bundle dstBundle) {
|
||||
for (String key :
|
||||
Arrays.asList(
|
||||
EXTRA_IS_FIRST_RUN,
|
||||
EXTRA_IS_SETUP_FLOW)) {
|
||||
dstBundle.putBoolean(key, srcBundle.getBoolean(key, false));
|
||||
}
|
||||
return dstBundle;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user