set translations before starting I/O

This commit is contained in:
adbenitez 2022-05-04 13:46:42 -04:00
parent 58f5080fa4
commit e42012c483

View file

@ -112,6 +112,10 @@ public class ApplicationContext extends MultiDexApplication {
}
Log.i("DeltaChat", "shutting down event handler");
}, "eventThread").start();
// set translations before starting I/O to avoid sending untranslated MDNs (issue #2288)
DcHelper.setStockTranslations(this);
dcAccounts.startIo();
new ForegroundDetector(ApplicationContext.getInstance(this));
@ -136,8 +140,6 @@ public class ApplicationContext extends MultiDexApplication {
DynamicTheme.setDefaultDayNightMode(this);
DcHelper.setStockTranslations(this);
IntentFilter filter = new IntentFilter(Intent.ACTION_LOCALE_CHANGED);
registerReceiver(new BroadcastReceiver() {
@Override