session-android/src/org/thoughtcrime/securesms/ImportExportActivity.java

44 lines
1.1 KiB
Java
Raw Normal View History

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