- 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
136 lines
4.4 KiB
Java
136 lines
4.4 KiB
Java
package com.fyber.inneractive.sdk.player.ui;
|
|
|
|
import android.content.Context;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.ImageView;
|
|
import android.widget.TextView;
|
|
import com.fyber.inneractive.sdk.R;
|
|
import com.fyber.inneractive.sdk.config.IAConfigManager;
|
|
import com.fyber.inneractive.sdk.ui.IAsmoothProgressBar;
|
|
import com.fyber.inneractive.sdk.util.IAlog;
|
|
import java.util.Locale;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class p extends k {
|
|
public TextView a0;
|
|
public TextView b0;
|
|
|
|
public p(Context context, com.fyber.inneractive.sdk.flow.e eVar, a aVar, com.fyber.inneractive.sdk.config.global.s sVar, boolean z, String str) {
|
|
super(context, eVar, aVar, sVar, z, str);
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.player.ui.k
|
|
public int getMuteUnMuteButtonResourceId() {
|
|
return R.id.ia_iv_mute_button;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.player.ui.s
|
|
public View[] getTrackingFriendlyView() {
|
|
return new View[]{this.Q, this.a0, this.b0, this.R, this.T, this.U, this.x};
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.player.ui.k
|
|
public int getVideoProgressBarResourceId() {
|
|
return R.id.ia_video_progressbar;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.player.ui.k
|
|
public int getVideoViewLayoutId() {
|
|
return R.layout.ia_layout_video_view;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.player.ui.s
|
|
public final void m() {
|
|
ViewGroup.LayoutParams layoutParams = this.Q.getLayoutParams();
|
|
layoutParams.width = -2;
|
|
this.Q.setLayoutParams(layoutParams);
|
|
this.Q.setTextSize(0, getResources().getDimension(R.dimen.ia_video_overlay_text_large_for_cta));
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.player.ui.s
|
|
public final boolean n() {
|
|
return this.a0 == null && this.T == null;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.player.ui.k
|
|
public final void s() {
|
|
super.s();
|
|
this.a0 = (TextView) findViewById(R.id.ia_tv_remaining_time);
|
|
TextView textView = (TextView) findViewById(R.id.ia_tv_skip);
|
|
this.b0 = textView;
|
|
a(textView, 6);
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.player.ui.s
|
|
public final void b(boolean z) {
|
|
TextView textView = this.a0;
|
|
if (textView != null) {
|
|
textView.setVisibility(z ? 0 : 4);
|
|
}
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.player.ui.s
|
|
public final void d(boolean z) {
|
|
if (this.l != null) {
|
|
ViewGroup viewGroup = this.u;
|
|
if (viewGroup == null || viewGroup.getVisibility() != 0) {
|
|
this.l.setVisibility(z ? 0 : 8);
|
|
return;
|
|
}
|
|
IAlog.a("end card is visible and requested to show last frame image with value of %s", Boolean.valueOf(z));
|
|
ImageView imageView = this.l;
|
|
if (this.p == com.fyber.inneractive.sdk.model.vast.h.FMP_End_Card && z) {
|
|
r1 = 0;
|
|
}
|
|
imageView.setVisibility(r1);
|
|
}
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.player.ui.s
|
|
public final void g() {
|
|
TextView textView = this.b0;
|
|
if (textView != null) {
|
|
textView.setEnabled(true);
|
|
}
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.player.ui.s
|
|
public final void h(boolean z) {
|
|
TextView textView = this.b0;
|
|
if (textView != null) {
|
|
textView.setVisibility(z ? 0 : 4);
|
|
}
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.player.ui.s
|
|
public final boolean j() {
|
|
TextView textView = this.b0;
|
|
return textView != null && textView.getVisibility() == 0 && this.b0.isEnabled();
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.player.ui.s
|
|
public void setRemainingTime(String str) {
|
|
TextView textView = this.a0;
|
|
if (textView != null) {
|
|
textView.setText(str);
|
|
}
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.player.ui.s
|
|
public void setSkipText(String str) {
|
|
if (this.b0 != null) {
|
|
int i = R.string.ia_video_before_skip_format;
|
|
this.b0.setText(String.format(Locale.US, IAConfigManager.L.u.a().getString(i), Integer.valueOf(Integer.parseInt(str))));
|
|
}
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.player.ui.s
|
|
public final void g(boolean z) {
|
|
IAsmoothProgressBar iAsmoothProgressBar = this.T;
|
|
if (iAsmoothProgressBar != null) {
|
|
iAsmoothProgressBar.setVisibility(z ? 0 : 4);
|
|
}
|
|
}
|
|
}
|