Skip to content

Commit

Permalink
bugfix: Pre-Honeycomb devices can exit input map activity.
Browse files Browse the repository at this point in the history
As a side benefit, makes users aware of the other items in the menu.
  • Loading branch information
littleguy77 committed Jan 21, 2013
1 parent 1b285a1 commit 2d9c808
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions res/menu/input_map_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
<item
android:id="@+id/menuItem_controllerDiagnostics"
android:title="@string/actionControllerDiagnostics_title"/>
<item
android:id="@+id/menuItem_exit"
android:title="@string/menuItem_exit"/>

</menu>
5 changes: 4 additions & 1 deletion res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<resources>

<!-- ************************************************************************** -->
<!-- In-Game Strings -->
<!-- Menu Strings -->
<!-- ************************************************************************** -->

<!-- In-Game Menu -->
Expand All @@ -35,6 +35,9 @@
<string name="ingameSetIme_title">Change IME</string>
<string name="ingameMainMenu_title">Main menu</string>

<!-- Input Mapping Activity -->
<string name="menuItem_exit">Exit</string>

<!-- ************************************************************************** -->
<!-- Toast Messages -->
<!-- Developers: Follow punctuation and grammar as shown below -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ public boolean onOptionsItemSelected( MenuItem item )
case R.id.menuItem_controllerDiagnostics:
startActivity( new Intent( this, DiagnosticActivity.class ) );
break;
case R.id.menuItem_exit:
finish();
break;
default:
return false;
}
Expand Down

0 comments on commit 2d9c808

Please sign in to comment.