mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-17 21:47:28 +00:00
9273f5cc67
// FREEBIE
46 lines
1.2 KiB
Java
46 lines
1.2 KiB
Java
package org.thoughtcrime.securesms;
|
|
|
|
import android.os.Bundle;
|
|
import android.support.annotation.NonNull;
|
|
import android.view.MenuItem;
|
|
|
|
import org.thoughtcrime.securesms.crypto.MasterSecret;
|
|
import org.thoughtcrime.securesms.util.DynamicLanguage;
|
|
import org.thoughtcrime.securesms.util.DynamicTheme;
|
|
|
|
|
|
public class ImportExportActivity extends PassphraseRequiredActionBarActivity {
|
|
|
|
private DynamicTheme dynamicTheme = new DynamicTheme();
|
|
private DynamicLanguage dynamicLanguage = new DynamicLanguage();
|
|
|
|
@Override
|
|
protected void onPreCreate() {
|
|
dynamicTheme.onCreate(this);
|
|
}
|
|
|
|
@Override
|
|
protected void onCreate(Bundle savedInstanceState, @NonNull MasterSecret masterSecret) {
|
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
|
initFragment(android.R.id.content, new ImportExportFragment(),
|
|
masterSecret, 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;
|
|
}
|
|
}
|