2017-12-12 18:17:01 +01:00
|
|
|
package fr.gouv.etalab.mastodon.activities;
|
|
|
|
|
2017-12-13 12:52:14 +01:00
|
|
|
import android.annotation.SuppressLint;
|
2018-11-24 18:56:12 +01:00
|
|
|
import android.content.Context;
|
|
|
|
import android.content.res.Configuration;
|
2017-12-12 18:17:01 +01:00
|
|
|
import android.support.v7.app.AppCompatActivity;
|
|
|
|
|
2018-11-24 18:56:12 +01:00
|
|
|
import com.franmontiel.localechanger.LocaleChanger;
|
2018-10-24 14:52:08 +02:00
|
|
|
import com.vanniktech.emoji.EmojiManager;
|
|
|
|
import com.vanniktech.emoji.one.EmojiOneProvider;
|
|
|
|
|
2017-12-13 18:42:32 +01:00
|
|
|
import fr.gouv.etalab.mastodon.helper.Helper;
|
|
|
|
|
2017-12-12 18:17:01 +01:00
|
|
|
/**
|
|
|
|
* Created by Thomas on 12/12/2017.
|
2017-12-13 12:52:14 +01:00
|
|
|
* Base activity which updates security provider
|
2017-12-12 18:17:01 +01:00
|
|
|
*/
|
|
|
|
|
2017-12-13 12:52:14 +01:00
|
|
|
@SuppressLint("Registered")
|
2017-12-12 18:17:01 +01:00
|
|
|
public class BaseActivity extends AppCompatActivity {
|
2017-12-12 19:27:33 +01:00
|
|
|
static {
|
2017-12-14 07:26:37 +01:00
|
|
|
Helper.installProvider();
|
2018-10-24 14:52:08 +02:00
|
|
|
EmojiManager.install(new EmojiOneProvider());
|
2017-12-12 19:27:33 +01:00
|
|
|
}
|
2018-11-24 18:56:12 +01:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onConfigurationChanged(Configuration newConfig) {
|
|
|
|
super.onConfigurationChanged(newConfig);
|
|
|
|
LocaleChanger.onConfigurationChanged();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void attachBaseContext(Context newBase) {
|
|
|
|
newBase = LocaleChanger.configureBaseContext(newBase);
|
|
|
|
super.attachBaseContext(newBase);
|
|
|
|
}
|
2017-12-12 18:17:01 +01:00
|
|
|
}
|