@SuppressWarnings("unchecked") private void restoreBadges(){
  Bundle restoredBundle=savedInstanceState;
  if (restoredBundle != null) {
    if (restoredBundle.containsKey(BADGE_FULL_TEXT_KEY)) {
      shouldShowBadgeWithNinePlus=restoredBundle.getBoolean(BADGE_FULL_TEXT_KEY);
    }
    if (restoredBundle.containsKey(BUDGES_ITEM_BUNDLE_KEY)) {
      badgeSaveInstanceHashMap=(HashMap<Integer,Object>)savedInstanceState.getSerializable(BUDGES_ITEM_BUNDLE_KEY);
      if (badgeSaveInstanceHashMap != null) {
        for (        Integer integer : badgeSaveInstanceHashMap.keySet()) {
          BadgeHelper.forceShowBadge(badgeList.get(integer),(BadgeItem)badgeSaveInstanceHashMap.get(integer),shouldShowBadgeWithNinePlus);
        }
      }
    }
  }
}

@ SuppressWarnings ( "unchecked" ) private void restoreBadges ( ) { Bundle restoredBundle = savedInstanceState ; if ( restoredBundle != null ) { if ( restoredBundle . containsKey ( BADGE_FULL_TEXT_KEY ) ) { shouldShowBadgeWithNinePlus = restoredBundle . getBoolean ( BADGE_FULL_TEXT_KEY ) ; } if ( restoredBundle . containsKey ( BUDGES_ITEM_BUNDLE_KEY ) ) { badgeSaveInstanceHashMap = ( HashMap < Integer , Object > ) savedInstanceState . getSerializable ( BUDGES_ITEM_BUNDLE_KEY ) ; if ( badgeSaveInstanceHashMap != null ) { for ( Integer integer : badgeSaveInstanceHashMap . keySet ( ) ) { BadgeHelper . forceShowBadge ( badgeList . get ( integer ) , ( BadgeItem ) badgeSaveInstanceHashMap . get ( integer ) , shouldShowBadgeWithNinePlus ) ; } } } } }
restore available badges from saveinstance
