content: package androidx.lifecycle;
  
  import androidx.core.app.NotificationCompat;
  import androidx.lifecycle.Lifecycle;
  import kotlin.Metadata;
  import kotlin.jvm.internal.Intrinsics;
  
  @Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\b\u0000\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u0018\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\nH\u0016R\u000e\u0010\u0002\u001a\u00020\u0003X\u0004¢\u0006\u0002\n\u0000¨\u0006\u000b"}, d2 = {"Landroidx/lifecycle/SavedStateHandleAttacher;", "Landroidx/lifecycle/LifecycleEventObserver;", "provider", "Landroidx/lifecycle/SavedStateHandlesProvider;", "(Landroidx/lifecycle/SavedStateHandlesProvider;)V", "onStateChanged", "", "source", "Landroidx/lifecycle/LifecycleOwner;", "event", "Landroidx/lifecycle/Lifecycle$Event;", "lifecycle-viewmodel-savedstate_release"}, k = 1, mv = {1, 6, 0}, xi = 48)
  /* compiled from: SavedStateHandleSupport.kt */
  public final class SavedStateHandleAttacher implements LifecycleEventObserver {
      private final SavedStateHandlesProvider provider;
  
      public SavedStateHandleAttacher(SavedStateHandlesProvider provider2) {
          Intrinsics.checkNotNullParameter(provider2, "provider");
          this.provider = provider2;
      }
  
      public void onStateChanged(LifecycleOwner source, Lifecycle.Event event) {
          Intrinsics.checkNotNullParameter(source, "source");
          Intrinsics.checkNotNullParameter(event, NotificationCompat.CATEGORY_EVENT);
          if (event == Lifecycle.Event.ON_CREATE) {
              source.getLifecycle().removeObserver(this);
              this.provider.performRestore();
              return;
          }
          throw new IllegalStateException(("Next event must be ON_CREATE, it was " + event).toString());
      }
  }
  