create Badge Drawables From Saved States
open fun createBadgeDrawablesFromSavedStates(context: Context, @NonNull badgeStates: ParcelableSparseArray): SparseArray<BadgeDrawable>
Given a map of int keys to SavedStates, creates a parcelable map of int keys to BadgeDrawbles. Useful for state restoration.
Return
A SparseArray that contains a map of int keys (e.g. menuItemId) to BadgeDrawables.
Parameters
context
Current context
badge States
A parcelable SparseArray that contains a map of int keys (e.g. menuItemId) to states.