code: public static void onRestoreState(Context context, Bundle bundle) {
          // The Bundle will be null sometimes
          if (bundle == null)  return;
  
          // Get the List created in onSaveState()
          final ArrayList<Style> styleList = bundle.getParcelableArrayList(BUNDLE_KEY);
  
          if (styleList == null) {
              Log.e(SuperActivityToast.class.getName(), "Cannot recreate " +
                      "SuperActivityToasts onRestoreState(). Was onSaveState() called?");
              return;
          }
  
          // Create a flag that knows if the SuperActivityToast is first in the List or not
          boolean firstInList = true;
          for (Style style : styleList) {
              if (!style.isSuperActivityToast) new SuperToast(context, style).show();
              else {
                  // This SuperActivityToast was most likely showing before the orientation change so ignore the show animation
                  if (firstInList)
                      new SuperActivityToast(context, style).fromOrientationChange().show();
                  else new SuperActivityToast(context, style).show();
              }
              firstInList = false;
          }
      }
docs: Restores the state of all SuperToasts that were showing and/or pending.
  
  This should be called in the {@link android.app.Activity#onCreate(android.os.Bundle)}
  method of your Activity.
  
  @param context The Activity Context
  @param bundle The Bundle provided in onCreate()