31 lines
799 B
Java
31 lines
799 B
Java
package pl.droidsonroids.gif;
|
|
|
|
import java.lang.Thread;
|
|
|
|
/* loaded from: classes2.dex */
|
|
abstract class SafeRunnable implements Runnable {
|
|
final GifDrawable a;
|
|
|
|
SafeRunnable(GifDrawable gifDrawable) {
|
|
this.a = gifDrawable;
|
|
}
|
|
|
|
abstract void a();
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
try {
|
|
if (this.a.e()) {
|
|
return;
|
|
}
|
|
a();
|
|
} catch (Throwable th) {
|
|
Thread.UncaughtExceptionHandler defaultUncaughtExceptionHandler = Thread.getDefaultUncaughtExceptionHandler();
|
|
if (defaultUncaughtExceptionHandler != null) {
|
|
defaultUncaughtExceptionHandler.uncaughtException(Thread.currentThread(), th);
|
|
}
|
|
throw th;
|
|
}
|
|
}
|
|
}
|