discord-jadx/app/src/main/java/com/discord/custom_tabs/CustomTabs$warmUp$1.java

65 lines
2.3 KiB
Java

package com.discord.custom_tabs;
import androidx.browser.customtabs.CustomTabsClient;
import androidx.browser.customtabs.CustomTabsServiceConnection;
import androidx.lifecycle.DefaultLifecycleObserver;
import androidx.lifecycle.LifecycleOwner;
import c.a.h.b;
import d0.t.k;
import d0.z.d.m;
import java.util.List;
import y.b.a;
/* compiled from: CustomTabs.kt */
public final class CustomTabs$warmUp$1 implements DefaultLifecycleObserver {
public CustomTabsServiceConnection i;
@Override // androidx.lifecycle.DefaultLifecycleObserver, androidx.lifecycle.FullLifecycleObserver
public /* synthetic */ void onCreate(LifecycleOwner lifecycleOwner) {
a.a(this, lifecycleOwner);
}
@Override // androidx.lifecycle.DefaultLifecycleObserver, androidx.lifecycle.FullLifecycleObserver
public /* synthetic */ void onDestroy(LifecycleOwner lifecycleOwner) {
a.b(this, lifecycleOwner);
}
@Override // androidx.lifecycle.DefaultLifecycleObserver, androidx.lifecycle.FullLifecycleObserver
public void onPause(LifecycleOwner lifecycleOwner) {
m.checkNotNullParameter(lifecycleOwner, "owner");
a.c(this, lifecycleOwner);
if (this.i == null) {
this.i = null;
return;
}
throw null;
}
@Override // androidx.lifecycle.DefaultLifecycleObserver, androidx.lifecycle.FullLifecycleObserver
public void onResume(LifecycleOwner lifecycleOwner) {
m.checkNotNullParameter(lifecycleOwner, "owner");
a.d(this, lifecycleOwner);
b bVar = null;
List list = k.toList((Object[]) null);
m.checkNotNullParameter(null, "context");
m.checkNotNullParameter(list, "uris");
String a = c.a.h.a.a(null);
if (a != null) {
b bVar2 = new b(list);
if (CustomTabsClient.bindCustomTabsService(null, a, bVar2)) {
bVar = bVar2;
}
}
this.i = bVar;
}
@Override // androidx.lifecycle.DefaultLifecycleObserver, androidx.lifecycle.FullLifecycleObserver
public /* synthetic */ void onStart(LifecycleOwner lifecycleOwner) {
a.e(this, lifecycleOwner);
}
@Override // androidx.lifecycle.DefaultLifecycleObserver, androidx.lifecycle.FullLifecycleObserver
public /* synthetic */ void onStop(LifecycleOwner lifecycleOwner) {
a.f(this, lifecycleOwner);
}
}