createBadgeDrawablesFromSavedStates

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

badgeStates

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