正在查看: Cantique de Louanges v12 应用的 AppLovinNativeAdImpl.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Cantique de Louanges v12 应用的 AppLovinNativeAdImpl.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.applovin.impl.sdk.nativeAd;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.applovin.impl.adview.AppLovinTouchToClickListener;
import com.applovin.impl.sdk.AppLovinAdBase;
import com.applovin.impl.sdk.ad;
import com.applovin.impl.sdk.array.ArrayService;
import com.applovin.impl.sdk.n;
import com.applovin.impl.sdk.utils.JsonUtils;
import com.applovin.impl.sdk.utils.StringUtils;
import com.applovin.impl.sdk.utils.m;
import com.applovin.impl.sdk.utils.s;
import com.applovin.impl.sdk.utils.u;
import com.applovin.impl.sdk.x;
import com.applovin.mediation.MaxReward;
import com.applovin.sdk.AppLovinSdkUtils;
import com.iab.omid.library.applovin.adsession.VerificationScriptResource;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
import org.json.JSONArray;
import org.json.JSONObject;
public class AppLovinNativeAdImpl extends AppLovinAdBase implements View.OnClickListener, AppLovinTouchToClickListener.OnClickListener, AppLovinNativeAd {
private static final String AD_RESPONSE_TYPE_APPLOVIN = "applovin";
private static final String AD_RESPONSE_TYPE_ORTB = "ortb";
private static final String AD_RESPONSE_TYPE_UNDEFINED = "undefined";
private static final String DEFAULT_APPLOVIN_PRIVACY_URL = "https://www.applovin.com/privacy/";
private static final float MINIMUM_STARS_TO_RENDER = 3.0f;
private static final String TAG = "AppLovinNativeAd";
private static final int VIEWABLE_MRC100_PERCENTAGE = 100;
private static final int VIEWABLE_MRC50_PERCENTAGE = 50;
private static final int VIEWABLE_MRC_REQUIRED_SECONDS = 1;
private static final int VIEWABLE_VIDEO_MRC_REQUIRED_SECONDS = 2;
private final com.applovin.impl.sdk.a.e adEventTracker;
private final String advertiser;
private final String body;
private final String callToAction;
private final Uri clickDestinationBackupUri;
private final Uri clickDestinationUri;
private final List<String> clickTrackingUrls;
private AppLovinNativeAdEventListener eventListener;
private Uri iconUri;
private final List<com.applovin.impl.sdk.network.i> impressionRequests;
private final AtomicBoolean impressionTracked;
private final List<String> jsTrackers;
private Uri mainImageUri;
private AppLovinMediaView mediaView;
private ViewGroup nativeAdView;
private final a onAttachStateChangeHandler;
private AppLovinOptionsView optionsView;
private Uri privacyDestinationUri;
private Uri privacyIconUri;
private final List<View> registeredViews;
private final Double starRating;
private final String tag;
private final String title;
private final com.applovin.impl.b.a vastAd;
@Nullable
private View videoView;
private final b viewableMRC100Callback;
private ad viewableMRC100Tracker;
private final b viewableMRC50Callback;
private ad viewableMRC50Tracker;
@Nullable
private b viewableVideoMRC50Callback;
@Nullable
private ad viewableVideoMRC50Tracker;
public static class Builder {
private final JSONObject adObject;
private String advertiser;
private String body;
private String callToAction;
private Uri clickDestinationBackupUri;
private Uri clickDestinationUri;
private List<String> clickTrackingUrls;
private final JSONObject fullResponse;
private Uri iconUri;
private List<com.applovin.impl.sdk.network.i> impressionRequests;
private List<String> jsTrackers;
private Uri mainImageUri;
private Uri privacyDestinationUri;
private Uri privacyIconUri;
private final n sdk;
private Double starRating;
private String title;
private com.applovin.impl.b.a vastAd;
private List<com.applovin.impl.sdk.network.i> viewableMRC100Requests;
private List<com.applovin.impl.sdk.network.i> viewableMRC50Requests;
private List<com.applovin.impl.sdk.network.i> viewableVideo50Requests;
public Builder(JSONObject jSONObject, JSONObject jSONObject2, n nVar) {
this.adObject = jSONObject;
this.fullResponse = jSONObject2;
this.sdk = nVar;
}
public AppLovinNativeAdImpl build() {
return new AppLovinNativeAdImpl(this);
}
public Builder setAdvertiser(String str) {
this.advertiser = str;
return this;
}
public Builder setBody(String str) {
this.body = str;
return this;
}
public Builder setCallToAction(String str) {
this.callToAction = str;
return this;
}
public Builder setClickDestinationBackupUri(Uri uri) {
this.clickDestinationBackupUri = uri;
return this;
}
public Builder setClickDestinationUri(Uri uri) {
this.clickDestinationUri = uri;
return this;
}
public Builder setClickTrackingUrls(List<String> list) {
this.clickTrackingUrls = list;
return this;
}
public Builder setIconUri(Uri uri) {
this.iconUri = uri;
return this;
}
public Builder setImpressionRequests(List<com.applovin.impl.sdk.network.i> list) {
this.impressionRequests = list;
return this;
}
public Builder setJsTrackers(List<String> list) {
this.jsTrackers = list;
return this;
}
public Builder setMainImageUri(Uri uri) {
this.mainImageUri = uri;
return this;
}
public Builder setPrivacyDestinationUri(Uri uri) {
this.privacyDestinationUri = uri;
return this;
}
public Builder setPrivacyIconUri(Uri uri) {
this.privacyIconUri = uri;
return this;
}
public Builder setStarRating(Double d5) {
this.starRating = d5;
return this;
}
public Builder setTitle(String str) {
this.title = str;
return this;
}
public Builder setVastAd(com.applovin.impl.b.a aVar) {
this.vastAd = aVar;
return this;
}
public Builder setViewableMRC100Requests(List<com.applovin.impl.sdk.network.i> list) {
this.viewableMRC100Requests = list;
return this;
}
public Builder setViewableMRC50Requests(List<com.applovin.impl.sdk.network.i> list) {
this.viewableMRC50Requests = list;
return this;
}
public Builder setViewableVideo50Requests(List<com.applovin.impl.sdk.network.i> list) {
this.viewableVideo50Requests = list;
return this;
}
}
private static class a implements View.OnAttachStateChangeListener {
private final AppLovinNativeAdImpl aHe;
public a(AppLovinNativeAdImpl appLovinNativeAdImpl) {
this.aHe = appLovinNativeAdImpl;
}
public AppLovinNativeAdImpl HF() {
return this.aHe;
}
protected boolean canEqual(Object obj) {
return obj instanceof a;
}
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof a)) {
return false;
}
a aVar = (a) obj;
if (!aVar.canEqual(this)) {
return false;
}
AppLovinNativeAdImpl HF = HF();
AppLovinNativeAdImpl HF2 = aVar.HF();
return HF != null ? HF.equals(HF2) : HF2 == null;
}
public int hashCode() {
AppLovinNativeAdImpl HF = HF();
return 59 + (HF == null ? 43 : HF.hashCode());
}
@Override
public void onViewAttachedToWindow(View view) {
this.aHe.maybeHandleOnAttachedToWindow(view);
}
@Override
public void onViewDetachedFromWindow(View view) {
}
public String toString() {
return "AppLovinNativeAdImpl.OnAttachStateChangeHandler(ad=" + HF() + ")";
}
}
private class b implements ad.a {
private final List<com.applovin.impl.sdk.network.i> aHf;
public b(List<com.applovin.impl.sdk.network.i> list) {
this.aHf = list;
}
public List<com.applovin.impl.sdk.network.i> HG() {
return this.aHf;
}
protected boolean canEqual(Object obj) {
return obj instanceof b;
}
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof b)) {
return false;
}
b bVar = (b) obj;
if (!bVar.canEqual(this)) {
return false;
}
List<com.applovin.impl.sdk.network.i> HG = HG();
List<com.applovin.impl.sdk.network.i> HG2 = bVar.HG();
return HG != null ? HG.equals(HG2) : HG2 == null;
}
public int hashCode() {
List<com.applovin.impl.sdk.network.i> HG = HG();
return 59 + (HG == null ? 43 : HG.hashCode());
}
@Override
public void onLogVisibilityImpression() {
Iterator<com.applovin.impl.sdk.network.i> it = this.aHf.iterator();
while (it.hasNext()) {
((AppLovinAdBase) AppLovinNativeAdImpl.this).sdk.Ct().dispatchPostbackRequest(it.next(), null);
}
}
public String toString() {
return "AppLovinNativeAdImpl.VisibilityCallback(requests=" + HG() + ")";
}
}
private List<com.applovin.impl.sdk.d.a> getDirectClickTrackingPostbacks() {
List<com.applovin.impl.sdk.d.a> a5;
synchronized (this.adObjectLock) {
a5 = u.a("click_tracking_urls", this.adObject, getClCode(), getStringFromAdObject("click_tracking_url", null), this.sdk);
}
return a5;
}
private List<String> getPrivacySandboxClickAttributionUrls() {
return getStringListFromAdObject("privacy_sandbox_click_attribution_urls", Collections.emptyList());
}
private List<String> getPrivacySandboxImpressionAttributionUrls() {
return getStringListFromAdObject("privacy_sandbox_impression_attribution_urls", Collections.emptyList());
}
private boolean isDspAd() {
return AD_RESPONSE_TYPE_ORTB.equalsIgnoreCase(getType());
}
public void launchUri(Uri uri, @Nullable Uri uri2, Context context) {
if (s.a(uri, context, this.sdk)) {
this.sdk.BN();
if (x.Fn()) {
this.sdk.BN().f(this.tag, "Opening URL: " + uri);
return;
}
return;
}
if (s.a(uri2, context, this.sdk)) {
this.sdk.BN();
if (x.Fn()) {
this.sdk.BN().f(this.tag, "Opening backup URL: " + uri2);
}
}
}
public void maybeHandleOnAttachedToWindow(View view) {
if (this.impressionTracked.compareAndSet(false, true)) {
ad adVar = new ad(this.nativeAdView, this.sdk, this.viewableMRC50Callback);
this.viewableMRC50Tracker = adVar;
TimeUnit timeUnit = TimeUnit.SECONDS;
adVar.a(0, 50.0f, 50.0f, timeUnit.toMillis(1L), this.nativeAdView);
ad adVar2 = new ad(this.nativeAdView, this.sdk, this.viewableMRC100Callback);
this.viewableMRC100Tracker = adVar2;
adVar2.a(0, 100.0f, 100.0f, timeUnit.toMillis(1L), this.nativeAdView);
com.applovin.impl.b.a aVar = this.vastAd;
if (aVar != null && aVar.hasVideoUrl()) {
ad adVar3 = new ad(this.nativeAdView, this.sdk, this.viewableVideoMRC50Callback);
this.viewableVideoMRC50Tracker = adVar3;
adVar3.a(0, 50.0f, 50.0f, timeUnit.toMillis(2L), this.videoView);
}
List<String> list = this.jsTrackers;
if (list != null && list.size() > 0) {
if (((Boolean) this.sdk.a(com.applovin.impl.sdk.c.b.aQL)).booleanValue()) {
Iterator<String> it = this.jsTrackers.iterator();
while (it.hasNext()) {
this.sdk.Cg().cM(it.next());
}
} else {
String str = this.jsTrackers.get(0);
if (StringUtils.isValidString(str)) {
final com.applovin.impl.adview.d dVar = new com.applovin.impl.adview.d(null, this.sdk, view.getContext());
dVar.loadData(str, "text/html", "UTF-8");
AppLovinSdkUtils.runOnUiThreadDelayed(new Runnable() {
@Override
public final void run() {
com.applovin.impl.adview.d.this.stopLoading();
}
}, timeUnit.toMillis(5L));
}
}
}
Iterator<com.applovin.impl.sdk.network.i> it2 = this.impressionRequests.iterator();
while (it2.hasNext()) {
this.sdk.Ct().dispatchPostbackRequest(it2.next(), null);
}
this.adEventTracker.x(view);
this.adEventTracker.IL();
if (this.sdk.BW() != null) {
this.sdk.BW().I(getPrivacySandboxImpressionAttributionUrls());
}
}
}
@Override
public void destroy() {
unregisterViewsForInteraction();
this.eventListener = null;
this.adEventTracker.IM();
}
@Override
public long getAdIdNumber() {
return getLongFromAdObject("ad_id", -1L);
}
@Override
public String getAdvertiser() {
return this.advertiser;
}
@Override
public String getBody() {
return this.body;
}
@Nullable
public String getCachePrefix() {
return getStringFromAdObject("cache_prefix", null);
}
@Override
public String getCallToAction() {
return this.callToAction;
}
@Override
public Bundle getDirectDownloadParameters() {
return JsonUtils.toBundle(getJsonObjectFromAdObject("ah_parameters", null));
}
@Override
@Nullable
public String getDirectDownloadToken() {
return getStringFromAdObject("ah_dd_token", null);
}
@Override
public Uri getIconUri() {
return this.iconUri;
}
public Uri getMainImageUri() {
return this.mainImageUri;
}
@Override
public AppLovinMediaView getMediaView() {
return this.mediaView;
}
@Override
@Nullable
public String getOpenMeasurementContentUrl() {
return getStringFromAdObject("omid_content_url", null);
}
@Override
public String getOpenMeasurementCustomReferenceData() {
return getStringFromAdObject("omid_custom_ref_data", MaxReward.DEFAULT_LABEL);
}
@Override
public List<VerificationScriptResource> getOpenMeasurementVerificationScriptResources() {
ArrayList arrayList = new ArrayList();
synchronized (this.adObjectLock) {
JSONArray jSONArray = JsonUtils.getJSONArray(this.adObject, "omid_verification_script_resources", null);
if (jSONArray != null) {
for (int i5 = 0; i5 < jSONArray.length(); i5++) {
JSONObject jSONObject = JsonUtils.getJSONObject(jSONArray, i5, (JSONObject) null);
try {
URL url = new URL(JsonUtils.getString(jSONObject, "url", null));
String string = JsonUtils.getString(jSONObject, "vendor_key", null);
String string2 = JsonUtils.getString(jSONObject, "parameters", null);
if (StringUtils.isValidString(string) && StringUtils.isValidString(string2)) {
arrayList.add(VerificationScriptResource.createVerificationScriptResourceWithParameters(string, url, string2));
} else {
arrayList.add(VerificationScriptResource.createVerificationScriptResourceWithoutParameters(url));
}
} catch (Throwable th) {
this.sdk.BN();
if (x.Fn()) {
this.sdk.BN().c(this.tag, "Failed to parse OMID verification script resource", th);
}
}
}
}
}
return arrayList;
}
@Override
public AppLovinOptionsView getOptionsView() {
return this.optionsView;
}
public Uri getPrivacyDestinationUri() {
return this.privacyDestinationUri;
}
public Uri getPrivacyIconUri() {
return this.privacyIconUri;
}
@Override
public Double getStarRating() {
return this.starRating;
}
@Override
public String getTitle() {
return this.title;
}
public String getType() {
return getStringFromAdObject("type", AD_RESPONSE_TYPE_UNDEFINED);
}
public com.applovin.impl.b.a getVastAd() {
return this.vastAd;
}
protected void handleNativeAdClick(Uri uri, @Nullable Uri uri2, MotionEvent motionEvent, Context context) {
if (this.sdk.BW() != null) {
this.sdk.BW().a(getPrivacySandboxClickAttributionUrls(), motionEvent);
}
handleNativeAdClick(uri, uri2, context);
}
@Override
public boolean isDirectDownloadEnabled() {
return StringUtils.isValidString(getDirectDownloadToken());
}
@Override
public boolean isOpenMeasurementEnabled() {
return getBooleanFromAdObject("omsdk_enabled", Boolean.FALSE);
}
@Override
public void onClick(View view) {
this.sdk.BN();
if (x.Fn()) {
this.sdk.BN().f(this.tag, "Handle view clicked");
}
this.sdk.BD().maybeSubmitPersistentPostbacks(getDirectClickTrackingPostbacks());
handleNativeAdClick(this.clickDestinationUri, this.clickDestinationBackupUri, view.getContext());
}
@Override
public void registerViewsForInteraction(List<View> list, ViewGroup viewGroup) {
this.nativeAdView = viewGroup;
if (com.applovin.impl.sdk.utils.h.KW() && this.nativeAdView.isAttachedToWindow()) {
maybeHandleOnAttachedToWindow(this.nativeAdView);
} else if (com.applovin.impl.sdk.utils.h.KW() || this.nativeAdView.getParent() == null) {
this.nativeAdView.addOnAttachStateChangeListener(this.onAttachStateChangeHandler);
} else {
maybeHandleOnAttachedToWindow(this.nativeAdView);
}
this.sdk.BN();
if (x.Fn()) {
this.sdk.BN().f(this.tag, "Registered ad view for impressions: " + this.nativeAdView);
}
if (this.clickDestinationUri == null && this.clickDestinationBackupUri == null) {
this.sdk.BN();
if (x.Fn()) {
this.sdk.BN().f(this.tag, "Skipping click registration - no click URLs provided");
return;
}
return;
}
for (View view : list) {
if (view.hasOnClickListeners()) {
this.sdk.BN();
if (x.Fn()) {
this.sdk.BN().h(this.tag, "View has an onClickListener already - " + view);
}
}
if (!view.isClickable()) {
this.sdk.BN();
if (x.Fn()) {
this.sdk.BN().h(this.tag, "View is not clickable - " + view);
}
}
if (!view.isEnabled()) {
this.sdk.BN();
if (x.Fn()) {
this.sdk.BN().i(this.tag, "View is not enabled - " + view);
}
}
if (view instanceof Button) {
this.sdk.BN();
if (x.Fn()) {
this.sdk.BN().f(this.tag, "Registering click for button: " + view);
}
} else {
this.sdk.BN();
if (x.Fn()) {
this.sdk.BN().f(this.tag, "Registering click for view: " + view);
}
}
if (((Boolean) this.sdk.a(com.applovin.impl.sdk.c.b.aNB)).booleanValue()) {
view.setOnTouchListener(new AppLovinTouchToClickListener(this.sdk, com.applovin.impl.sdk.c.b.aLp, viewGroup.getContext(), this));
} else {
view.setOnClickListener(this);
}
this.registeredViews.add(view);
}
this.sdk.BN();
if (x.Fn()) {
this.sdk.BN().f(this.tag, "Registered views: " + this.registeredViews);
}
}
public void setEventListener(AppLovinNativeAdEventListener appLovinNativeAdEventListener) {
this.eventListener = appLovinNativeAdEventListener;
}
public void setIconUri(Uri uri) {
this.iconUri = uri;
}
public void setMainImageUri(Uri uri) {
this.mainImageUri = uri;
}
public void setPrivacyIconUri(Uri uri) {
this.privacyIconUri = uri;
}
public void setUpNativeAdViewComponents() {
com.applovin.impl.b.a aVar = this.vastAd;
if (aVar == null || !aVar.hasVideoUrl()) {
this.mediaView = new AppLovinMediaView(this, this.sdk, n.getApplicationContext());
} else {
try {
this.mediaView = new AppLovinVastMediaView(this, this.sdk, n.getApplicationContext());
} catch (Throwable th) {
this.sdk.BN();
if (x.Fn()) {
this.sdk.BN().b(this.tag, "Failed to create ExoPlayer VAST media view. Falling back to static image for media view.", th);
}
this.sdk.Cs().d(TAG, "createExoPlayerVASTMediaView", th);
this.mediaView = new AppLovinMediaView(this, this.sdk, n.getApplicationContext());
}
}
if (this.privacyDestinationUri != null) {
this.optionsView = new AppLovinOptionsView(this, this.sdk, n.getApplicationContext());
return;
}
this.sdk.BN();
if (x.Fn()) {
this.sdk.BN().f(this.tag, "Privacy icon will not render because no native ad privacy URL is provided.");
}
}
public void setVideoView(@Nullable View view) {
this.videoView = view;
}
public boolean shouldInjectOpenMeasurementScriptDuringCaching() {
return false;
}
@NonNull
public String toString() {
return "AppLovinNativeAd{adIdNumber=" + getAdIdNumber() + " - " + getTitle() + "}";
}
@Override
public void unregisterViewsForInteraction() {
for (View view : this.registeredViews) {
view.setOnTouchListener(null);
view.setOnClickListener(null);
}
this.sdk.BN();
if (x.Fn()) {
this.sdk.BN().f(this.tag, "Unregistered views: " + this.registeredViews);
}
this.registeredViews.clear();
ad adVar = this.viewableMRC50Tracker;
if (adVar != null) {
adVar.Fw();
}
ad adVar2 = this.viewableMRC100Tracker;
if (adVar2 != null) {
adVar2.Fw();
}
ad adVar3 = this.viewableVideoMRC50Tracker;
if (adVar3 != null) {
adVar3.Fw();
}
ViewGroup viewGroup = this.nativeAdView;
if (viewGroup != null) {
viewGroup.removeOnAttachStateChangeListener(this.onAttachStateChangeHandler);
this.nativeAdView = null;
}
AppLovinMediaView appLovinMediaView = this.mediaView;
if (appLovinMediaView != null) {
appLovinMediaView.destroy();
}
AppLovinOptionsView appLovinOptionsView = this.optionsView;
if (appLovinOptionsView != null) {
appLovinOptionsView.destroy();
}
}
private AppLovinNativeAdImpl(Builder builder) {
super(builder.adObject, builder.fullResponse, builder.sdk);
this.impressionTracked = new AtomicBoolean();
this.registeredViews = new ArrayList();
this.onAttachStateChangeHandler = new a(this);
this.adEventTracker = new com.applovin.impl.sdk.a.e(this);
this.title = builder.title;
this.advertiser = builder.advertiser;
this.body = builder.body;
this.callToAction = builder.callToAction;
this.iconUri = builder.iconUri;
this.mainImageUri = builder.mainImageUri;
this.privacyIconUri = builder.privacyIconUri;
com.applovin.impl.b.a aVar = builder.vastAd;
this.vastAd = aVar;
this.clickDestinationUri = builder.clickDestinationUri;
this.clickDestinationBackupUri = builder.clickDestinationBackupUri;
this.clickTrackingUrls = builder.clickTrackingUrls;
this.jsTrackers = builder.jsTrackers;
this.impressionRequests = builder.impressionRequests;
Double d5 = builder.starRating;
this.starRating = (d5 == null || d5.doubleValue() < 3.0d) ? null : d5;
if (builder.privacyDestinationUri != null) {
this.privacyDestinationUri = builder.privacyDestinationUri;
} else if (!isDspAd() || getSdk().CE().isEnabled()) {
this.privacyDestinationUri = Uri.parse(DEFAULT_APPLOVIN_PRIVACY_URL);
}
this.viewableMRC50Callback = new b(builder.viewableMRC50Requests);
this.viewableMRC100Callback = new b(builder.viewableMRC100Requests);
if (aVar != null && aVar.hasVideoUrl()) {
this.viewableVideoMRC50Callback = new b(builder.viewableVideo50Requests);
}
this.tag = "AppLovinNativeAd:" + getAdIdNumber();
}
public com.applovin.impl.sdk.a.e getAdEventTracker() {
return this.adEventTracker;
}
private void handleNativeAdClick(final Uri uri, @Nullable final Uri uri2, final Context context) {
Iterator<String> it = this.clickTrackingUrls.iterator();
while (it.hasNext()) {
this.sdk.Ct().dispatchPostbackAsync(it.next(), null);
}
m.a(this.eventListener, this);
if (isDirectDownloadEnabled()) {
this.sdk.Cr().startDirectInstallOrDownloadProcess(this, null, new ArrayService.DirectDownloadListener() {
@Override
public void onAppDetailsDismissed() {
}
@Override
public void onAppDetailsDisplayed() {
}
@Override
public void onFailure() {
AppLovinNativeAdImpl.this.launchUri(uri, uri2, context);
}
});
} else {
launchUri(uri, uri2, context);
}
}
@Override
public void onClick(View view, MotionEvent motionEvent) {
this.sdk.BN();
if (x.Fn()) {
this.sdk.BN().f(this.tag, "Handle view clicked");
}
this.sdk.BD().maybeSubmitPersistentPostbacks(getDirectClickTrackingPostbacks());
handleNativeAdClick(this.clickDestinationUri, this.clickDestinationBackupUri, motionEvent, view.getContext());
}
}