mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
41 lines
944 B
Java
41 lines
944 B
Java
package org.briarproject.android.panic;
|
|
|
|
import android.os.Bundle;
|
|
import android.support.v7.app.ActionBar;
|
|
import android.view.MenuItem;
|
|
|
|
import org.briarproject.R;
|
|
import org.briarproject.android.ActivityComponent;
|
|
import org.briarproject.android.AndroidComponent;
|
|
import org.briarproject.android.BriarActivity;
|
|
|
|
public class PanicPreferencesActivity extends BriarActivity {
|
|
|
|
@Override
|
|
public void onCreate(Bundle bundle) {
|
|
super.onCreate(bundle);
|
|
|
|
ActionBar actionBar = getSupportActionBar();
|
|
if (actionBar != null) {
|
|
actionBar.setHomeButtonEnabled(true);
|
|
actionBar.setDisplayHomeAsUpEnabled(true);
|
|
}
|
|
|
|
setContentView(R.layout.activity_panic_preferences);
|
|
}
|
|
|
|
@Override
|
|
public void injectActivity(ActivityComponent component) {
|
|
component.inject(this);
|
|
}
|
|
|
|
public boolean onOptionsItemSelected(MenuItem item) {
|
|
if (item.getItemId() == android.R.id.home) {
|
|
onBackPressed();
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
}
|