正在查看: 饼干视频 v4.1.0 应用的 GlanceInfoVideoDownloadPop.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 饼干视频 v4.1.0 应用的 GlanceInfoVideoDownloadPop.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.aamon.symmetry.widget.dialogs.glance;
import amc.cd.p008.C0079;
import amc.cd.p025.C0296;
import amc.cd.p038.C0345;
import amc.cd.p101.C0887;
import amc.cd.p101.C0893;
import amc.cd.p101.C0914;
import amc.cd.p101.C0920;
import amc.cd.p101.C0921;
import amc.cd.p106.C0936;
import amc.cd.p137.C1429;
import amc.cd.p148.C1508;
import amc.cd.p148.C1512;
import amc.cd.p150.C1521;
import amc.cd.इऐइइऊ.ऊओइओआएआआए;
import amc.cd.उइआए.औउऐऌ;
import amc.cd.ऋईऋइऔएऐऊ.ईअअआऔऌएऌई;
import amc.cd.ऌऐऊओऌऔऊ.ओऔईऔइएअओऐओ;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
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.appcompat.widget.ActivityChooserModel;
import androidx.lifecycle.viewmodel.GlanceInfoViewModel;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import androidx.view.CacheActivity;
import com.aamon.symmetry.R$color;
import com.aamon.symmetry.R$drawable;
import com.aamon.symmetry.R$id;
import com.aamon.symmetry.R$layout;
import com.aamon.symmetry.R$style;
import com.aamon.symmetry.origin.data.database.local.table.AdNumShowEntry;
import com.aamon.symmetry.origin.data.database.local.table.VideoDownloadEntity;
import com.aamon.symmetry.origin.data.entry.ad.AdInfoDetailEntry;
import com.aamon.symmetry.origin.data.entry.cache.DownloadInfoEntry;
import com.aamon.symmetry.origin.data.entry.videodetail.VideoDetailBean;
import com.aamon.symmetry.origin.data.entry.videodetail.VideoDetailEntity;
import com.aamon.symmetry.origin.data.netData.RetrofitUtil;
import com.aamon.symmetry.origin.init.MyApplication;
import com.aamon.symmetry.widget.dialogs.glance.GlanceInfoVideoDownloadPop;
import com.aamon.symmetry.widget.dialogs.glance.adapter.GlanceInfoDownloadAdapter;
import com.alimm.tanx.core.ad.event.track.expose.ExposeManager;
import com.bottom.base.common.BaseFootViewModel;
import com.bottom.base.commonhttp.BaseInitResponse;
import com.moqi.sdk.manager.MQRewardProperty;
import com.moqi.sdk.manager.MQRewardVideoLoader;
import io.reactivex.Single;
import io.reactivex.SingleObserver;
import io.reactivex.SingleSource;
import io.reactivex.SingleTransformer;
import io.reactivex.disposables.Disposable;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import kotlin.Metadata;
import okhttp3.Response;
import okhttp3.ResponseBody;
@Metadata(d1 = {"\u0000\u009e\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\f\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\f\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0011\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\n\u0018\u00002\u00020\u0001:\u00011B7\u0012\b\u0010y\u001a\u0004\u0018\u00010\u000b\u0012\u0006\u0010/\u001a\u00020\t\u0012\f\u00106\u001a\b\u0012\u0004\u0012\u00020*0\u0006\u0012\u0006\u0010\u0017\u001a\u00020\r\u0012\u0006\u00103\u001a\u000200¢\u0006\u0004\bz\u0010{J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016JR\u0010\u0016\u001a\u00020\u00042\f\u0010\b\u001a\b\u0012\u0004\u0012\u00020\u00070\u00062\b\u0010\n\u001a\u0004\u0018\u00010\t2\b\u0010\f\u001a\u0004\u0018\u00010\u000b2\u0006\u0010\u000e\u001a\u00020\r2\u0006\u0010\u0010\u001a\u00020\u000f2\b\u0010\u0012\u001a\u0004\u0018\u00010\u00112\u0006\u0010\u0013\u001a\u00020\u000f2\u0006\u0010\u0015\u001a\u00020\u0014JL\u0010\u0018\u001a\u00020\u00042\b\u0010\n\u001a\u0004\u0018\u00010\t2\b\u0010\f\u001a\u0004\u0018\u00010\u000b2\u0006\u0010\u0017\u001a\u00020\u00072\u0006\u0010\u0013\u001a\u00020\u000f2\u0006\u0010\u000e\u001a\u00020\r2\u0006\u0010\u0010\u001a\u00020\u000f2\b\u0010\u0012\u001a\u0004\u0018\u00010\u00112\u0006\u0010\u0015\u001a\u00020\u0014JL\u0010\u0019\u001a\u00020\u00042\b\u0010\n\u001a\u0004\u0018\u00010\t2\b\u0010\f\u001a\u0004\u0018\u00010\u000b2\u0006\u0010\u0017\u001a\u00020\u00072\u0006\u0010\u0013\u001a\u00020\u000f2\u0006\u0010\u000e\u001a\u00020\r2\u0006\u0010\u0010\u001a\u00020\u000f2\b\u0010\u0012\u001a\u0004\u0018\u00010\u00112\u0006\u0010\u0015\u001a\u00020\u0014J\u001e\u0010\u001c\u001a\u00020\u00042\b\u0010\n\u001a\u0004\u0018\u00010\t2\f\u0010\u001b\u001a\b\u0012\u0004\u0012\u00020\u001a0\u0006J \u0010\u001f\u001a\u00020\u00042\u0006\u0010\u001e\u001a\u00020\u001d2\b\u0010\n\u001a\u0004\u0018\u00010\t2\u0006\u0010\u0010\u001a\u00020\u000fJ\u000e\u0010!\u001a\u00020\u00042\u0006\u0010 \u001a\u00020\u001dJ8\u0010%\u001a\u00020\u00042\u0006\u0010\"\u001a\u00020\u000f2\u0006\u0010#\u001a\u00020\u000f2\u0006\u0010$\u001a\u00020\u000f2\u0006\u0010\u0010\u001a\u00020\u000f2\b\u0010\u0012\u001a\u0004\u0018\u00010\u00112\u0006\u0010\u0017\u001a\u00020\rJ0\u0010&\u001a\u00020\u00042\u0006\u0010\"\u001a\u00020\u000f2\u0006\u0010$\u001a\u00020\u000f2\u0006\u0010\u0010\u001a\u00020\u000f2\b\u0010\u0012\u001a\u0004\u0018\u00010\u00112\u0006\u0010\u0017\u001a\u00020\rJ@\u0010)\u001a\u00020\u00042\u0006\u0010'\u001a\u00020\u001d2\u0006\u0010(\u001a\u00020\u001d2\u0006\u0010\"\u001a\u00020\u000f2\u0006\u0010$\u001a\u00020\u000f2\u0006\u0010\u0010\u001a\u00020\u000f2\b\u0010\u0012\u001a\u0004\u0018\u00010\u00112\u0006\u0010\u0017\u001a\u00020\rJ(\u0010,\u001a\u00020\u00042\u0006\u0010\u0010\u001a\u00020\u000f2\b\u0010\u0012\u001a\u0004\u0018\u00010\u00112\u0006\u0010\u0017\u001a\u00020\r2\u0006\u0010+\u001a\u00020*R\u0014\u0010/\u001a\u00020\t8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b-\u0010.R\u0014\u00103\u001a\u0002008\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b1\u00102R\u001a\u00106\u001a\b\u0012\u0004\u0012\u00020*0\u00068\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b4\u00105R\u0014\u0010:\u001a\u0002078\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b8\u00109R\"\u0010B\u001a\u00020;8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b<\u0010=\u001a\u0004\b>\u0010?\"\u0004\b@\u0010AR\u0014\u0010F\u001a\u00020C8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bD\u0010ER\u0014\u0010H\u001a\u00020C8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bG\u0010ER\u0014\u0010K\u001a\u00020\u00118\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bI\u0010JR\u0014\u0010M\u001a\u00020\u00118\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bL\u0010JR\u0014\u0010O\u001a\u00020\u00118\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bN\u0010JR(\u0010V\u001a\b\u0012\u0004\u0012\u00020P0\u00068\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\bQ\u00105\u001a\u0004\bR\u0010S\"\u0004\bT\u0010UR\u0018\u0010Z\u001a\u0004\u0018\u00010W8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bX\u0010YR\u0018\u0010\\\u001a\u0004\u0018\u00010\u00118\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b[\u0010JR\u0018\u0010^\u001a\u0004\u0018\u00010\u00118\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b]\u0010JR\u0018\u0010`\u001a\u0004\u0018\u00010\u00118\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b_\u0010JR\u001c\u0010\u001b\u001a\b\u0012\u0004\u0012\u00020\u001a0\u00068\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\ba\u00105R\u0014\u0010d\u001a\u00020\u000f8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bb\u0010cR\u0016\u0010 \u001a\u00020\u001d8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\be\u0010fR\u0016\u0010h\u001a\u00020\u001d8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bg\u0010fR$\u0010o\u001a\u0004\u0018\u00010i8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b,\u0010j\u001a\u0004\bk\u0010l\"\u0004\bm\u0010nR\u0018\u0010q\u001a\u0004\u0018\u00010\u001d8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bp\u0010fR\u0018\u0010t\u001a\u00060rR\u00020\u00008\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u001f\u0010sR\u0016\u0010u\u001a\u00020\u000f8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b%\u0010cR\u0016\u0010x\u001a\u00020\u00148\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bv\u0010w¨\u0006|"}, d2 = {"Lcom/aamon/symmetry/widget/dialogs/glance/GlanceInfoVideoDownloadPop;", "Landroid/widget/PopupWindow;", "Landroid/view/View;", "anchor", "Lamc/cd/औउईऐऔएओओ/एऋऔऔइआ;", "showAsDropDown", "", "Lcom/aamon/symmetry/origin/data/entry/ad/AdInfoDetailEntry;", "adInfoDetailEntryList", "Landroid/content/Context;", "context", "Landroid/app/Activity;", ActivityChooserModel.ATTRIBUTE_ACTIVITY, "Lcom/aamon/symmetry/origin/data/entry/videodetail/VideoDetailEntity;", "entry1", "", "position", "Landroid/widget/TextView;", "textView", AdNumShowEntry.DOWNLOADINDEX, "", "newUser", "उअअएइअऋअए", "entry", "उअऊओऌइऊईऊ", "ऊऋऔऌअउअऌ", "Lcom/aamon/symmetry/origin/data/entry/cache/DownloadInfoEntry;", "downloadInfos", "ऊऊएऐऐआऊ", "", "url", "ओओउऋ", VideoDownloadEntity.STREAMID, "ऌउऔअई", "vod_id", VideoDownloadEntity.COLLECTION_ID, "upCollectionId", "ऐउएऔऐआ", "एऊऋऐईइऊऋएऔ", VideoDownloadEntity.VOD_TOKEN, "curTime", "ऐअएईअऌऔओ", "Lcom/aamon/symmetry/origin/data/entry/videodetail/VideoDetailBean;", "verifyEntry", "ऐऐऔअई", "ईऌओओआऊउउईउ", "Landroid/content/Context;", "mContext", "Landroidx/lifecycle/viewmodel/GlanceInfoViewModel;", "ऐऊऐएओऔऔऋऐऐ", "Landroidx/lifecycle/viewmodel/GlanceInfoViewModel;", "viewModel", "औउऐऌ", "Ljava/util/List;", "videoBeanList", "Landroidx/recyclerview/widget/RecyclerView;", "इईऔओऋआऐइऐ", "Landroidx/recyclerview/widget/RecyclerView;", "rvList", "Lcom/aamon/symmetry/widget/dialogs/glance/adapter/GlanceInfoDownloadAdapter;", "ओइऌऊएएऐ", "Lcom/aamon/symmetry/widget/dialogs/glance/adapter/GlanceInfoDownloadAdapter;", "getAdapter", "()Lcom/aamon/symmetry/widget/dialogs/glance/adapter/GlanceInfoDownloadAdapter;", "setAdapter", "(Lcom/aamon/symmetry/widget/dialogs/glance/adapter/GlanceInfoDownloadAdapter;)V", "adapter", "Landroid/widget/RelativeLayout;", "ऌऔऌआउउऊआ", "Landroid/widget/RelativeLayout;", "rl_view", "ऊएअऊऔ", "rl_open_cache", "एअऐऌए", "Landroid/widget/TextView;", "tv_already_used", "अअआऊअआइआ", "tv_available", "ईअअआऔऌएऌई", "tv_open_download", "Lcom/aamon/symmetry/origin/data/database/local/table/VideoDownloadEntity;", "ओऌउऔ", "getDownloadEntityList", "()Ljava/util/List;", "setDownloadEntityList", "(Ljava/util/List;)V", "downloadEntityList", "Landroid/app/Dialog;", "ऊओइओआएआआए", "Landroid/app/Dialog;", "mDialogUpdate", "ओऌएऐऐऔओऋउउ", "tv_message", "ईअआऔईऌउऌऐ", "tv_cancel", "इऋऊऊ", "tv_sure", "औऌऌइई", "एऋऔऔइआ", "I", "id", "ओऔईऔइएअओऐओ", "Ljava/lang/String;", "औइईएई", "percent", "Landroid/os/Handler;", "Landroid/os/Handler;", "ऊऌऐअइईअ", "()Landroid/os/Handler;", "setMHandler", "(Landroid/os/Handler;)V", "mHandler", "ऊईआएओउऐ", "json", "Lcom/aamon/symmetry/widget/dialogs/glance/GlanceInfoVideoDownloadPop$ऐऊऐएओऔऔऋऐऐ;", "Lcom/aamon/symmetry/widget/dialogs/glance/GlanceInfoVideoDownloadPop$ऐऊऐएओऔऔऋऐऐ;", "resultTask", "pos", "उउऌऊ", "Z", "downloadComplete", "mActivity", "<init>", "(Landroid/app/Activity;Landroid/content/Context;Ljava/util/List;Lcom/aamon/symmetry/origin/data/entry/videodetail/VideoDetailEntity;Landroidx/lifecycle/viewmodel/GlanceInfoViewModel;)V", "app_cyBgsp_sp02Release"}, mv = {1, 7, 1})
public final class GlanceInfoVideoDownloadPop extends PopupWindow {
public final TextView tv_available;
public final RecyclerView rvList;
public TextView tv_sure;
public final TextView tv_open_download;
public TextView tv_cancel;
public final Context mContext;
public boolean downloadComplete;
public String json;
public final RelativeLayout rl_open_cache;
public Dialog mDialogUpdate;
public final RelativeLayout rl_view;
public final TextView tv_already_used;
public final int id;
public int pos;
public final GlanceInfoViewModel viewModel;
public Handler mHandler;
public GlanceInfoDownloadAdapter adapter;
public List<? extends VideoDownloadEntity> downloadEntityList;
public TextView tv_message;
public final RunnableC1921 resultTask;
public String streamid;
public String percent;
public final List<VideoDetailBean> videoBeanList;
public List<? extends DownloadInfoEntry> downloadInfos;
@Metadata(d1 = {"\u0000'\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0003\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\u0010\u0012\f\u0012\n\u0012\u0006\u0012\u0004\u0018\u00010\u00030\u00020\u0001J\u0010\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u0004H\u0016J\u0018\u0010\t\u001a\u00020\u00062\u000e\u0010\b\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00030\u0002H\u0016J\u0010\u0010\f\u001a\u00020\u00062\u0006\u0010\u000b\u001a\u00020\nH\u0016¨\u0006\r"}, d2 = {"com/aamon/symmetry/widget/dialogs/glance/GlanceInfoVideoDownloadPop$इईऔओऋआऐइऐ", "Lio/reactivex/SingleObserver;", "Lcom/bottom/base/commonhttp/BaseInitResponse;", "", "Lio/reactivex/disposables/Disposable;", "d", "Lamc/cd/औउईऐऔएओओ/एऋऔऔइआ;", "onSubscribe", "resp", "ईऌओओआऊउउईउ", "", "e", "onError", "app_cyBgsp_sp02Release"}, mv = {1, 7, 1})
public static final class C1918 implements SingleObserver<BaseInitResponse<String>> {
public final int f4149;
public final int f4150;
public final VideoDetailEntity f4152;
public final int f4153;
public final TextView f4154;
public C1918(int i, int i2, int i3, TextView textView, VideoDetailEntity videoDetailEntity) {
this.f4153 = i;
this.f4150 = i2;
this.f4149 = i3;
this.f4154 = textView;
this.f4152 = videoDetailEntity;
}
public void onError(Throwable th) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(th, "e");
औउऐऌ.औउऐऌ("下载失败,请重新下载");
}
public void onSubscribe(Disposable disposable) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(disposable, "d");
}
public void onSuccess(BaseInitResponse<String> baseInitResponse) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(baseInitResponse, "resp");
if (baseInitResponse.isOk()) {
GlanceInfoVideoDownloadPop.this.m3405(this.f4153, this.f4150, this.f4149, this.f4154, this.f4152);
} else {
औउऐऌ.औउऐऌ(baseInitResponse.getMessage());
}
}
}
@Metadata(d1 = {"\u0000\u001d\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u001a\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\b\u0010\u0005\u001a\u0004\u0018\u00010\u0004H\u0016¨\u0006\b"}, d2 = {"com/aamon/symmetry/widget/dialogs/glance/GlanceInfoVideoDownloadPop$ईऌओओआऊउउईउ", "Lcom/aamon/symmetry/widget/dialogs/glance/adapter/GlanceInfoDownloadAdapter$औउऐऌ;", "", "position", "Landroid/widget/TextView;", "textView", "Lamc/cd/औउईऐऔएओओ/एऋऔऔइआ;", "ईऌओओआऊउउईउ", "app_cyBgsp_sp02Release"}, mv = {1, 7, 1})
public static final class C1919 implements GlanceInfoDownloadAdapter.InterfaceC1927 {
public final VideoDetailEntity f4155;
public final List<VideoDetailBean> f4157;
public final Activity f4158;
public C1919(List<? extends VideoDetailBean> list, Activity activity, VideoDetailEntity videoDetailEntity) {
this.f4157 = list;
this.f4158 = activity;
this.f4155 = videoDetailEntity;
}
@Override
public void mo3411(int i, TextView textView) {
if (C0920.m980()) {
return;
}
if (!amc.cd.ऌऌउओएएऋऋऌए.ईऌओओआऊउउईउ.ईऌओओआऊउउईउ(GlanceInfoVideoDownloadPop.this.mContext)) {
औउऐऌ.औउऐऌ("网络不可用,请检查网络");
return;
}
GlanceInfoVideoDownloadPop.this.pos = i;
if (this.f4157.get(i).isDownload()) {
if (GlanceInfoVideoDownloadPop.this.downloadComplete) {
औउऐऌ.औउऐऌ("你已经下载完该视频");
return;
}
GlanceInfoVideoDownloadPop.this.m3409("http://127.0.0.1:" + MyApplication.f3650 + "/control?msg=download_info", GlanceInfoVideoDownloadPop.this.mContext, i);
return;
}
C0920.m973();
if (!C0914.m857() && !C0914.m870().booleanValue()) {
List<AdInfoDetailEntry> ad_position_5 = MyApplication.f3647.getAd_position_5();
if (!(ad_position_5 == null || ad_position_5.isEmpty())) {
if (C0914.m853() > 0) {
GlanceInfoVideoDownloadPop.this.m3407(this.f4155.getId(), this.f4157.get(i).getCollection(), this.f4157.get(i).getId(), i, textView, this.f4155);
return;
}
List<AdInfoDetailEntry> ad_position_52 = MyApplication.f3647.getAd_position_5();
ओऔईऔइएअओऐओ.औउऐऌ(ad_position_52);
int m1368 = C1508.m1340().m1368(24);
int i2 = m1368 >= ad_position_52.size() - 1 ? 0 : m1368 + 1;
if (C0914.m864() == 1) {
GlanceInfoVideoDownloadPop glanceInfoVideoDownloadPop = GlanceInfoVideoDownloadPop.this;
glanceInfoVideoDownloadPop.m3399(ad_position_52, glanceInfoVideoDownloadPop.mContext, this.f4158, this.f4155, i, textView, i2, false);
return;
} else {
GlanceInfoVideoDownloadPop glanceInfoVideoDownloadPop2 = GlanceInfoVideoDownloadPop.this;
glanceInfoVideoDownloadPop2.m3399(ad_position_52, glanceInfoVideoDownloadPop2.mContext, this.f4158, this.f4155, i, textView, i2, true);
return;
}
}
}
GlanceInfoVideoDownloadPop.this.m3407(this.f4155.getId(), this.f4157.get(i).getCollection(), this.f4157.get(i).getId(), i, textView, this.f4155);
}
}
@Metadata(d1 = {"\u0000'\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0003\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\u0010\u0012\f\u0012\n\u0012\u0006\u0012\u0004\u0018\u00010\u00030\u00020\u0001J\u0010\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u0004H\u0016J\u0018\u0010\t\u001a\u00020\u00062\u000e\u0010\b\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00030\u0002H\u0016J\u0010\u0010\f\u001a\u00020\u00062\u0006\u0010\u000b\u001a\u00020\nH\u0016¨\u0006\r"}, d2 = {"com/aamon/symmetry/widget/dialogs/glance/GlanceInfoVideoDownloadPop$ऌऔऌआउउऊआ", "Lio/reactivex/SingleObserver;", "Lcom/bottom/base/commonhttp/BaseInitResponse;", "Lcom/aamon/symmetry/origin/data/entry/videodetail/VideoDetailBean;", "Lio/reactivex/disposables/Disposable;", "d", "Lamc/cd/औउईऐऔएओओ/एऋऔऔइआ;", "onSubscribe", "resp", "ईऌओओआऊउउईउ", "", "e", "onError", "app_cyBgsp_sp02Release"}, mv = {1, 7, 1})
public static final class C1920 implements SingleObserver<BaseInitResponse<VideoDetailBean>> {
public final VideoDetailEntity f4159;
public final TextView f4160;
public final int f4162;
public C1920(int i, TextView textView, VideoDetailEntity videoDetailEntity) {
this.f4162 = i;
this.f4160 = textView;
this.f4159 = videoDetailEntity;
}
public void onError(Throwable th) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(th, "e");
औउऐऌ.औउऐऌ("下载失败,请重新下载");
}
public void onSubscribe(Disposable disposable) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(disposable, "d");
}
public void onSuccess(BaseInitResponse<VideoDetailBean> baseInitResponse) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(baseInitResponse, "resp");
if (!baseInitResponse.isOk() || baseInitResponse.getResult() == null) {
औउऐऌ.औउऐऌ(baseInitResponse.getMessage());
return;
}
GlanceInfoVideoDownloadPop glanceInfoVideoDownloadPop = GlanceInfoVideoDownloadPop.this;
int i = this.f4162;
TextView textView = this.f4160;
VideoDetailEntity videoDetailEntity = this.f4159;
Object result = baseInitResponse.getResult();
ओऔईऔइएअओऐओ.औउऐऌ(result);
glanceInfoVideoDownloadPop.m3408(i, textView, videoDetailEntity, (VideoDetailBean) result);
}
}
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0080\u0004\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0004\u0010\u0005J\b\u0010\u0003\u001a\u00020\u0002H\u0016¨\u0006\u0006"}, d2 = {"Lcom/aamon/symmetry/widget/dialogs/glance/GlanceInfoVideoDownloadPop$ऐऊऐएओऔऔऋऐऐ;", "Ljava/lang/Runnable;", "Lamc/cd/औउईऐऔएओओ/एऋऔऔइआ;", "run", "<init>", "(Lcom/aamon/symmetry/widget/dialogs/glance/GlanceInfoVideoDownloadPop;)V", "app_cyBgsp_sp02Release"}, mv = {1, 7, 1})
public final class RunnableC1921 implements Runnable {
@Metadata(d1 = {"\u0000\u0013\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\u0012\u0012\u000e\u0012\f\u0012\u0006\u0012\u0004\u0018\u00010\u0003\u0018\u00010\u00020\u0001¨\u0006\u0004"}, d2 = {"com/aamon/symmetry/widget/dialogs/glance/GlanceInfoVideoDownloadPop$ऐऊऐएओऔऔऋऐऐ$ईऌओओआऊउउईउ", "Lamc/cd/एओईआ/ईऌओओआऊउउईउ;", "", "Lcom/aamon/symmetry/origin/data/entry/cache/DownloadInfoEntry;", "app_cyBgsp_sp02Release"}, mv = {1, 7, 1})
public static final class C1922 extends amc.cd.एओईआ.ईऌओओआऊउउईउ<List<? extends DownloadInfoEntry>> {
}
public RunnableC1921() {
}
@Override
public void run() {
if (C0893.m769(GlanceInfoVideoDownloadPop.this.json, DownloadInfoEntry.class)) {
GlanceInfoVideoDownloadPop glanceInfoVideoDownloadPop = GlanceInfoVideoDownloadPop.this;
Object m776 = C0893.m776(glanceInfoVideoDownloadPop.json, new C1922().getType());
ओऔईऔइएअओऐओ.ओइऌऊएएऐ(m776, "fromJson(\n …{}.type\n )");
glanceInfoVideoDownloadPop.downloadInfos = (List) m776;
if (!GlanceInfoVideoDownloadPop.this.downloadInfos.isEmpty()) {
GlanceInfoVideoDownloadPop glanceInfoVideoDownloadPop2 = GlanceInfoVideoDownloadPop.this;
glanceInfoVideoDownloadPop2.m3401(glanceInfoVideoDownloadPop2.mContext, GlanceInfoVideoDownloadPop.this.downloadInfos);
}
}
}
}
@Metadata(d1 = {"\u0000\u001d\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\u0012\u0010\b\u001a\u00020\u00042\b\u0010\u0007\u001a\u0004\u0018\u00010\u0006H\u0016¨\u0006\t"}, d2 = {"com/aamon/symmetry/widget/dialogs/glance/GlanceInfoVideoDownloadPop$ओइऌऊएएऐ", "Lamc/cd/ऌऔआआऌ/ऐऊऐएओऔऔऋऐऐ$ऐऊऐएओऔऔऋऐऐ;", "Ljava/io/IOException;", "e", "Lamc/cd/औउईऐऔएओओ/एऋऔऔइआ;", "onFailure", "Lokhttp3/Response;", "response", "onSuccess", "app_cyBgsp_sp02Release"}, mv = {1, 7, 1})
public static final class C1923 implements C0936.InterfaceC0938 {
public final String f4164;
public C1923(String str) {
this.f4164 = str;
}
@Override
public void onFailure(IOException iOException) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(iOException, "e");
amc.cd.ऋईऋइऔएऐऊ.औउऐऌ.इईऔओऋआऐइऐ("wangyi", "get失败:" + iOException);
}
@Override
public void onSuccess(Response response) {
C1512.m1390().m1396(this.f4164);
}
}
@Metadata(d1 = {"\u0000\u001d\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\u0010\u0010\b\u001a\u00020\u00042\u0006\u0010\u0007\u001a\u00020\u0006H\u0016¨\u0006\t"}, d2 = {"com/aamon/symmetry/widget/dialogs/glance/GlanceInfoVideoDownloadPop$औउऐऌ", "Lamc/cd/ऌऔआआऌ/ऐऊऐएओऔऔऋऐऐ$ऐऊऐएओऔऔऋऐऐ;", "Ljava/io/IOException;", "e", "Lamc/cd/औउईऐऔएओओ/एऋऔऔइआ;", "onFailure", "Lokhttp3/Response;", "response", "onSuccess", "app_cyBgsp_sp02Release"}, mv = {1, 7, 1})
public static final class C1924 implements C0936.InterfaceC0938 {
public C1924() {
}
@Override
public void onFailure(IOException iOException) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(iOException, "e");
amc.cd.ऋईऋइऔएऐऊ.औउऐऌ.इईऔओऋआऐइऐ("wangyi", "get失败:" + iOException);
}
@Override
public void onSuccess(Response response) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(response, "response");
try {
GlanceInfoVideoDownloadPop glanceInfoVideoDownloadPop = GlanceInfoVideoDownloadPop.this;
ResponseBody body = response.body();
ओऔईऔइएअओऐओ.औउऐऌ(body);
glanceInfoVideoDownloadPop.json = body.string();
if (GlanceInfoVideoDownloadPop.this.getMHandler() != null) {
Handler mHandler = GlanceInfoVideoDownloadPop.this.getMHandler();
ओऔईऔइएअओऐओ.औउऐऌ(mHandler);
mHandler.removeCallbacks(GlanceInfoVideoDownloadPop.this.resultTask);
Handler mHandler2 = GlanceInfoVideoDownloadPop.this.getMHandler();
ओऔईऔइएअओऐओ.औउऐऌ(mHandler2);
mHandler2.postDelayed(GlanceInfoVideoDownloadPop.this.resultTask, 500L);
}
} catch (IOException e) {
e.printStackTrace();
}
}
}
public GlanceInfoVideoDownloadPop(Activity activity, Context context, List<? extends VideoDetailBean> list, VideoDetailEntity videoDetailEntity, final GlanceInfoViewModel glanceInfoViewModel) {
super(context);
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(context, "mContext");
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(list, "videoBeanList");
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(videoDetailEntity, "entry");
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(glanceInfoViewModel, "viewModel");
this.mContext = context;
this.downloadEntityList = new ArrayList();
this.downloadInfos = new ArrayList();
this.streamid = "";
this.percent = "";
this.mHandler = new Handler();
this.viewModel = glanceInfoViewModel;
this.videoBeanList = list;
this.id = videoDetailEntity.getId();
this.resultTask = new RunnableC1921();
ArrayList<VideoDownloadEntity> m1393 = C1512.m1390().m1393();
ओऔईऔइएअओऐओ.ओइऌऊएएऐ(m1393, "getInstance().queryHistory()");
this.downloadEntityList = m1393;
if (!m1393.isEmpty()) {
int size = this.downloadEntityList.size();
for (int i = 0; i < size; i++) {
if (this.downloadEntityList.get(i).getId() == videoDetailEntity.getId()) {
int size2 = list.size();
for (int i2 = 0; i2 < size2; i2++) {
if (((VideoDetailBean) list.get(i2)).getId() == this.downloadEntityList.get(i).getCollection_id()) {
((VideoDetailBean) list.get(i2)).setDownload(true);
if (this.downloadEntityList.get(i).getComplete() == 1) {
this.downloadComplete = true;
((VideoDetailBean) list.get(i2)).setCompleteDownload(true);
}
} else {
((VideoDetailBean) list.get(i2)).setDownload(false);
}
}
}
}
} else {
int size3 = list.size();
for (int i3 = 0; i3 < size3; i3++) {
if (((VideoDetailBean) list.get(i3)).isDownload()) {
((VideoDetailBean) list.get(i3)).setDownload(false);
}
}
}
View inflate = LayoutInflater.from(this.mContext).inflate(R$layout.pop_layout_glance_info_video_download, (ViewGroup) null);
ओऔईऔइएअओऐओ.ओइऌऊएएऐ(inflate, "from(mContext)\n …nfo_video_download, null)");
View findViewById = inflate.findViewById(R$id.rl_view);
ओऔईऔइएअओऐओ.ओइऌऊएएऐ(findViewById, "view.findViewById<RelativeLayout>(R.id.rl_view)");
this.rl_view = (RelativeLayout) findViewById;
View findViewById2 = inflate.findViewById(R$id.rv_list);
ओऔईऔइएअओऐओ.ओइऌऊएएऐ(findViewById2, "view.findViewById<RecyclerView>(R.id.rv_list)");
RecyclerView recyclerView = (RecyclerView) findViewById2;
this.rvList = recyclerView;
View findViewById3 = inflate.findViewById(R$id.tv_already_used);
ओऔईऔइएअओऐओ.ओइऌऊएएऐ(findViewById3, "view.findViewById<TextView>(R.id.tv_already_used)");
TextView textView = (TextView) findViewById3;
this.tv_already_used = textView;
View findViewById4 = inflate.findViewById(R$id.tv_available);
ओऔईऔइएअओऐओ.ओइऌऊएएऐ(findViewById4, "view.findViewById<TextView>(R.id.tv_available)");
TextView textView2 = (TextView) findViewById4;
this.tv_available = textView2;
View findViewById5 = inflate.findViewById(R$id.tv_open_download);
ओऔईऔइएअओऐओ.ओइऌऊएएऐ(findViewById5, "view.findViewById<TextView>(R.id.tv_open_download)");
this.tv_open_download = (TextView) findViewById5;
View findViewById6 = inflate.findViewById(R$id.rl_open_cache);
ओऔईऔइएअओऐओ.ओइऌऊएएऐ(findViewById6, "view.findViewById<Relati…yout>(R.id.rl_open_cache)");
RelativeLayout relativeLayout = (RelativeLayout) findViewById6;
this.rl_open_cache = relativeLayout;
recyclerView.setLayoutManager(new LinearLayoutManager(this.mContext));
textView.setText("已用" + C0921.m987(this.mContext) + (char) 65292);
StringBuilder sb = new StringBuilder();
sb.append("可用");
sb.append(C0921.m988(this.mContext));
textView2.setText(sb.toString());
GlanceInfoDownloadAdapter glanceInfoDownloadAdapter = new GlanceInfoDownloadAdapter(this.mContext, list, videoDetailEntity.getVod_name());
this.adapter = glanceInfoDownloadAdapter;
recyclerView.setAdapter(glanceInfoDownloadAdapter);
this.adapter.m3414(new C1919(list, activity, videoDetailEntity));
relativeLayout.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
GlanceInfoVideoDownloadPop.m3378(GlanceInfoVideoDownloadPop.this, glanceInfoViewModel, view);
}
});
inflate.findViewById(R$id.rl_top).setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
GlanceInfoVideoDownloadPop.m3392(GlanceInfoVideoDownloadPop.this, view);
}
});
setContentView(inflate);
setWidth(-1);
setHeight(-1);
setTouchable(true);
setOutsideTouchable(true);
setFocusable(true);
setAnimationStyle(R$style.pop_shop_anim);
setBackgroundDrawable(this.mContext.getResources().getDrawable(R$color.popupwindow_background));
}
public static final SingleSource m3374(ऊओइओआएआआए r1, Single single) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(r1, "$tmp0");
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(single, "p0");
return (SingleSource) r1.invoke(single);
}
public static final void m3375(GlanceInfoVideoDownloadPop glanceInfoVideoDownloadPop, View view) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(glanceInfoVideoDownloadPop, "this$0");
Dialog dialog = glanceInfoVideoDownloadPop.mDialogUpdate;
ओऔईऔइएअओऐओ.औउऐऌ(dialog);
dialog.dismiss();
}
public static final void m3378(GlanceInfoVideoDownloadPop glanceInfoVideoDownloadPop, GlanceInfoViewModel glanceInfoViewModel, View view) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(glanceInfoVideoDownloadPop, "this$0");
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(glanceInfoViewModel, "$viewModel");
if (MyApplication.f3648) {
return;
}
glanceInfoVideoDownloadPop.dismiss();
BaseFootViewModel.startActivity$default(glanceInfoViewModel, CacheActivity.class, (Bundle) null, 2, (Object) null);
}
public static final SingleSource m3380(ऊओइओआएआआए r1, Single single) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(r1, "$tmp0");
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(single, "p0");
return (SingleSource) r1.invoke(single);
}
public static final SingleSource m3382(ऊओइओआएआआए r1, Single single) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(r1, "$tmp0");
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(single, "p0");
return (SingleSource) r1.invoke(single);
}
public static final void m3383(VideoDetailBean videoDetailBean, GlanceInfoVideoDownloadPop glanceInfoVideoDownloadPop, VideoDetailEntity videoDetailEntity, int i) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(videoDetailBean, "$verifyEntry");
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(glanceInfoVideoDownloadPop, "this$0");
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(videoDetailEntity, "$entry");
String m947 = C0920.m947(videoDetailBean.getVod_url());
ओऔईऔइएअओऐओ.ओइऌऊएएऐ(m947, "videoUrlOneDownload(verifyEntry.vod_url)");
glanceInfoVideoDownloadPop.viewModel.SpectateDownloadVideo(m947, videoDetailEntity, i, videoDetailBean);
}
public static final void m3386(GlanceInfoVideoDownloadPop glanceInfoVideoDownloadPop, View view) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(glanceInfoVideoDownloadPop, "this$0");
glanceInfoVideoDownloadPop.adapter.m3417(glanceInfoVideoDownloadPop.videoBeanList, glanceInfoVideoDownloadPop.pos);
Dialog dialog = glanceInfoVideoDownloadPop.mDialogUpdate;
ओऔईऔइएअओऐओ.औउऐऌ(dialog);
dialog.dismiss();
if (ईअअआऔऌएऌई.ईऌओओआऊउउईउ.ईऌओओआऊउउईउ(glanceInfoVideoDownloadPop.streamid)) {
return;
}
glanceInfoVideoDownloadPop.m3404(glanceInfoVideoDownloadPop.streamid);
}
public static final void m3392(GlanceInfoVideoDownloadPop glanceInfoVideoDownloadPop, View view) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(glanceInfoVideoDownloadPop, "this$0");
glanceInfoVideoDownloadPop.dismiss();
}
public static final SingleSource m3395(ऊओइओआएआआए r1, Single single) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(r1, "$tmp0");
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(single, "p0");
return (SingleSource) r1.invoke(single);
}
@Override
public void showAsDropDown(View view) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(view, "anchor");
Context context = getContentView().getContext();
ओऔईऔइएअओऐओ.इईऔओऋआऐइऐ(context, "null cannot be cast to non-null type android.app.Activity");
int m946 = C0920.m946((Activity) context);
int[] iArr = new int[2];
view.getLocationOnScreen(iArr);
setHeight((m946 - iArr[1]) - view.getHeight());
super.showAsDropDown(view);
}
public final void m3399(List<AdInfoDetailEntry> list, Context context, Activity activity, VideoDetailEntity videoDetailEntity, int i, TextView textView, int i2, boolean z) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(list, "adInfoDetailEntryList");
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(videoDetailEntity, "entry1");
AdInfoDetailEntry adInfoDetailEntry = list.get(i2);
if (adInfoDetailEntry.getAd_source_id() == 4) {
if (adInfoDetailEntry.getNum() <= 0) {
m3400(context, activity, adInfoDetailEntry, i2, videoDetailEntity, i, textView, z);
return;
} else if (adInfoDetailEntry.getNum() > C1508.m1340().m1368(30)) {
m3400(context, activity, adInfoDetailEntry, i2, videoDetailEntity, i, textView, z);
return;
} else {
int i3 = i2 + 1;
m3399(list, context, activity, videoDetailEntity, i, textView, i3 == list.size() ? 0 : i3, z);
return;
}
}
if (adInfoDetailEntry.getAd_source_id() == 5) {
if (adInfoDetailEntry.getNum() <= 0) {
m3402(context, activity, adInfoDetailEntry, i2, videoDetailEntity, i, textView, z);
} else if (adInfoDetailEntry.getNum() > C1508.m1340().m1368(103)) {
m3402(context, activity, adInfoDetailEntry, i2, videoDetailEntity, i, textView, z);
} else {
int i4 = i2 + 1;
m3399(list, context, activity, videoDetailEntity, i, textView, i4 == list.size() ? 0 : i4, z);
}
}
}
public final void m3400(Context context, Activity activity, AdInfoDetailEntry adInfoDetailEntry, int i, VideoDetailEntity videoDetailEntity, int i2, TextView textView, boolean z) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(adInfoDetailEntry, "entry");
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(videoDetailEntity, "entry1");
if ((z && adInfoDetailEntry.getNew_user_has_ad() == 0) || !C0914.m838()) {
m3407(videoDetailEntity.getId(), this.videoBeanList.get(i2).getCollection(), this.videoBeanList.get(i2).getId(), i2, textView, videoDetailEntity);
return;
}
dismiss();
C1508.m1340().m1371(i);
MQRewardProperty mQRewardProperty = new MQRewardProperty();
mQRewardProperty.setUserID(C0920.m978(MyApplication.INSTANCE.m2949()));
MQRewardVideoLoader mQRewardVideoLoader = new MQRewardVideoLoader(activity, adInfoDetailEntry.getSdk_ad_id(), mQRewardProperty);
ओऔईऔइएअओऐओ.औउऐऌ(context);
C1429.m1291(activity, this.rl_view, adInfoDetailEntry, new C0079(context, mQRewardVideoLoader, null), mQRewardVideoLoader, videoDetailEntity.getId(), this.videoBeanList.get(i2).getCollection());
}
public final void m3401(Context context, List<? extends DownloadInfoEntry> list) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(list, "downloadInfos");
if (ईअअआऔऌएऌई.ईऌओओआऊउउईउ.ईऌओओआऊउउईउ(this.streamid)) {
ArrayList<VideoDownloadEntity> m1393 = C1512.m1390().m1393();
ओऔईऔइएअओऐओ.ओइऌऊएएऐ(m1393, "getInstance().queryHistory()");
this.downloadEntityList = m1393;
if (!m1393.isEmpty()) {
int size = this.downloadEntityList.size();
for (int i = 0; i < size; i++) {
if (this.id == this.downloadEntityList.get(i).getId()) {
String streamid = this.downloadEntityList.get(i).getStreamid();
ओऔईऔइएअओऐओ.ओइऌऊएएऐ(streamid, "downloadEntityList[i].streamid");
this.streamid = streamid;
}
}
}
}
int size2 = list.size();
for (int i2 = 0; i2 < size2; i2++) {
if (ओऔईऔइएअओऐओ.ईऌओओआऊउउईउ(this.streamid, list.get(i2).getResource())) {
this.percent = String.valueOf(list.get(i2).getDownload_percent());
}
}
if (this.mDialogUpdate == null) {
View inflate = LayoutInflater.from(context).inflate(R$layout.pop_layout_glance_info_download_info_movies, (ViewGroup) null);
ओऔईऔइएअओऐओ.ओइऌऊएएऐ(inflate, "inflater.inflate(R.layou…wnload_info_movies, null)");
this.tv_message = (TextView) inflate.findViewById(R$id.tv_message);
this.tv_cancel = (TextView) inflate.findViewById(R$id.tv_cancel);
this.tv_sure = (TextView) inflate.findViewById(R$id.tv_sure);
Dialog m1412 = C1521.m1412(context, inflate, true);
this.mDialogUpdate = m1412;
ओऔईऔइएअओऐओ.औउऐऌ(m1412);
m1412.setCanceledOnTouchOutside(false);
}
if (ईअअआऔऌएऌई.ईऌओओआऊउउईउ.ईऌओओआऊउउईउ(this.percent)) {
TextView textView = this.tv_message;
ओऔईऔइएअओऐओ.औउऐऌ(textView);
textView.setText("该视频已下载0%,是否取消下载?");
} else {
TextView textView2 = this.tv_message;
ओऔईऔइएअओऐओ.औउऐऌ(textView2);
textView2.setText("该视频已下载" + this.percent + "%,是否取消下载?");
}
TextView textView3 = this.tv_cancel;
ओऔईऔइएअओऐओ.औउऐऌ(textView3);
textView3.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
GlanceInfoVideoDownloadPop.m3375(GlanceInfoVideoDownloadPop.this, view);
}
});
TextView textView4 = this.tv_sure;
ओऔईऔइएअओऐओ.औउऐऌ(textView4);
textView4.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
GlanceInfoVideoDownloadPop.m3386(GlanceInfoVideoDownloadPop.this, view);
}
});
Dialog dialog = this.mDialogUpdate;
ओऔईऔइएअओऐओ.औउऐऌ(dialog);
dialog.show();
}
public final void m3402(Context context, Activity activity, AdInfoDetailEntry adInfoDetailEntry, int i, VideoDetailEntity videoDetailEntity, int i2, TextView textView, boolean z) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(adInfoDetailEntry, "entry");
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(videoDetailEntity, "entry1");
if ((z && adInfoDetailEntry.getNew_user_has_ad() == 0) || C0914.m873() != 1 || C0920.m972(C0914.m881(), adInfoDetailEntry.getInterval_time())) {
m3407(videoDetailEntity.getId(), this.videoBeanList.get(i2).getCollection(), this.videoBeanList.get(i2).getId(), i2, textView, videoDetailEntity);
return;
}
dismiss();
C1508.m1340().m1371(i);
ओऔईऔइएअओऐओ.औउऐऌ(activity);
C0296 c0296 = new C0296(activity, adInfoDetailEntry.getSdk_ad_id());
ओऔईऔइएअओऐओ.औउऐऌ(context);
C1429.m1296(c0296, this.rl_view, adInfoDetailEntry, new C0079(context, null, c0296), activity, videoDetailEntity.getId(), this.videoBeanList.get(i2).getCollection());
}
public final Handler getMHandler() {
return this.mHandler;
}
public final void m3404(String str) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(str, VideoDownloadEntity.STREAMID);
C0936.m989("http://127.0.0.1:" + MyApplication.f3650 + "/download_control?resource=" + str + "&type=5", new C1923(str));
}
public final void m3405(int i, int i2, int i3, TextView textView, VideoDetailEntity videoDetailEntity) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(videoDetailEntity, "entry");
String vod_token = this.videoBeanList.get(i3).getVod_token();
ओऔईऔइएअओऐओ.ओइऌऊएएऐ(vod_token, "videoBeanList[position].vod_token");
String cur_time = this.videoBeanList.get(i3).getCur_time();
ओऔईऔइएअओऐओ.ओइऌऊएएऐ(cur_time, "videoBeanList[position].cur_time");
m3406(vod_token, cur_time, i, i2, i3, textView, videoDetailEntity);
}
public final void m3406(String str, String str2, int i, int i2, int i3, TextView textView, VideoDetailEntity videoDetailEntity) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(str, VideoDownloadEntity.VOD_TOKEN);
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(str2, "curTime");
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(videoDetailEntity, "entry");
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(ExposeManager.UtArgsNames.sessionId, "");
hashMap.put("sig", "");
hashMap.put("nc_token", "");
hashMap.put("phone", "");
hashMap.put("code", "");
Single<BaseInitResponse<VideoDetailBean>> m2889 = RetrofitUtil.INSTANCE.m2923().m2889(hashMap);
C0345 c0345 = C0345.f575;
final GlanceInfoVideoDownloadPop$getDownloadVerifyInfo$1 glanceInfoVideoDownloadPop$getDownloadVerifyInfo$1 = new GlanceInfoVideoDownloadPop$getDownloadVerifyInfo$1(c0345);
Single compose = m2889.compose(new SingleTransformer() {
public final SingleSource apply(Single single) {
SingleSource m3395;
m3395 = GlanceInfoVideoDownloadPop.m3395(glanceInfoVideoDownloadPop$getDownloadVerifyInfo$1, single);
return m3395;
}
});
final GlanceInfoVideoDownloadPop$getDownloadVerifyInfo$2 glanceInfoVideoDownloadPop$getDownloadVerifyInfo$2 = new GlanceInfoVideoDownloadPop$getDownloadVerifyInfo$2(c0345);
compose.compose(new SingleTransformer() {
public final SingleSource apply(Single single) {
SingleSource m3374;
m3374 = GlanceInfoVideoDownloadPop.m3374(glanceInfoVideoDownloadPop$getDownloadVerifyInfo$2, single);
return m3374;
}
}).subscribe(new C1920(i3, textView, videoDetailEntity));
}
public final void m3407(int i, int i2, int i3, int i4, TextView textView, VideoDetailEntity videoDetailEntity) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(videoDetailEntity, "entry");
HashMap hashMap = new HashMap();
hashMap.put("vod_id", Integer.valueOf(i));
hashMap.put(VideoDownloadEntity.COLLECTION_ID, Integer.valueOf(i2));
Single<BaseInitResponse<String>> m2895 = RetrofitUtil.INSTANCE.m2923().m2895(hashMap);
C0345 c0345 = C0345.f575;
final GlanceInfoVideoDownloadPop$getDownloadStatisInfo$1 glanceInfoVideoDownloadPop$getDownloadStatisInfo$1 = new GlanceInfoVideoDownloadPop$getDownloadStatisInfo$1(c0345);
Single compose = m2895.compose(new SingleTransformer() {
public final SingleSource apply(Single single) {
SingleSource m3382;
m3382 = GlanceInfoVideoDownloadPop.m3382(glanceInfoVideoDownloadPop$getDownloadStatisInfo$1, single);
return m3382;
}
});
final GlanceInfoVideoDownloadPop$getDownloadStatisInfo$2 glanceInfoVideoDownloadPop$getDownloadStatisInfo$2 = new GlanceInfoVideoDownloadPop$getDownloadStatisInfo$2(c0345);
compose.compose(new SingleTransformer() {
public final SingleSource apply(Single single) {
SingleSource m3380;
m3380 = GlanceInfoVideoDownloadPop.m3380(glanceInfoVideoDownloadPop$getDownloadStatisInfo$2, single);
return m3380;
}
}).subscribe(new C1918(i, i3, i4, textView, videoDetailEntity));
}
public final void m3408(final int i, TextView textView, final VideoDetailEntity videoDetailEntity, final VideoDetailBean videoDetailBean) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(videoDetailEntity, "entry");
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(videoDetailBean, "verifyEntry");
if (C0914.m853() > 0) {
C0914.m846(C0914.m853() - 1);
}
if (!amc.cd.ऌऌउओएएऋऋऌए.ईऌओओआऊउउईउ.ऐऊऐएओऔऔऋऐऐ(this.mContext) && amc.cd.ऌऌउओएएऋऋऌए.ईऌओओआऊउउईउ.ईऌओओआऊउउईउ(this.mContext)) {
औउऐऌ.औउऐऌ("正在用流量下载");
}
this.adapter.m3415(this.videoBeanList, i);
new C0887(this.mContext, this.rl_view).m764(textView).m763(this.tv_open_download).m765(R$drawable.ic_glance_info_download_icon).m762(new C0887.InterfaceC0890() {
@Override
public final void mo29() {
GlanceInfoVideoDownloadPop.m3383(VideoDetailBean.this, this, videoDetailEntity, i);
}
});
}
public final void m3409(String str, Context context, int i) {
ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(str, "url");
amc.cd.ऋईऋइऔएऐऊ.औउऐऌ.इईऔओऋआऐइऐ("wangyi", "下载链接为:" + str);
C0936.m989(str, new C1924());
}
}