64 lines
1.9 KiB
Java
64 lines
1.9 KiB
Java
|
package com.facetec.sdk;
|
||
|
|
||
|
import android.app.Activity;
|
||
|
import android.app.Fragment;
|
||
|
import android.os.Bundle;
|
||
|
import android.os.Handler;
|
||
|
import android.os.Looper;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* loaded from: classes.dex */
|
||
|
public abstract class aq extends Fragment {
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class e implements Runnable {
|
||
|
private aq c;
|
||
|
private final Runnable e;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public e(aq aqVar, Runnable runnable) {
|
||
|
this.c = aqVar;
|
||
|
this.e = runnable;
|
||
|
}
|
||
|
|
||
|
@Override // java.lang.Runnable
|
||
|
public final void run() {
|
||
|
Activity activity;
|
||
|
aq aqVar = this.c;
|
||
|
if (aqVar == null || !aqVar.isAdded() || (activity = aqVar.getActivity()) == null || activity.isFinishing()) {
|
||
|
return;
|
||
|
}
|
||
|
this.e.run();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public final void c(Runnable runnable) {
|
||
|
if (getActivity() == null) {
|
||
|
return;
|
||
|
}
|
||
|
new Handler(Looper.getMainLooper()).post(new e(this, runnable));
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public final void e(Runnable runnable, long j) {
|
||
|
b(new e(this, runnable), j);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static void b(e eVar, long j) {
|
||
|
new Handler(Looper.getMainLooper()).postDelayed(eVar, j);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public final void a(Runnable runnable, long j) {
|
||
|
new Handler().postDelayed(new e(this, runnable), j);
|
||
|
}
|
||
|
|
||
|
@Override // android.app.Fragment
|
||
|
public void onCreate(Bundle bundle) {
|
||
|
super.onCreate(bundle);
|
||
|
}
|
||
|
}
|