Skip to content

Instantly share code, notes, and snippets.

@mstoic
Created September 13, 2018 19:03
Show Gist options
  • Save mstoic/9c41fa735faf5bb4aacc38151fca8df3 to your computer and use it in GitHub Desktop.
Save mstoic/9c41fa735faf5bb4aacc38151fca8df3 to your computer and use it in GitHub Desktop.
// Add Below Code oncreate
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
// Add below code in activity
@Override
public boolean onSupportNavigateUp(){
finish();
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment