Exemplo n.º 1
0
 @Override
 protected void onRestoreInstanceState(Bundle savedInstanceState) {
   super.onRestoreInstanceState(savedInstanceState);
   mCurrentSelectedPosition = savedInstanceState.getInt(STATE_SELECTED_POSITION, 0);
   Menu menu = navigationView.getMenu();
   menu.getItem(mCurrentSelectedPosition).setChecked(true);
 }
 @Override
 protected void onRestoreInstanceState(Bundle savedInstanceState) {
   super.onRestoreInstanceState(savedInstanceState);
   mKeepDrawerClosed = savedInstanceState.getBoolean(KEY_KEEP_DRAWER_CLOSED);
   if (mKeepDrawerClosed) {
     mNavigationDrawer.closeDrawer(GravityCompat.START);
     mKeepDrawerClosed = false;
   }
 }
 @Override
 protected void onRestoreInstanceState(Bundle savedInstanceState) {
   super.onRestoreInstanceState(savedInstanceState);
   DataToSaveImagesVehicles data = savedInstanceState.getParcelable("map");
   imagesMap = data.getMap();
   imageVehicles = savedInstanceState.getParcelableArrayList("arrayList");
   orientation = savedInstanceState.getInt("orientation");
   vehicleOptions = savedInstanceState.getParcelableArrayList("options");
   currentVehicle = savedInstanceState.getParcelable("currentVehicle");
 }
Exemplo n.º 4
0
 @Override
 protected void onRestoreInstanceState(Bundle savedInstanceState) {
   super.onRestoreInstanceState(savedInstanceState);
 }
Exemplo n.º 5
0
 @Override
 protected void onRestoreInstanceState(Bundle savedInstanceState) {
   super.onRestoreInstanceState(savedInstanceState);
   final Game game = Parcels.unwrap(savedInstanceState.getParcelable(GAME_EXTRA));
   presenter.restoreGameModel(game);
 }