Add support for language switching (#1108)
* Add support for language switching * Clean and improve code based on feedback * Remove useless logging
This commit is contained in:
parent
0506bfa7d6
commit
bac131c6d5
8 changed files with 171 additions and 22 deletions
|
|
@ -16,6 +16,7 @@
|
|||
package com.keylesspalace.tusky;
|
||||
|
||||
import android.app.ActivityManager;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.SharedPreferences;
|
||||
import android.graphics.Bitmap;
|
||||
|
|
@ -99,6 +100,11 @@ public abstract class BaseActivity extends AppCompatActivity implements Injectab
|
|||
callList = new ArrayList<>();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void attachBaseContext(Context base) {
|
||||
super.attachBaseContext(TuskyApplication.localeManager.setLocale(base));
|
||||
}
|
||||
|
||||
protected boolean requiresLogin() {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue