summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-03-09 10:37:06 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-03-09 10:39:04 -0600
commit71c9b3f7d159bd9f0c1023fc359bf3948338b57d (patch)
tree8fb0af89a73f5e5f183786685f72b66179467639
parentc0862e962551165c7cc52be944fc1d84d999cd77 (diff)
ThemeChangeAwareActivity: recreate activity after changing theme
API 21 had issues without this.
-rw-r--r--ui/src/main/java/com/wireguard/android/activity/ThemeChangeAwareActivity.java1
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();
}
}
}