Skip to content

Commit

Permalink
Settings activity: Make onBackPressed behave like up button
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelm committed Feb 20, 2019
1 parent e9eabc6 commit 633ee1a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ private void setupActionBar() {
}
}

@Override
public void onBackPressed() {
NavUtils.navigateUpFromSameTask(this);
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
Expand Down

0 comments on commit 633ee1a

Please sign in to comment.