X-Git-Url: https://git.ktnx.net/?a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fnet%2Fktnx%2Fmobileledger%2FApp.java;h=d6b1ffaf7afc784ebd41ccb5a1227bf2e1bb47ac;hb=0fb03702b44e99bef2a5674d96f025595aed4274;hp=bec320e00d3e8db688ede6bf2bc0d559ae690986;hpb=9620c937d83a50772d5d329fd92b9a055cef56ad;p=mobile-ledger.git diff --git a/app/src/main/java/net/ktnx/mobileledger/App.java b/app/src/main/java/net/ktnx/mobileledger/App.java index bec320e0..d6b1ffaf 100644 --- a/app/src/main/java/net/ktnx/mobileledger/App.java +++ b/app/src/main/java/net/ktnx/mobileledger/App.java @@ -33,6 +33,7 @@ import java.net.Authenticator; import java.net.MalformedURLException; import java.net.PasswordAuthentication; import java.net.URL; +import java.util.Locale; public class App extends Application { public static App instance; @@ -48,6 +49,7 @@ public class App extends Application { instance = this; super.onCreate(); updateMonthNames(); + Data.refreshCurrencyData(Locale.getDefault()); Authenticator.setDefault(new Authenticator() { @Override protected PasswordAuthentication getPasswordAuthentication() { @@ -87,6 +89,8 @@ public class App extends Application { public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); updateMonthNames(); + Data.refreshCurrencyData(Locale.getDefault()); + Data.locale.setValue(Locale.getDefault()); } public SQLiteDatabase getDB() { if (dbHelper == null) initDb();