Skip to content

Commit

Permalink
Merge pull request #5698 from wordpress-mobile/issue/transaction-too-…
Browse files Browse the repository at this point in the history
…large-crash

Possible fix to TransactionTooLarge crash
  • Loading branch information
maxme authored Apr 24, 2017
2 parents 21f15a9 + 5ea1f07 commit 44dae1d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,11 @@ public void restoreState(Parcelable state, ClassLoader loader) {
@Override
public Parcelable saveState() {
AppLog.d(AppLog.T.NOTIFS, "notifications pager > adapter saveState");
return super.saveState();
Bundle bundle = (Bundle) super.saveState();
// This is a possible solution to https://github.com/wordpress-mobile/WordPress-Android/issues/5456
// See https://issuetracker.google.com/issues/37103380#comment77 for more details
bundle.putParcelableArray("states", null);
return bundle;
}

boolean isValidPosition(int position) {
Expand Down

0 comments on commit 44dae1d

Please sign in to comment.