createParcelableBadgeStates

Given a map of int keys to BadgeDrawable BadgeDrawables, creates a parcelable map of unique int keys to BadgeDrawable.SavedState SavedStates. Useful for state restoration.

Return

A parcelable SparseArray that contains a map of int keys (e.g. menuItemId) to BadgeDrawable.SavedState SavedStates.

Parameters

badgeDrawables

A SparseArray that contains a map of int keys (e.g. menuItemId) to BadgeDrawable BadgeDrawables.