2021-07-24 02:37:17 +00:00
|
|
|
package c.a.e;
|
|
|
|
|
2021-08-18 07:29:27 +00:00
|
|
|
import android.app.Activity;
|
|
|
|
import android.app.Application;
|
|
|
|
import android.os.Bundle;
|
|
|
|
import androidx.appcompat.widget.ActivityChooserModel;
|
|
|
|
import d0.z.d.m;
|
|
|
|
import j0.l.e.j;
|
|
|
|
import java.util.concurrent.TimeUnit;
|
|
|
|
import kotlin.jvm.functions.Function1;
|
|
|
|
import rx.Observable;
|
|
|
|
import rx.Subscription;
|
2021-07-24 02:37:17 +00:00
|
|
|
import rx.functions.Action1;
|
2021-08-18 07:29:27 +00:00
|
|
|
/* compiled from: Backgrounded.kt */
|
|
|
|
public final class b implements Application.ActivityLifecycleCallbacks {
|
|
|
|
public final /* synthetic */ Function1 i;
|
|
|
|
|
|
|
|
public b(Function1 function1) {
|
|
|
|
this.i = function1;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // android.app.Application.ActivityLifecycleCallbacks
|
|
|
|
public void onActivityCreated(Activity activity, Bundle bundle) {
|
|
|
|
m.checkNotNullParameter(activity, ActivityChooserModel.ATTRIBUTE_ACTIVITY);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // android.app.Application.ActivityLifecycleCallbacks
|
|
|
|
public void onActivityDestroyed(Activity activity) {
|
|
|
|
m.checkNotNullParameter(activity, ActivityChooserModel.ATTRIBUTE_ACTIVITY);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
|
|
/* JADX DEBUG: Type inference failed for r1v1. Raw type applied. Possible types: rx.Observable<T>, rx.Observable */
|
|
|
|
/* JADX WARNING: Unknown variable types count: 1 */
|
|
|
|
@Override // android.app.Application.ActivityLifecycleCallbacks
|
|
|
|
public void onActivityPaused(Activity activity) {
|
|
|
|
m.checkNotNullParameter(activity, ActivityChooserModel.ATTRIBUTE_ACTIVITY);
|
|
|
|
d dVar = d.d;
|
|
|
|
Function1 function1 = this.i;
|
|
|
|
Observable q = new j(Boolean.TRUE).q(2000, TimeUnit.MILLISECONDS);
|
|
|
|
c cVar = new c(new a(dVar));
|
|
|
|
if (function1 != null) {
|
|
|
|
function1 = new c(function1);
|
|
|
|
}
|
2021-10-11 07:48:45 +00:00
|
|
|
d.f53c = q.W(cVar, (Action1) function1);
|
2021-08-18 07:29:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override // android.app.Application.ActivityLifecycleCallbacks
|
|
|
|
public void onActivityResumed(Activity activity) {
|
|
|
|
m.checkNotNullParameter(activity, ActivityChooserModel.ATTRIBUTE_ACTIVITY);
|
|
|
|
d dVar = d.d;
|
|
|
|
d.a = false;
|
2021-10-05 07:27:27 +00:00
|
|
|
Subscription subscription = d.f53c;
|
2021-08-18 07:29:27 +00:00
|
|
|
if (subscription != null) {
|
|
|
|
subscription.unsubscribe();
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
2021-08-18 07:29:27 +00:00
|
|
|
d.b.onNext(Boolean.FALSE);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // android.app.Application.ActivityLifecycleCallbacks
|
|
|
|
public void onActivitySaveInstanceState(Activity activity, Bundle bundle) {
|
|
|
|
m.checkNotNullParameter(activity, ActivityChooserModel.ATTRIBUTE_ACTIVITY);
|
|
|
|
m.checkNotNullParameter(bundle, "bundle");
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // android.app.Application.ActivityLifecycleCallbacks
|
|
|
|
public void onActivityStarted(Activity activity) {
|
|
|
|
m.checkNotNullParameter(activity, ActivityChooserModel.ATTRIBUTE_ACTIVITY);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // android.app.Application.ActivityLifecycleCallbacks
|
|
|
|
public void onActivityStopped(Activity activity) {
|
|
|
|
m.checkNotNullParameter(activity, ActivityChooserModel.ATTRIBUTE_ACTIVITY);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
}
|