vikramkakkar / SublimeNavigationView

...is a complete rewrite of NavigationView (from Design Support library) that enables - usage of Checkboxes, Switches & Badges as menu items - XML definition - Parcelable menus - collapsible/expandable menu-groups - multiple menus - custom styling.
Apache License 2.0
309 stars 42 forks source link

Android 7.x BadParcelableException: ClassNotFoundException when unmarshalling: com.appeaser.sublimenavigationviewlibrary.SublimeMenu #33

Open tuxtux59 opened 6 years ago

tuxtux59 commented 6 years ago

Hello,

Since few weeks I'm experiencing this crash on devices running Android 7.x (7.0 & 7.1.1 for now) BadParcelableException: ClassNotFoundException when unmarshalling: com.appeaser.sublimenavigationviewlibrary.SublimeMenu

This crash came from SublimeNavigationView.java line 479

if (menuState != null && menuState.containsKey(SS_MENU)) { mMenu = menuState.getParcelable(SS_MENU); } Code inside onRestoreInstance method.

Here is the linked menu if it's can help. I tried to track the error from my own code but it appears that the crash only linked to the library :/

`<?xml version="1.0" encoding="utf-8"?>

` Moreover the problem seems to be random (or at least I have not found yet the source of the crash). Have you an idea or a fix? Thanks
alashow commented 6 years ago

It's fixed but not released. See usage in here: #8