整点视频 v3.3.0版本的 MD5 值为:cba0457dc37421eed445b30f92de25d3
以下内容为反编译后的 o00oO0o.java 源代码,内容仅作参考
package com.ys.resemble.widgets.dialog;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.os.Build;
import android.os.Handler;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.PopupWindow;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.bytedance.sdk.openadsdk.api.plugin.PluginConstants;
import com.moqi.sdk.manager.MQRewardProperty;
import com.moqi.sdk.manager.MQRewardVideoLoader;
import com.wholepoint.wpfilms.R;
import com.ys.resemble.app.AppApplication;
import com.ys.resemble.data.local.AdNumShowDao;
import com.ys.resemble.data.local.VideoDownloadDao;
import com.ys.resemble.entity.AdInfoDetailEntry;
import com.ys.resemble.entity.DownloadInfoEntry;
import com.ys.resemble.entity.RecommandVideosEntity;
import com.ys.resemble.entity.VideoBean;
import com.ys.resemble.entity.table.VideoDownloadEntity;
import com.ys.resemble.ui.homecontent.videodetail.VideoPlayDetailViewModel;
import com.ys.resemble.ui.mine.DownloadActivity;
import com.ys.resemble.util.FlyAnimUtil;
import com.ys.resemble.util.OkHttp3Util;
import com.ys.resemble.util.adset.ADSetRewardCacheVideoAd;
import com.ys.resemble.util.o0000;
import com.ys.resemble.util.o00000;
import com.ys.resemble.util.o0Oo0oo;
import com.ys.resemble.widgets.dialog.VideoDownloadAdapter;
import io.reactivex.SingleObserver;
import io.reactivex.disposables.Disposable;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import me.goldze.mvvmhabit.base.BaseApplication;
import me.goldze.mvvmhabit.http.BaseResponse;
import me.goldze.mvvmhabit.http.NetworkUtil;
import okhttp3.Response;
public class o00oO0o extends PopupWindow {
private TextView OooO;
private Context OooO00o;
private VideoPlayDetailViewModel OooO0O0;
private List<VideoBean> OooO0OO;
private RecyclerView OooO0Oo;
private RelativeLayout OooO0o;
public VideoDownloadAdapter OooO0o0;
private RelativeLayout OooO0oO;
private TextView OooO0oo;
private TextView OooOO0;
public List<VideoDownloadEntity> OooOO0O;
private Dialog OooOO0o;
private TextView OooOOO;
private TextView OooOOO0;
private TextView OooOOOO;
private List<DownloadInfoEntry> OooOOOo;
private String OooOOo;
private int OooOOo0;
private String OooOOoo;
private boolean OooOo;
private String OooOo0;
public Handler OooOo00;
private OooOo00 OooOo0O;
private int OooOo0o;
public class OooO implements View.OnClickListener {
OooO() {
}
@Override
public void onClick(View view) {
o00oO0o.this.OooOO0o.dismiss();
}
}
public class OooO00o implements FlyAnimUtil.OnAfterAnimListener {
final VideoBean OooO00o;
final RecommandVideosEntity OooO0O0;
final int OooO0OO;
OooO00o(VideoBean videoBean, RecommandVideosEntity recommandVideosEntity, int i) {
this.OooO00o = videoBean;
this.OooO0O0 = recommandVideosEntity;
this.OooO0OO = i;
}
@Override
public void afterAnim() {
o00oO0o.this.OooO0O0.OooOO0(com.ys.resemble.util.OooOOO0.Oooo0o(this.OooO00o.getVod_url()), this.OooO0O0, this.OooO0OO, this.OooO00o);
}
}
class OooO0O0 implements VideoDownloadAdapter.onItemClickListener {
final Context OooO00o;
final List OooO0O0;
final Activity OooO0OO;
final RecommandVideosEntity OooO0Oo;
OooO0O0(Context context, List list, Activity activity, RecommandVideosEntity recommandVideosEntity) {
this.OooO00o = context;
this.OooO0O0 = list;
this.OooO0OO = activity;
this.OooO0Oo = recommandVideosEntity;
}
@Override
public void itemClick(int i, TextView textView) {
if (com.ys.resemble.util.OooOOO0.OooOo0()) {
return;
}
if (NetworkUtil.isNetworkAvailable(this.OooO00o)) {
o00oO0o.this.OooOo0o = i;
if (((VideoBean) this.OooO0O0.get(i)).isDownload()) {
if (o00oO0o.this.OooOo) {
me.goldze.mvvmhabit.utils.o000oOoO.OooO0OO("你已经下载完该视频");
return;
}
o00oO0o o00oo0o = o00oO0o.this;
o00oo0o.OooOOOO("http://127.0.0.1:" + AppApplication.OooO0OO + "/control?msg=download_info", this.OooO00o, i);
return;
} else if (!o0000.OooOo0o() && AppApplication.OooO0Oo.getAd_position_5() != null && AppApplication.OooO0Oo.getAd_position_5().size() > 0) {
if (o0000.OooOooo() <= 0) {
List<AdInfoDetailEntry> ad_position_5 = AppApplication.OooO0Oo.getAd_position_5();
int num = AdNumShowDao.getInstance().getNum(24);
int i2 = num >= ad_position_5.size() - 1 ? 0 : num + 1;
if (o0000.OooO0oO() == 1) {
o00oO0o.this.OooOo(ad_position_5, this.OooO00o, this.OooO0OO, this.OooO0Oo, i, textView, i2, false);
return;
} else {
o00oO0o.this.OooOo(ad_position_5, this.OooO00o, this.OooO0OO, this.OooO0Oo, i, textView, i2, true);
return;
}
}
o00oO0o.this.OooOOOo(this.OooO0Oo.getId(), ((VideoBean) this.OooO0O0.get(i)).getCollection(), ((VideoBean) this.OooO0O0.get(i)).getId(), i, textView, this.OooO0Oo);
return;
} else {
o00oO0o.this.OooOOOo(this.OooO0Oo.getId(), ((VideoBean) this.OooO0O0.get(i)).getCollection(), ((VideoBean) this.OooO0O0.get(i)).getId(), i, textView, this.OooO0Oo);
return;
}
}
me.goldze.mvvmhabit.utils.o000oOoO.OooO0OO("网络不可用,请检查网络");
}
}
class OooO0OO implements View.OnClickListener {
final VideoPlayDetailViewModel OooO00o;
OooO0OO(VideoPlayDetailViewModel videoPlayDetailViewModel) {
this.OooO00o = videoPlayDetailViewModel;
}
@Override
public void onClick(View view) {
o00oO0o.this.dismiss();
this.OooO00o.startActivity(DownloadActivity.class);
}
}
class OooO0o implements View.OnClickListener {
OooO0o() {
}
@Override
public void onClick(View view) {
o00oO0o.this.dismiss();
}
}
public class OooOO0 implements View.OnClickListener {
OooOO0() {
}
@Override
public void onClick(View view) {
o00oO0o o00oo0o = o00oO0o.this;
o00oo0o.OooO0o0.OooO0o0(o00oo0o.OooO0OO, o00oO0o.this.OooOo0o);
o00oO0o.this.OooOO0o.dismiss();
if (me.goldze.mvvmhabit.utils.Oooo000.OooO00o(o00oO0o.this.OooOOo)) {
return;
}
o00oO0o o00oo0o2 = o00oO0o.this;
o00oo0o2.OooOOo0(o00oo0o2.OooOOo);
}
}
public class OooOO0O implements OkHttp3Util.OkHttpCallBack {
OooOO0O() {
}
@Override
public void onFailure(IOException iOException) {
Log.i("wangyi", "get失败:" + iOException.toString());
}
@Override
public void onSuccess(Response response) {
try {
o00oO0o.this.OooOo0 = response.body().string();
o00oO0o o00oo0o = o00oO0o.this;
Handler handler = o00oo0o.OooOo00;
if (handler != null) {
handler.removeCallbacks(o00oo0o.OooOo0O);
o00oO0o o00oo0o2 = o00oO0o.this;
o00oo0o2.OooOo00.postDelayed(o00oo0o2.OooOo0O, 500L);
}
} catch (IOException e) {
e.printStackTrace();
}
}
}
public class OooOOO implements SingleObserver<BaseResponse<String>> {
final int OooO00o;
final int OooO0O0;
final int OooO0OO;
final TextView OooO0Oo;
final RecommandVideosEntity OooO0o0;
OooOOO(int i, int i2, int i3, TextView textView, RecommandVideosEntity recommandVideosEntity) {
this.OooO00o = i;
this.OooO0O0 = i2;
this.OooO0OO = i3;
this.OooO0Oo = textView;
this.OooO0o0 = recommandVideosEntity;
}
@Override
public void onSuccess(BaseResponse<String> baseResponse) {
if (baseResponse.isOk()) {
o00oO0o.this.OooOOoo(this.OooO00o, this.OooO0O0, this.OooO0OO, this.OooO0Oo, this.OooO0o0);
} else {
me.goldze.mvvmhabit.utils.o000oOoO.OooO0OO(baseResponse.getMessage());
}
}
@Override
public void onError(Throwable th) {
me.goldze.mvvmhabit.utils.o000oOoO.OooO0OO("下载失败,请重新下载");
}
@Override
public void onSubscribe(Disposable disposable) {
}
}
public class OooOOO0 implements OkHttp3Util.OkHttpCallBack {
final String OooO00o;
OooOOO0(o00oO0o o00oo0o, String str) {
this.OooO00o = str;
}
@Override
public void onFailure(IOException iOException) {
Log.i("wangyi", "get失败:" + iOException.toString());
}
@Override
public void onSuccess(Response response) {
VideoDownloadDao.getInstance().deleteHistory(this.OooO00o);
}
}
public class OooOOOO implements SingleObserver<BaseResponse<VideoBean>> {
final int OooO00o;
final TextView OooO0O0;
final RecommandVideosEntity OooO0OO;
OooOOOO(int i, TextView textView, RecommandVideosEntity recommandVideosEntity) {
this.OooO00o = i;
this.OooO0O0 = textView;
this.OooO0OO = recommandVideosEntity;
}
@Override
public void onSuccess(BaseResponse<VideoBean> baseResponse) {
if (baseResponse.isOk() && baseResponse.getResult() != null) {
o00oO0o.this.OooOOO(this.OooO00o, this.OooO0O0, this.OooO0OO, baseResponse.getResult());
} else {
me.goldze.mvvmhabit.utils.o000oOoO.OooO0OO(baseResponse.getMessage());
}
}
@Override
public void onError(Throwable th) {
me.goldze.mvvmhabit.utils.o000oOoO.OooO0OO("下载失败,请重新下载");
}
@Override
public void onSubscribe(Disposable disposable) {
}
}
class OooOo00 implements Runnable {
class OooO00o extends com.od.OooOOOO.OooO00o<List<DownloadInfoEntry>> {
OooO00o(OooOo00 oooOo00) {
}
}
OooOo00() {
}
@Override
public void run() {
if (com.ys.resemble.util.Oooo0.OooO0Oo(o00oO0o.this.OooOo0, DownloadInfoEntry.class)) {
o00oO0o o00oo0o = o00oO0o.this;
o00oo0o.OooOOOo = (List) com.ys.resemble.util.Oooo0.OooO0OO(o00oo0o.OooOo0, new OooO00o(this).getType());
if (o00oO0o.this.OooOOOo.size() > 0) {
o00oO0o o00oo0o2 = o00oO0o.this;
o00oo0o2.OooOo00(o00oo0o2.OooO00o, o00oO0o.this.OooOOOo);
}
}
}
}
public o00oO0o(Activity activity, Context context, List<VideoBean> list, RecommandVideosEntity recommandVideosEntity, VideoPlayDetailViewModel videoPlayDetailViewModel) {
super(context);
this.OooOO0O = new ArrayList();
this.OooOOOo = new ArrayList();
this.OooOOo = "";
this.OooOOoo = "";
this.OooOo00 = new Handler();
this.OooOo = false;
this.OooO00o = context;
this.OooO0O0 = videoPlayDetailViewModel;
this.OooO0OO = list;
this.OooOOo0 = recommandVideosEntity.getId();
this.OooOo0O = new OooOo00();
ArrayList<VideoDownloadEntity> queryHistory = VideoDownloadDao.getInstance().queryHistory();
this.OooOO0O = queryHistory;
if (queryHistory.size() > 0) {
for (int i = 0; i < this.OooOO0O.size(); i++) {
if (this.OooOO0O.get(i).getId() == recommandVideosEntity.getId()) {
for (int i2 = 0; i2 < list.size(); i2++) {
if (list.get(i2).getId() == this.OooOO0O.get(i).getCollection_id()) {
list.get(i2).setDownload(true);
if (this.OooOO0O.get(i).getComplete() == 1) {
this.OooOo = true;
list.get(i2).setCompleteDownload(true);
}
} else {
list.get(i2).setDownload(false);
}
}
}
}
} else {
for (int i3 = 0; i3 < list.size(); i3++) {
if (list.get(i3).isDownload()) {
list.get(i3).setDownload(false);
}
}
}
View inflate = LayoutInflater.from(context).inflate(R.layout.pop_layout_video_detail_video_download, (ViewGroup) null);
this.OooO0o = (RelativeLayout) inflate.findViewById(R.id.rl_view);
this.OooO0Oo = (RecyclerView) inflate.findViewById(R.id.rv_list);
this.OooO0oo = (TextView) inflate.findViewById(R.id.tv_already_used);
this.OooO = (TextView) inflate.findViewById(R.id.tv_available);
this.OooOO0 = (TextView) inflate.findViewById(R.id.tv_open_download);
this.OooO0oO = (RelativeLayout) inflate.findViewById(R.id.rl_open_cache);
this.OooO0Oo.setLayoutManager(new LinearLayoutManager(context));
TextView textView = this.OooO0oo;
textView.setText("已用" + o00000.OooO0O0(context) + ",");
TextView textView2 = this.OooO;
textView2.setText("可用" + o00000.OooO0OO(context));
VideoDownloadAdapter videoDownloadAdapter = new VideoDownloadAdapter(context, list, recommandVideosEntity.getVod_name());
this.OooO0o0 = videoDownloadAdapter;
this.OooO0Oo.setAdapter(videoDownloadAdapter);
this.OooO0o0.OooO0Oo(new OooO0O0(context, list, activity, recommandVideosEntity));
this.OooO0oO.setOnClickListener(new OooO0OO(videoPlayDetailViewModel));
inflate.findViewById(R.id.rl_top).setOnClickListener(new OooO0o());
setContentView(inflate);
setWidth(-1);
setHeight(-1);
setTouchable(true);
setOutsideTouchable(true);
setFocusable(true);
setAnimationStyle(R.style.pop_shop_anim);
setBackgroundDrawable(context.getResources().getDrawable(R.color.popupwindow_background));
}
public void OooOOO(int i, TextView textView, RecommandVideosEntity recommandVideosEntity, VideoBean videoBean) {
if (o0000.OooOooo() > 0) {
o0000.oo0o0Oo(o0000.OooOooo() - 1);
}
if (!NetworkUtil.isWifi(this.OooO00o) && NetworkUtil.isNetworkAvailable(this.OooO00o)) {
me.goldze.mvvmhabit.utils.o000oOoO.OooO0OO("正在用流量下载");
}
this.OooO0o0.OooO0o(this.OooO0OO, i);
FlyAnimUtil flyAnimUtil = new FlyAnimUtil(this.OooO00o, this.OooO0o);
flyAnimUtil.OooO0o(textView);
flyAnimUtil.OooO0oO(this.OooOO0);
flyAnimUtil.OooO0o0(R.drawable.ic_video_download_icon);
flyAnimUtil.OooO0Oo(new OooO00o(videoBean, recommandVideosEntity, i));
}
public void OooOOOO(String str, Context context, int i) {
Log.i("wangyi", "下载链接为:" + str);
OkHttp3Util.OooO00o(str, new OooOO0O());
}
public void OooOOOo(int i, int i2, int i3, int i4, TextView textView, RecommandVideosEntity recommandVideosEntity) {
HashMap hashMap = new HashMap();
hashMap.put("vod_id", Integer.valueOf(i));
hashMap.put(VideoDownloadEntity.COLLECTION_ID, Integer.valueOf(i2));
com.ys.resemble.app.OooO0O0.OooO00o().getDownloadStatisInfo(hashMap).compose(com.ys.resemble.widgets.dialog.OooO0O0.OooO00o).compose(com.ys.resemble.widgets.dialog.OooO00o.OooO00o).subscribe(new OooOOO(i, i3, i4, textView, recommandVideosEntity));
}
public void OooOOo(String str, String str2, int i, int i2, int i3, TextView textView, RecommandVideosEntity recommandVideosEntity) {
HashMap hashMap = new HashMap();
hashMap.put(VideoDownloadEntity.VOD_TOKEN, str);
hashMap.put(VideoDownloadEntity.CUR_TIME, str2);
hashMap.put("vod_id", Integer.valueOf(i));
hashMap.put(VideoDownloadEntity.COLLECTION_ID, Integer.valueOf(i2));
hashMap.put("session_id", "");
hashMap.put("sig", "");
hashMap.put("nc_token", "");
hashMap.put("phone", "");
hashMap.put(PluginConstants.KEY_ERROR_CODE, "");
com.ys.resemble.app.OooO0O0.OooO00o().getHomeVideoCollection(hashMap).compose(com.ys.resemble.widgets.dialog.OooO0O0.OooO00o).compose(com.ys.resemble.widgets.dialog.OooO00o.OooO00o).subscribe(new OooOOOO(i3, textView, recommandVideosEntity));
}
public void OooOOo0(String str) {
OkHttp3Util.OooO00o("http://127.0.0.1:" + AppApplication.OooO0OO + "/download_control?resource=" + str + "&type=5", new OooOOO0(this, str));
}
public void OooOOoo(int i, int i2, int i3, TextView textView, RecommandVideosEntity recommandVideosEntity) {
OooOOo(this.OooO0OO.get(i3).getVod_token(), this.OooO0OO.get(i3).getCur_time(), i, i2, i3, textView, recommandVideosEntity);
}
public void OooOo(List<AdInfoDetailEntry> list, Context context, Activity activity, RecommandVideosEntity recommandVideosEntity, int i, TextView textView, int i2, boolean z) {
AdInfoDetailEntry adInfoDetailEntry = list.get(i2);
if (adInfoDetailEntry.getAd_source_id() == 1) {
if (adInfoDetailEntry.getNum() > 0) {
if (adInfoDetailEntry.getNum() > AdNumShowDao.getInstance().getNum(9)) {
OooOoO0(context, activity, adInfoDetailEntry, i2, recommandVideosEntity, i, textView, z);
return;
}
int i3 = i2 + 1;
OooOo(list, context, activity, recommandVideosEntity, i, textView, i3 == list.size() ? 0 : i3, z);
return;
}
OooOoO0(context, activity, adInfoDetailEntry, i2, recommandVideosEntity, i, textView, z);
} else if (adInfoDetailEntry.getAd_source_id() == 2) {
if (adInfoDetailEntry.getNum() > 0) {
if (adInfoDetailEntry.getNum() > AdNumShowDao.getInstance().getNum(10)) {
OooOo0O(context, activity, adInfoDetailEntry, i2, recommandVideosEntity, i, textView, z);
return;
}
int i4 = i2 + 1;
OooOo(list, context, activity, recommandVideosEntity, i, textView, i4 == list.size() ? 0 : i4, z);
return;
}
OooOo0O(context, activity, adInfoDetailEntry, i2, recommandVideosEntity, i, textView, z);
} else if (adInfoDetailEntry.getAd_source_id() == 4) {
if (adInfoDetailEntry.getNum() > 0) {
if (adInfoDetailEntry.getNum() > AdNumShowDao.getInstance().getNum(30)) {
OooOo0o(context, activity, adInfoDetailEntry, i2, recommandVideosEntity, i, textView, z);
return;
}
int i5 = i2 + 1;
OooOo(list, context, activity, recommandVideosEntity, i, textView, i5 == list.size() ? 0 : i5, z);
return;
}
OooOo0o(context, activity, adInfoDetailEntry, i2, recommandVideosEntity, i, textView, z);
} else if (adInfoDetailEntry.getAd_source_id() == 5) {
if (adInfoDetailEntry.getNum() > 0) {
if (adInfoDetailEntry.getNum() > AdNumShowDao.getInstance().getNum(103)) {
OooOo0(context, activity, adInfoDetailEntry, i2, recommandVideosEntity, i, textView, z);
return;
}
int i6 = i2 + 1;
OooOo(list, context, activity, recommandVideosEntity, i, textView, i6 == list.size() ? 0 : i6, z);
return;
}
OooOo0(context, activity, adInfoDetailEntry, i2, recommandVideosEntity, i, textView, z);
}
}
public void OooOo0(Context context, Activity activity, AdInfoDetailEntry adInfoDetailEntry, int i, RecommandVideosEntity recommandVideosEntity, int i2, TextView textView, boolean z) {
if ((z && adInfoDetailEntry.getNew_user_has_ad() == 0) || o0000.OooOoo0() != 1) {
OooOOOo(recommandVideosEntity.getId(), this.OooO0OO.get(i2).getCollection(), this.OooO0OO.get(i2).getId(), i2, textView, recommandVideosEntity);
return;
}
dismiss();
AdNumShowDao.getInstance().updateDownloadIndex(i);
ADSetRewardCacheVideoAd aDSetRewardCacheVideoAd = new ADSetRewardCacheVideoAd(activity, adInfoDetailEntry.getSdk_ad_id());
o0Oo0oo.OooO0Oo(aDSetRewardCacheVideoAd, this.OooO0o, adInfoDetailEntry, new ShowAdDownloadPop(context, null, null, null, aDSetRewardCacheVideoAd), activity, recommandVideosEntity.getId(), this.OooO0OO.get(i2).getCollection());
}
public void OooOo00(Context context, List<DownloadInfoEntry> list) {
if (me.goldze.mvvmhabit.utils.Oooo000.OooO00o(this.OooOOo)) {
ArrayList<VideoDownloadEntity> queryHistory = VideoDownloadDao.getInstance().queryHistory();
this.OooOO0O = queryHistory;
if (queryHistory.size() > 0) {
for (int i = 0; i < this.OooOO0O.size(); i++) {
if (this.OooOOo0 == this.OooOO0O.get(i).getId()) {
this.OooOOo = this.OooOO0O.get(i).getStreamid();
}
}
}
}
for (int i2 = 0; i2 < list.size(); i2++) {
if (this.OooOOo.equals(list.get(i2).getResource())) {
this.OooOOoo = list.get(i2).getDownload_percent() + "";
}
}
if (this.OooOO0o == null) {
View inflate = LayoutInflater.from(context).inflate(R.layout.pop_layout_download_info_movies, (ViewGroup) null);
this.OooOOO0 = (TextView) inflate.findViewById(R.id.tv_message);
this.OooOOO = (TextView) inflate.findViewById(R.id.tv_cancel);
this.OooOOOO = (TextView) inflate.findViewById(R.id.tv_sure);
Dialog OooO00o2 = SimpleDialog.OooO00o(context, inflate, true);
this.OooOO0o = OooO00o2;
OooO00o2.setCanceledOnTouchOutside(false);
}
if (me.goldze.mvvmhabit.utils.Oooo000.OooO00o(this.OooOOoo)) {
this.OooOOO0.setText("该视频已下载0%,是否取消下载?");
} else {
TextView textView = this.OooOOO0;
textView.setText("该视频已下载" + this.OooOOoo + "%,是否取消下载?");
}
this.OooOOO.setOnClickListener(new OooO());
this.OooOOOO.setOnClickListener(new OooOO0());
this.OooOO0o.show();
}
public void OooOo0O(Context context, Activity activity, AdInfoDetailEntry adInfoDetailEntry, int i, RecommandVideosEntity recommandVideosEntity, int i2, TextView textView, boolean z) {
if (z && adInfoDetailEntry.getNew_user_has_ad() == 0) {
OooOOOo(recommandVideosEntity.getId(), this.OooO0OO.get(i2).getCollection(), this.OooO0OO.get(i2).getId(), i2, textView, recommandVideosEntity);
return;
}
dismiss();
AdNumShowDao.getInstance().updateDownloadIndex(i);
com.ys.resemble.util.adgdt.OooO00o oooO00o = new com.ys.resemble.util.adgdt.OooO00o(context, adInfoDetailEntry.getSdk_ad_id());
o0Oo0oo.OooO0OO(oooO00o, this.OooO0o, adInfoDetailEntry, new ShowAdDownloadPop(context, null, oooO00o, null, null), context, recommandVideosEntity.getId(), this.OooO0OO.get(i2).getCollection());
}
public void OooOo0o(Context context, Activity activity, AdInfoDetailEntry adInfoDetailEntry, int i, RecommandVideosEntity recommandVideosEntity, int i2, TextView textView, boolean z) {
if (z && adInfoDetailEntry.getNew_user_has_ad() == 0) {
OooOOOo(recommandVideosEntity.getId(), this.OooO0OO.get(i2).getCollection(), this.OooO0OO.get(i2).getId(), i2, textView, recommandVideosEntity);
return;
}
dismiss();
AdNumShowDao.getInstance().updateDownloadIndex(i);
MQRewardProperty mQRewardProperty = new MQRewardProperty();
mQRewardProperty.setUserID(com.ys.resemble.util.OooOOO0.OooOO0o(BaseApplication.OooO00o()));
MQRewardVideoLoader mQRewardVideoLoader = new MQRewardVideoLoader(activity, adInfoDetailEntry.getSdk_ad_id(), mQRewardProperty);
o0Oo0oo.OooO0O0(activity, this.OooO0o, adInfoDetailEntry, new ShowAdDownloadPop(context, null, null, mQRewardVideoLoader, null), mQRewardVideoLoader, recommandVideosEntity.getId(), this.OooO0OO.get(i2).getCollection());
}
public void OooOoO0(Context context, Activity activity, AdInfoDetailEntry adInfoDetailEntry, int i, RecommandVideosEntity recommandVideosEntity, int i2, TextView textView, boolean z) {
if (z && adInfoDetailEntry.getNew_user_has_ad() == 0) {
OooOOOo(recommandVideosEntity.getId(), this.OooO0OO.get(i2).getCollection(), this.OooO0OO.get(i2).getId(), i2, textView, recommandVideosEntity);
return;
}
dismiss();
AdNumShowDao.getInstance().updateDownloadIndex(i);
com.ys.resemble.util.adcsj.OooO0O0 oooO0O0 = new com.ys.resemble.util.adcsj.OooO0O0(activity, adInfoDetailEntry.getSdk_ad_id());
o0Oo0oo.OooO00o(oooO0O0, this.OooO0o, adInfoDetailEntry, new ShowAdDownloadPop(context, oooO0O0, null, null, null), activity, recommandVideosEntity.getId(), this.OooO0OO.get(i2).getCollection());
}
@Override
public void showAsDropDown(View view) {
if (Build.VERSION.SDK_INT >= 24) {
int OooOO02 = com.ys.resemble.util.OooOOO0.OooOO0((Activity) getContentView().getContext());
int[] iArr = new int[2];
view.getLocationOnScreen(iArr);
setHeight((OooOO02 - iArr[1]) - view.getHeight());
}
super.showAsDropDown(view);
}
}