diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-03-09 10:37:06 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-03-09 10:39:04 -0600 |
commit | b9948085a48582e5fde77634bd091c95c6da813c (patch) | |
tree | 8fb0af89a73f5e5f183786685f72b66179467639 /ui/src/main/java/com/wireguard | |
parent | d62526fde6566b6a51ccc2a3f2095ea6d6584fd6 (diff) |
ThemeChangeAwareActivity: recreate activity after changing theme
API 21 had issues without this.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/src/main/java/com/wireguard')
-rw-r--r-- | ui/src/main/java/com/wireguard/android/activity/ThemeChangeAwareActivity.java | 1 |
1 files changed, 1 insertions, 0 deletions
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(); } } } |