mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-25 16:42:30 -06:00
31 lines
2 KiB
Java
31 lines
2 KiB
Java
|
package androidx.lifecycle;
|
||
|
|
||
|
import androidx.core.app.NotificationCompat;
|
||
|
import androidx.lifecycle.Lifecycle;
|
||
|
import io.sentry.protocol.TransactionInfo;
|
||
|
import kotlin.Metadata;
|
||
|
import kotlin.jvm.internal.Intrinsics;
|
||
|
|
||
|
/* compiled from: SavedStateHandleSupport.kt */
|
||
|
@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\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u000b"}, d2 = {"Landroidx/lifecycle/SavedStateHandleAttacher;", "Landroidx/lifecycle/LifecycleEventObserver;", "provider", "Landroidx/lifecycle/SavedStateHandlesProvider;", "(Landroidx/lifecycle/SavedStateHandlesProvider;)V", "onStateChanged", "", TransactionInfo.JsonKeys.SOURCE, "Landroidx/lifecycle/LifecycleOwner;", NotificationCompat.CATEGORY_EVENT, "Landroidx/lifecycle/Lifecycle$Event;", "lifecycle-viewmodel-savedstate_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||
|
/* loaded from: classes2.dex */
|
||
|
public final class SavedStateHandleAttacher implements LifecycleEventObserver {
|
||
|
private final SavedStateHandlesProvider provider;
|
||
|
|
||
|
public SavedStateHandleAttacher(SavedStateHandlesProvider provider) {
|
||
|
Intrinsics.checkNotNullParameter(provider, "provider");
|
||
|
this.provider = provider;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.lifecycle.LifecycleEventObserver
|
||
|
public void onStateChanged(LifecycleOwner source, Lifecycle.Event event) {
|
||
|
Intrinsics.checkNotNullParameter(source, "source");
|
||
|
Intrinsics.checkNotNullParameter(event, "event");
|
||
|
if (event != Lifecycle.Event.ON_CREATE) {
|
||
|
throw new IllegalStateException(("Next event must be ON_CREATE, it was " + event).toString());
|
||
|
}
|
||
|
source.getLifecycle().removeObserver(this);
|
||
|
this.provider.performRestore();
|
||
|
}
|
||
|
}
|