diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-11-04 14:30:23 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-11-04 14:30:23 +0000 |
commit | 9e19b6f09286f4e51012600213a331d1dfd2ce1d (patch) | |
tree | b120631ebb16d9ff29a09cbea38987db48b57745 | |
parent | 71e382acb001f70f675eea14b68ae0e4021ef9de (diff) | |
download | infinity-for-reddit-9e19b6f09286f4e51012600213a331d1dfd2ce1d.tar infinity-for-reddit-9e19b6f09286f4e51012600213a331d1dfd2ce1d.tar.gz infinity-for-reddit-9e19b6f09286f4e51012600213a331d1dfd2ce1d.tar.bz2 infinity-for-reddit-9e19b6f09286f4e51012600213a331d1dfd2ce1d.tar.lz infinity-for-reddit-9e19b6f09286f4e51012600213a331d1dfd2ce1d.tar.xz infinity-for-reddit-9e19b6f09286f4e51012600213a331d1dfd2ce1d.tar.zst infinity-for-reddit-9e19b6f09286f4e51012600213a331d1dfd2ce1d.zip |
Wait 2 seconds before automatically applying Material You.
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/utils/MaterialYouUtils.java | 3 |
1 files changed, 3 insertions, 0 deletions
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); |