mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Merge pull request #2290 from deltachat/adb/issue-2288
set translations before starting I/O
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user