I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 438df814 authored by str4d's avatar str4d
Browse files

Settings back navigation

parent 7b3730be
No related branches found
No related tags found
No related merge requests found
......@@ -168,11 +168,13 @@ public class SettingsActivity extends PreferenceActivity {
ViewGroup contentView = (ViewGroup) LayoutInflater.from(this).inflate(
R.layout.activity_settings,
(ViewGroup) getWindow().getDecorView().getRootView(), false);
mToolbar = (Toolbar) contentView.findViewById(R.id.main_toolbar);
mToolbar.setNavigationIcon(getResources().getDrawable(R.drawable.ic_arrow_back_white_24dp));
mToolbar.setNavigationOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
finish();
onBackPressed();
}
});
......
......@@ -31,6 +31,7 @@ public class AddressbookSettingsActivity extends ActionBarActivity {
// Set the action bar
Toolbar toolbar = (Toolbar) findViewById(R.id.main_toolbar);
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
text_content_subscriptions = (EditText) findViewById(R.id.subscriptions_content);
btn_save_subscriptions = (Button) findViewById(R.id.button_save_subscriptions);
......
app/src/main/res/drawable-hdpi/ic_arrow_back_white_24dp.png

287 B

app/src/main/res/drawable-mdpi/ic_arrow_back_white_24dp.png

240 B

app/src/main/res/drawable-xhdpi/ic_arrow_back_white_24dp.png

336 B

app/src/main/res/drawable-xxhdpi/ic_arrow_back_white_24dp.png

410 B

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment