コード例 #1
0
ファイル: HomeActivity.java プロジェクト: JRSosa/EventQA
 @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);
 }
コード例 #2
0
 @Override
 protected void onRestoreInstanceState(Bundle savedInstanceState) {
   super.onRestoreInstanceState(savedInstanceState);
   mKeepDrawerClosed = savedInstanceState.getBoolean(KEY_KEEP_DRAWER_CLOSED);
   if (mKeepDrawerClosed) {
     mNavigationDrawer.closeDrawer(GravityCompat.START);
     mKeepDrawerClosed = false;
   }
 }
コード例 #3
0
 @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");
 }
コード例 #4
0
ファイル: ChatActivity.java プロジェクト: asantoso/moob
 @Override
 protected void onRestoreInstanceState(Bundle savedInstanceState) {
   super.onRestoreInstanceState(savedInstanceState);
 }
コード例 #5
0
 @Override
 protected void onRestoreInstanceState(Bundle savedInstanceState) {
   super.onRestoreInstanceState(savedInstanceState);
   final Game game = Parcels.unwrap(savedInstanceState.getParcelable(GAME_EXTRA));
   presenter.restoreGameModel(game);
 }