android: frontend: settings: Add a back button to the navigation bar.
This commit is contained in:
parent
e7b9fbefbe
commit
36799e87b3
@ -50,6 +50,16 @@ public final class SettingsActivity extends AppCompatActivity implements Setting
|
||||
String gameID = launcher.getStringExtra(ARG_GAME_ID);
|
||||
|
||||
mPresenter.onCreate(savedInstanceState, filename, gameID);
|
||||
|
||||
// Show "Back" button in the action bar for navigation
|
||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onSupportNavigateUp(){
|
||||
onBackPressed();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user