2013-06-25 04:02:30 +00:00
|
|
|
package org.thoughtcrime.securesms;
|
|
|
|
|
|
|
|
import android.os.Bundle;
|
2014-12-15 20:25:55 +00:00
|
|
|
import android.support.annotation.NonNull;
|
2014-06-29 03:40:57 +00:00
|
|
|
import android.view.MenuItem;
|
2014-01-08 22:29:05 +00:00
|
|
|
|
2014-11-03 23:16:04 +00:00
|
|
|
import org.thoughtcrime.securesms.crypto.MasterSecret;
|
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
|
|
|
|
protected void onCreate(Bundle savedInstanceState, @NonNull MasterSecret masterSecret) {
|
2013-06-25 04:02:30 +00:00
|
|
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
2017-03-15 23:53:15 +00:00
|
|
|
initFragment(android.R.id.content, new ImportExportFragment(),
|
|
|
|
masterSecret, 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
|
|
|
}
|