mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 09:49:21 +02:00
set translations before starting I/O
This commit is contained in:
parent
58f5080fa4
commit
e42012c483
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue