onRestoreInstanceState(Parcelable state)中的return具體是什么作用呢
protected void onRestoreInstanceState(Parcelable state) {
? ?if (state instanceof Bundle){
? ? ? ?Bundle bundle = (Bundle) state;
? ? ? ?isGrameOver = bundle.getBoolean(INSTANCE_GAMEOVR);
? ? ? ?mWhiteArray = bundle.getParcelableArrayList(INSTANCE_WHITE_ARRAY);
? ? ? ?mBlackArray = bundle.getParcelableArrayList(INSTANCE_BLACK_ARRAY);
? ? ? ?super.onRestoreInstanceState(bundle.getParcelable(INSTANCE));
? ? ? ?return;
? ?}
? ?super.onRestoreInstanceState(state);
}
2016-08-21
提前結(jié)束onRestoreInstanceState函數(shù),