コード例 #1
0
 @Override
 public void restoreState(Parcelable state, ClassLoader cl) {
   if (state instanceof Bundle) {
     Bundle bundle = (Bundle) state;
     super.restoreState(bundle.getParcelable("instanceState"), cl);
     lastNdtStatus = (NdtStatus) bundle.getSerializable("lastNdtStatus");
     return;
   }
 }
コード例 #2
0
 @Override
 public void restoreState(Parcelable state, ClassLoader loader) {
   if (state instanceof Bundle) {
     Bundle bundle = (Bundle) state;
     bundle.setClassLoader(loader);
     SparseArray<Parcelable> ss =
         bundle.containsKey(STATE) ? bundle.getSparseParcelableArray(STATE) : null;
     mSavedStates = ss != null ? ss : new SparseArray<Parcelable>();
   }
   super.restoreState(state, loader);
 }
コード例 #3
0
 @Override
 public void restoreState(Parcelable state, ClassLoader loader) {
   // TODO Auto-generated method stub
   super.restoreState(state, loader);
 }
コード例 #4
0
 @Override
 public void restoreState(Parcelable bundle, ClassLoader classLoader) {
   mAdapter.restoreState(bundle, classLoader);
 }