2013-06-24 21:02:30 -07:00
|
|
|
package org.thoughtcrime.securesms;
|
|
|
|
|
|
|
|
import android.os.Bundle;
|
2014-12-15 12:25:55 -08:00
|
|
|
import android.support.annotation.NonNull;
|
2014-06-28 20:40:57 -07:00
|
|
|
import android.view.MenuItem;
|
2014-01-08 12:29:05 -10:00
|
|
|
|
2014-11-03 15:16:04 -08:00
|
|
|
import org.thoughtcrime.securesms.crypto.MasterSecret;
|
2017-03-15 16:53:15 -07:00
|
|
|
import org.thoughtcrime.securesms.util.DynamicLanguage;
|
2015-01-11 14:24:19 -10:00
|
|
|
import org.thoughtcrime.securesms.util.DynamicTheme;
|
2013-06-24 21:02:30 -07:00
|
|
|
|
|
|
|
|
2014-06-28 20:40:57 -07:00
|
|
|
public class ImportExportActivity extends PassphraseRequiredActionBarActivity {
|
2013-06-24 21:02:30 -07:00
|
|
|
|
2017-03-15 16:53:15 -07:00
|
|
|
private DynamicTheme dynamicTheme = new DynamicTheme();
|
|
|
|
private DynamicLanguage dynamicLanguage = new DynamicLanguage();
|
2015-01-11 14:24:19 -10:00
|
|
|
|
2013-06-24 21:02:30 -07:00
|
|
|
@Override
|
2014-12-15 12:25:55 -08:00
|
|
|
protected void onPreCreate() {
|
2015-01-11 14:24:19 -10:00
|
|
|
dynamicTheme.onCreate(this);
|
2014-12-15 12:25:55 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void onCreate(Bundle savedInstanceState, @NonNull MasterSecret masterSecret) {
|
2013-06-24 21:02:30 -07:00
|
|
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
2017-03-15 16:53:15 -07:00
|
|
|
initFragment(android.R.id.content, new ImportExportFragment(),
|
|
|
|
masterSecret, dynamicLanguage.getCurrentLocale());
|
2013-06-24 21:02:30 -07:00
|
|
|
}
|
|
|
|
|
2015-01-11 14:24:19 -10:00
|
|
|
@Override
|
|
|
|
public void onResume() {
|
2017-03-15 16:53:15 -07:00
|
|
|
dynamicTheme.onResume(this);
|
|
|
|
super.onResume();
|
2015-01-11 14:24:19 -10:00
|
|
|
}
|
|
|
|
|
2013-06-24 21:02:30 -07: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 12:25:55 -08:00
|
|
|
}
|