21 lines
927 B
Java
21 lines
927 B
Java
|
package com.discord.utilities.rx;
|
||
|
|
||
|
import androidx.fragment.app.Fragment;
|
||
|
import androidx.fragment.app.FragmentActivity;
|
||
|
import com.discord.app.AppComponent;
|
||
|
import j0.k.b;
|
||
|
/* compiled from: ObservableExtensions.kt */
|
||
|
public final class ObservableExtensionsKt$bindToComponentLifecycle$$inlined$let$lambda$1<T, R> implements b<T, Boolean> {
|
||
|
public final /* synthetic */ AppComponent $appComponent$inlined;
|
||
|
|
||
|
public ObservableExtensionsKt$bindToComponentLifecycle$$inlined$let$lambda$1(AppComponent appComponent) {
|
||
|
this.$appComponent$inlined = appComponent;
|
||
|
}
|
||
|
|
||
|
@Override // j0.k.b
|
||
|
public final Boolean call(T t) {
|
||
|
FragmentActivity activity;
|
||
|
return Boolean.valueOf(((Fragment) this.$appComponent$inlined).isAdded() && !((Fragment) this.$appComponent$inlined).isRemoving() && (activity = ((Fragment) this.$appComponent$inlined).getActivity()) != null && !activity.isFinishing());
|
||
|
}
|
||
|
}
|