mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-28 18:12:31 -06:00
24 lines
859 B
Java
24 lines
859 B
Java
|
package androidx.lifecycle;
|
||
|
|
||
|
import androidx.lifecycle.ClassesInfoCache;
|
||
|
import androidx.lifecycle.Lifecycle;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
@Deprecated
|
||
|
/* loaded from: classes2.dex */
|
||
|
public class ReflectiveGenericLifecycleObserver implements LifecycleEventObserver {
|
||
|
private final ClassesInfoCache.CallbackInfo mInfo;
|
||
|
private final Object mWrapped;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public ReflectiveGenericLifecycleObserver(Object obj) {
|
||
|
this.mWrapped = obj;
|
||
|
this.mInfo = ClassesInfoCache.sInstance.getInfo(obj.getClass());
|
||
|
}
|
||
|
|
||
|
@Override // androidx.lifecycle.LifecycleEventObserver
|
||
|
public void onStateChanged(LifecycleOwner lifecycleOwner, Lifecycle.Event event) {
|
||
|
this.mInfo.invokeCallbacks(lifecycleOwner, event, this.mWrapped);
|
||
|
}
|
||
|
}
|