Apply Expressive style "More” page-down button for Settings
Face Enroll Introduction page Flag: EXEMPT use SUW/Settings Expressive style API to check Bug: 394223273 Test: build and manually check the UI and its behaviors Change-Id: Iad9d6a53363fabad05b45a822f8ba6f1b83b9d7b
This commit is contained in:
@@ -50,8 +50,10 @@ import com.android.settings.overlay.FeatureFactory;
|
||||
import com.android.settings.password.ChooseLockGeneric;
|
||||
import com.android.settings.password.ChooseLockSettingsHelper;
|
||||
import com.android.settings.password.SetupChooseLockGeneric;
|
||||
import com.android.settingslib.widget.SettingsThemeHelper;
|
||||
|
||||
import com.google.android.setupcompat.util.WizardManagerHelper;
|
||||
import com.google.android.setupdesign.util.ThemeHelper;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
@@ -530,6 +532,16 @@ public class BiometricUtils {
|
||||
return ssb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if device is using Expressive Style theme.
|
||||
* @param context that for applying Expressive Style
|
||||
* @return true if device using Expressive Style theme, otherwise false.
|
||||
*/
|
||||
public static boolean isExpressiveStyle(@NonNull Context context) {
|
||||
return SettingsThemeHelper.isExpressiveTheme(context)
|
||||
|| ThemeHelper.shouldApplyGlifExpressiveStyle(context);
|
||||
}
|
||||
|
||||
private static String capitalize(final String input) {
|
||||
return Character.toUpperCase(input.charAt(0)) + input.substring(1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user