Closed longkiGit closed 6 months ago
@Override protected Parcelable onSaveInstanceState() { try { Bundle bundle = new Bundle(); bundle.putParcelable("superState", super.onSaveInstanceState()); if (this.mHasEditState == null || this.mHasEditState) { this.mBitmapSavedState = this.getTransparentSignatureBitmap(); } bundle.putParcelable("signatureBitmap", this.mBitmapSavedState); return bundle; } catch(Exception e) { Log.w(TAG, String.format("error saving instance state: %s", e.getMessage())); return super.onSaveInstanceState(); } } Bundle 超出崩溃。
问题修复 @OverRide protected Parcelable onSaveInstanceState() { return super.onSaveInstanceState(); }
@Override protected Parcelable onSaveInstanceState() { try { Bundle bundle = new Bundle(); bundle.putParcelable("superState", super.onSaveInstanceState()); if (this.mHasEditState == null || this.mHasEditState) { this.mBitmapSavedState = this.getTransparentSignatureBitmap(); } bundle.putParcelable("signatureBitmap", this.mBitmapSavedState); return bundle; } catch(Exception e) { Log.w(TAG, String.format("error saving instance state: %s", e.getMessage())); return super.onSaveInstanceState(); } } Bundle 超出崩溃。