Explorar el Código

ThemeChangeAwareActivity: recreate activity after changing theme

API 21 had issues without this.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
master
Jason A. Donenfeld hace 4 años
padre
commit
b9948085a4
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. +1
    -0
      ui/src/main/java/com/wireguard/android/activity/ThemeChangeAwareActivity.java

+ 1
- 0
ui/src/main/java/com/wireguard/android/activity/ThemeChangeAwareActivity.java Ver fichero

@@ -42,6 +42,7 @@ public abstract class ThemeChangeAwareActivity extends AppCompatActivity impleme
sharedPreferences.getBoolean(key, false) ?
AppCompatDelegate.MODE_NIGHT_YES :
AppCompatDelegate.MODE_NIGHT_NO);
recreate();
}
}
}

Cargando…
Cancelar
Guardar