Permalink
Browse files

shorter parameter name for book formatting

  • Loading branch information...
1 parent 29fb7d8 commit 62b3dbb10a344dc302705092c54b002a607fcdc3 @commonsguy committed Jan 3, 2013
Showing with 10 additions and 10 deletions.
  1. +10 −10 MapsV2/NooYawk/src/com/commonsware/android/mapsv2/nooyawk/MainActivity.java
@@ -70,18 +70,18 @@ public boolean onNavigationItemSelected(int itemPosition, long itemId) {
}
@Override
- public void onSaveInstanceState(Bundle savedInstanceState) {
- super.onSaveInstanceState(savedInstanceState);
-
- savedInstanceState.putInt(STATE_NAV,
- getSupportActionBar().getSelectedNavigationIndex());
+ public void onSaveInstanceState(Bundle state) {
+ super.onSaveInstanceState(state);
+
+ state.putInt(STATE_NAV,
+ getSupportActionBar().getSelectedNavigationIndex());
}
-
+
@Override
- public void onRestoreInstanceState(Bundle savedInstanceState) {
- super.onRestoreInstanceState(savedInstanceState);
-
- getSupportActionBar().setSelectedNavigationItem(savedInstanceState.getInt(STATE_NAV));
+ public void onRestoreInstanceState(Bundle state) {
+ super.onRestoreInstanceState(state);
+
+ getSupportActionBar().setSelectedNavigationItem(state.getInt(STATE_NAV));
}
private void initListNav() {

0 comments on commit 62b3dbb

Please sign in to comment.