2013-06-25 04:02:30 +00:00
|
|
|
package org.thoughtcrime.securesms;
|
|
|
|
|
|
|
|
import android.os.Bundle;
|
2014-06-29 03:40:57 +00:00
|
|
|
import android.view.MenuItem;
|
2014-01-08 22:29:05 +00:00
|
|
|
|
2017-03-15 23:53:15 +00:00
|
|
|
import org.thoughtcrime.securesms.util.DynamicLanguage;
|
2015-01-12 00:24:19 +00:00
|
|
|
import org.thoughtcrime.securesms.util.DynamicTheme;
|
2013-06-25 04:02:30 +00:00
|
|
|
|
|
|
|
|
2014-06-29 03:40:57 +00:00
|
|
|
public class ImportExportActivity extends PassphraseRequiredActionBarActivity {
|
2013-06-25 04:02:30 +00:00
|
|
|
|
2017-03-15 23:53:15 +00:00
|
|
|
private DynamicTheme dynamicTheme = new DynamicTheme();
|
|
|
|
private DynamicLanguage dynamicLanguage = new DynamicLanguage();
|
2015-01-12 00:24:19 +00:00
|
|
|
|
2013-06-25 04:02:30 +00:00
|
|
|
@Override
|
2014-12-15 20:25:55 +00:00
|
|
|
protected void onPreCreate() {
|
2015-01-12 00:24:19 +00:00
|
|
|
dynamicTheme.onCreate(this);
|
2014-12-15 20:25:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2018-02-02 03:22:48 +00:00
|
|
|
protected void onCreate(Bundle savedInstanceState, boolean ready) {
|
|
|
|
assert getSupportActionBar() != null;
|
2013-06-25 04:02:30 +00:00
|
|
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
2018-02-02 03:22:48 +00:00
|
|
|
initFragment(android.R.id.content, new ImportExportFragment(), dynamicLanguage.getCurrentLocale());
|
2013-06-25 04:02:30 +00:00
|
|
|
}
|
|
|
|
|
2015-01-12 00:24:19 +00:00
|
|
|
@Override
|
|
|
|
public void onResume() {
|
2017-03-15 23:53:15 +00:00
|
|
|
dynamicTheme.onResume(this);
|
|
|
|
super.onResume();
|
2015-01-12 00:24:19 +00:00
|
|
|
}
|
|
|
|
|
2013-06-25 04:02:30 +00:00
|
|
|
@Override
|
|
|
|
public boolean onOptionsItemSelected(MenuItem item) {
|
|
|
|
super.onOptionsItemSelected(item);
|
|
|
|
|
|
|
|
switch (item.getItemId()) {
|
|
|
|
case android.R.id.home: finish(); return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
2014-12-15 20:25:55 +00:00
|
|
|
}
|