- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
96 lines
3.5 KiB
Java
96 lines
3.5 KiB
Java
package com.facebook.ads;
|
|
|
|
import android.annotation.TargetApi;
|
|
import android.content.Context;
|
|
import android.util.AttributeSet;
|
|
import android.view.View;
|
|
import androidx.annotation.Keep;
|
|
import androidx.annotation.UiThread;
|
|
import com.facebook.ads.internal.api.AdNativeComponentView;
|
|
import com.facebook.ads.internal.api.AdViewConstructorParams;
|
|
import com.facebook.ads.internal.api.MediaViewApi;
|
|
import com.facebook.ads.internal.dynamicloading.DynamicLoaderFactory;
|
|
import com.facebook.infer.annotation.Nullsafe;
|
|
|
|
@Keep
|
|
@UiThread
|
|
@Nullsafe(Nullsafe.Mode.LOCAL)
|
|
/* loaded from: classes2.dex */
|
|
public class MediaView extends AdNativeComponentView {
|
|
private AdViewConstructorParams mConstructorParams;
|
|
private MediaViewApi mMediaViewApi;
|
|
|
|
public MediaViewApi getMediaViewApi() {
|
|
return this.mMediaViewApi;
|
|
}
|
|
|
|
public MediaView(Context context) {
|
|
super(context);
|
|
initializeSelf(new AdViewConstructorParams(context));
|
|
}
|
|
|
|
public MediaView(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
initializeSelf(new AdViewConstructorParams(context, attributeSet));
|
|
}
|
|
|
|
public MediaView(Context context, AttributeSet attributeSet, int i) {
|
|
super(context, attributeSet, i);
|
|
initializeSelf(new AdViewConstructorParams(context, attributeSet, i));
|
|
}
|
|
|
|
@TargetApi(21)
|
|
public MediaView(Context context, AttributeSet attributeSet, int i, int i2) {
|
|
super(context, attributeSet, i, i2);
|
|
initializeSelf(new AdViewConstructorParams(context, attributeSet, i, i2));
|
|
}
|
|
|
|
private void initializeSelf(AdViewConstructorParams adViewConstructorParams) {
|
|
this.mConstructorParams = adViewConstructorParams;
|
|
MediaViewApi createMediaViewApi = DynamicLoaderFactory.makeLoader(adViewConstructorParams.getContext()).createMediaViewApi();
|
|
this.mMediaViewApi = createMediaViewApi;
|
|
attachAdComponentViewApi(createMediaViewApi);
|
|
this.mMediaViewApi.initialize(adViewConstructorParams, this);
|
|
}
|
|
|
|
public void setVideoRenderer(MediaViewVideoRenderer mediaViewVideoRenderer) {
|
|
this.mMediaViewApi.setVideoRenderer(mediaViewVideoRenderer);
|
|
}
|
|
|
|
public int getMediaWidth() {
|
|
return this.mMediaViewApi.getMediaWidth();
|
|
}
|
|
|
|
public int getMediaHeight() {
|
|
return this.mMediaViewApi.getMediaHeight();
|
|
}
|
|
|
|
@Override // com.facebook.ads.internal.api.AdNativeComponentView
|
|
public View getAdContentsView() {
|
|
return this.mMediaViewApi.getAdContentsView();
|
|
}
|
|
|
|
public void setListener(MediaViewListener mediaViewListener) {
|
|
this.mMediaViewApi.setListener(mediaViewListener);
|
|
}
|
|
|
|
public void destroy() {
|
|
this.mMediaViewApi.destroy();
|
|
}
|
|
|
|
public void repair(Throwable th) {
|
|
post(new Runnable() { // from class: com.facebook.ads.MediaView.1
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
MediaView.this.removeAllViews();
|
|
((AdNativeComponentView) MediaView.this).mAdComponentViewApi = null;
|
|
MediaView mediaView = MediaView.this;
|
|
mediaView.mMediaViewApi = DynamicLoaderFactory.makeLoader(mediaView.mConstructorParams.getContext()).createMediaViewApi();
|
|
MediaView mediaView2 = MediaView.this;
|
|
mediaView2.attachAdComponentViewApi(mediaView2.mMediaViewApi);
|
|
MediaView.this.mMediaViewApi.initialize(MediaView.this.mConstructorParams, MediaView.this);
|
|
}
|
|
});
|
|
}
|
|
}
|