mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-01-30 19:34:45 +01:00
Wait 2 seconds before automatically applying Material You.
This commit is contained in:
parent
71e382acb0
commit
9e19b6f092
@ -48,6 +48,9 @@ public class MaterialYouUtils {
|
|||||||
SharedPreferences amoledThemeSharedPreferences,
|
SharedPreferences amoledThemeSharedPreferences,
|
||||||
@Nullable MaterialYouListener materialYouListener) {
|
@Nullable MaterialYouListener materialYouListener) {
|
||||||
executor.execute(() -> {
|
executor.execute(() -> {
|
||||||
|
try {
|
||||||
|
Thread.sleep(2000);
|
||||||
|
} catch (InterruptedException ignored) { }
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
||||||
CustomTheme lightTheme = CustomThemeWrapper.getIndigo(context);
|
CustomTheme lightTheme = CustomThemeWrapper.getIndigo(context);
|
||||||
CustomTheme darkTheme = CustomThemeWrapper.getIndigoDark(context);
|
CustomTheme darkTheme = CustomThemeWrapper.getIndigoDark(context);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user