From b9948085a48582e5fde77634bd091c95c6da813c Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 9 Mar 2020 10:37:06 -0600 Subject: ThemeChangeAwareActivity: recreate activity after changing theme API 21 had issues without this. Signed-off-by: Jason A. Donenfeld --- .../java/com/wireguard/android/activity/ThemeChangeAwareActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/src/main/java/com/wireguard/android/activity/ThemeChangeAwareActivity.java b/ui/src/main/java/com/wireguard/android/activity/ThemeChangeAwareActivity.java index 602ad37c..c553e417 100644 --- a/ui/src/main/java/com/wireguard/android/activity/ThemeChangeAwareActivity.java +++ b/ui/src/main/java/com/wireguard/android/activity/ThemeChangeAwareActivity.java @@ -42,6 +42,7 @@ public abstract class ThemeChangeAwareActivity extends AppCompatActivity impleme sharedPreferences.getBoolean(key, false) ? AppCompatDelegate.MODE_NIGHT_YES : AppCompatDelegate.MODE_NIGHT_NO); + recreate(); } } } -- cgit v1.2.3