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");
|
Log.i("DeltaChat", "shutting down event handler");
|
||||||
}, "eventThread").start();
|
}, "eventThread").start();
|
||||||
|
|
||||||
|
// set translations before starting I/O to avoid sending untranslated MDNs (issue #2288)
|
||||||
|
DcHelper.setStockTranslations(this);
|
||||||
|
|
||||||
dcAccounts.startIo();
|
dcAccounts.startIo();
|
||||||
|
|
||||||
new ForegroundDetector(ApplicationContext.getInstance(this));
|
new ForegroundDetector(ApplicationContext.getInstance(this));
|
||||||
|
@ -136,8 +140,6 @@ public class ApplicationContext extends MultiDexApplication {
|
||||||
|
|
||||||
DynamicTheme.setDefaultDayNightMode(this);
|
DynamicTheme.setDefaultDayNightMode(this);
|
||||||
|
|
||||||
DcHelper.setStockTranslations(this);
|
|
||||||
|
|
||||||
IntentFilter filter = new IntentFilter(Intent.ACTION_LOCALE_CHANGED);
|
IntentFilter filter = new IntentFilter(Intent.ACTION_LOCALE_CHANGED);
|
||||||
registerReceiver(new BroadcastReceiver() {
|
registerReceiver(new BroadcastReceiver() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue