Wait 2 seconds before automatically applying Material You.

This commit is contained in:
Alex Ning 2021-11-04 22:30:23 +08:00
parent 71e382acb0
commit 9e19b6f092

View File

@ -48,6 +48,9 @@ public class MaterialYouUtils {
SharedPreferences amoledThemeSharedPreferences,
@Nullable MaterialYouListener materialYouListener) {
executor.execute(() -> {
try {
Thread.sleep(2000);
} catch (InterruptedException ignored) { }
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
CustomTheme lightTheme = CustomThemeWrapper.getIndigo(context);
CustomTheme darkTheme = CustomThemeWrapper.getIndigoDark(context);