34 lines
1.0 KiB
Java
34 lines
1.0 KiB
Java
package c.c.a;
|
|
|
|
import android.content.Context;
|
|
import android.content.res.Resources;
|
|
import java.lang.ref.WeakReference;
|
|
import java.util.concurrent.Callable;
|
|
/* compiled from: LottieCompositionFactory */
|
|
public class h implements Callable<p<d>> {
|
|
public final /* synthetic */ WeakReference i;
|
|
public final /* synthetic */ Context j;
|
|
public final /* synthetic */ int k;
|
|
|
|
public h(WeakReference weakReference, Context context, int i) {
|
|
this.i = weakReference;
|
|
this.j = context;
|
|
this.k = i;
|
|
}
|
|
|
|
/* Return type fixed from 'java.lang.Object' to match base method */
|
|
@Override // java.util.concurrent.Callable
|
|
public p<d> call() throws Exception {
|
|
Context context = (Context) this.i.get();
|
|
if (context == null) {
|
|
context = this.j;
|
|
}
|
|
int i = this.k;
|
|
try {
|
|
return e.b(context.getResources().openRawResource(i), e.f(context, i));
|
|
} catch (Resources.NotFoundException e) {
|
|
return new p<>(e);
|
|
}
|
|
}
|
|
}
|