Skip to content

Commit

Permalink
Add a comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
murraycu committed Dec 16, 2014
1 parent e4809d6 commit f4c128e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/java/com/murrayc/galaxyzoo/app/BaseActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ public boolean onOptionsItemSelected(MenuItem item) {
final int id = item.getItemId();

if (id == android.R.id.home) {
//We can use this instead of more complex code, checking NavUtils.shouldUpRecreateTask(),
//because we know that our activities will never be opened from another app.
//See http://developer.android.com/training/implementing-navigation/ancestral.html.
NavUtils.navigateUpFromSameTask(this);
return true;
}
Expand Down

0 comments on commit f4c128e

Please sign in to comment.