Use ActivityHelpers.goHome instead of finish() when the home button is pressed.
This commit is contained in:
parent
466cd66461
commit
4958f252ef
@ -56,7 +56,7 @@ implements Simulations.OnSimulationSelectedListener
|
|||||||
AndroidLogWrapper.d(OpenRocketViewer.class,"onMenuItemSelected" + item.getItemId());
|
AndroidLogWrapper.d(OpenRocketViewer.class,"onMenuItemSelected" + item.getItemId());
|
||||||
switch(item.getItemId()) {
|
switch(item.getItemId()) {
|
||||||
case android.R.id.home:
|
case android.R.id.home:
|
||||||
finish();
|
ActivityHelpers.goHome(this);
|
||||||
return true;
|
return true;
|
||||||
case R.id.motor_list_menu_option:
|
case R.id.motor_list_menu_option:
|
||||||
ActivityHelpers.browseMotors(this);
|
ActivityHelpers.browseMotors(this);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user