Removed locale manager loading languages in advance

Instead they are loaded on demand
This commit is contained in:
Viktor De Pasquale
2019-05-10 17:30:25 +02:00
parent 58a449d437
commit 9491ba77e0
8 changed files with 183 additions and 198 deletions
@@ -146,7 +146,7 @@ public class MagiskDB {
String dateString = null, newString;
for (ContentValues values : SQL("SELECT * FROM %s ORDER BY time DESC", LOG_TABLE)) {
Date date = new Date(values.getAsLong("time"));
newString = DateFormat.getDateInstance(DateFormat.MEDIUM, LocaleManager.locale).format(date);
newString = DateFormat.getDateInstance(DateFormat.MEDIUM, LocaleManager.getLocale()).format(date);
if (!TextUtils.equals(dateString, newString)) {
dateString = newString;
list = new ArrayList<>();