Fixes, start with right theme

This commit is contained in:
Sylvia van Os
2019-12-02 18:03:36 +01:00
parent 4240fd55ba
commit 0de50e72a6
4 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
package protect.card_locker;
import android.app.Application;
import android.support.v7.app.AppCompatDelegate;
import protect.card_locker.preferences.Settings;
public class LoyaltyCardLockerApplication extends Application {
public void onCreate() {
super.onCreate();
Settings settings = new Settings(getApplicationContext());
AppCompatDelegate.setDefaultNightMode(settings.getTheme());
}
}