- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
23 lines
773 B
Java
23 lines
773 B
Java
package androidx.lifecycle;
|
|
|
|
import androidx.annotation.NonNull;
|
|
import androidx.lifecycle.ClassesInfoCache;
|
|
import androidx.lifecycle.Lifecycle;
|
|
|
|
@Deprecated
|
|
/* loaded from: classes.dex */
|
|
class ReflectiveGenericLifecycleObserver implements LifecycleEventObserver {
|
|
private final ClassesInfoCache.CallbackInfo mInfo;
|
|
private final Object mWrapped;
|
|
|
|
public ReflectiveGenericLifecycleObserver(Object obj) {
|
|
this.mWrapped = obj;
|
|
this.mInfo = ClassesInfoCache.sInstance.getInfo(obj.getClass());
|
|
}
|
|
|
|
@Override // androidx.lifecycle.LifecycleEventObserver
|
|
public void onStateChanged(@NonNull LifecycleOwner lifecycleOwner, @NonNull Lifecycle.Event event) {
|
|
this.mInfo.invokeCallbacks(lifecycleOwner, event, this.mWrapped);
|
|
}
|
|
}
|