From 9e19b6f09286f4e51012600213a331d1dfd2ce1d Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Thu, 4 Nov 2021 22:30:23 +0800 Subject: Wait 2 seconds before automatically applying Material You. --- .../ml/docilealligator/infinityforreddit/utils/MaterialYouUtils.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/utils/MaterialYouUtils.java b/app/src/main/java/ml/docilealligator/infinityforreddit/utils/MaterialYouUtils.java index 082f6a75..9d5f27cb 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/utils/MaterialYouUtils.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/utils/MaterialYouUtils.java @@ -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); -- cgit v1.2.3