导航菜单

页面标题

页面副标题

饼干视频 v4.1.0 - GlanceInfoTvAndComicDownloadPop.java 源代码

正在查看: 饼干视频 v4.1.0 应用的 GlanceInfoTvAndComicDownloadPop.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 amc.cd.ऌऐऊओऌऔऊ.ओऔईऔइएअओऐओ;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.graphics.Rect;
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.GridLayoutManager;
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.database.local.table.VideoLookHistoryEntry;
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.GlanceInfoTvAndComicDownloadPop;
import com.aamon.symmetry.widget.dialogs.glance.adapter.GlanceInfoTvAndComicDownloadAdapter;
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¨\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\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\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\f\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\f\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0010!\n\u0002\b\n\u0018\u00002\u00020\u0001:\u00011BB\u0012\b\u0010\b\u001a\u0004\u0018\u00010\u0007\u0012\u0006\u0010/\u001a\u00020\u0005\u0012\f\u0010I\u001a\b\u0012\u0004\u0012\u00020*0\u0002\u0012\u0007\u0010\u0081\u0001\u001a\u00020\u000b\u0012\u0006\u0010\u0014\u001a\u00020\t\u0012\u0006\u00103\u001a\u000200¢\u0006\u0006\b\u0082\u0001\u0010\u0083\u0001JP\u0010\u0013\u001a\u00020\u00122\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00030\u00022\b\u0010\u0006\u001a\u0004\u0018\u00010\u00052\b\u0010\b\u001a\u0004\u0018\u00010\u00072\u0006\u0010\n\u001a\u00020\t2\u0006\u0010\f\u001a\u00020\u000b2\u0006\u0010\u000e\u001a\u00020\r2\u0006\u0010\u000f\u001a\u00020\u000b2\u0006\u0010\u0011\u001a\u00020\u0010JJ\u0010\u0015\u001a\u00020\u00122\b\u0010\u0006\u001a\u0004\u0018\u00010\u00052\b\u0010\b\u001a\u0004\u0018\u00010\u00072\u0006\u0010\u0014\u001a\u00020\u00032\u0006\u0010\u000f\u001a\u00020\u000b2\u0006\u0010\n\u001a\u00020\t2\u0006\u0010\f\u001a\u00020\u000b2\u0006\u0010\u000e\u001a\u00020\r2\u0006\u0010\u0011\u001a\u00020\u0010JJ\u0010\u0016\u001a\u00020\u00122\b\u0010\u0006\u001a\u0004\u0018\u00010\u00052\b\u0010\b\u001a\u0004\u0018\u00010\u00072\u0006\u0010\u0014\u001a\u00020\u00032\u0006\u0010\u000f\u001a\u00020\u000b2\u0006\u0010\n\u001a\u00020\t2\u0006\u0010\f\u001a\u00020\u000b2\u0006\u0010\u000e\u001a\u00020\r2\u0006\u0010\u0011\u001a\u00020\u0010J\u0010\u0010\u0019\u001a\u00020\u00122\u0006\u0010\u0018\u001a\u00020\u0017H\u0016J \u0010\u001c\u001a\u00020\u00122\u0006\u0010\u001b\u001a\u00020\u001a2\b\u0010\u0006\u001a\u0004\u0018\u00010\u00052\u0006\u0010\f\u001a\u00020\u000bJ\u001e\u0010\u001f\u001a\u00020\u00122\b\u0010\u0006\u001a\u0004\u0018\u00010\u00052\f\u0010\u001e\u001a\b\u0012\u0004\u0012\u00020\u001d0\u0002J\u000e\u0010!\u001a\u00020\u00122\u0006\u0010 \u001a\u00020\u001aJ6\u0010%\u001a\u00020\u00122\u0006\u0010\"\u001a\u00020\u000b2\u0006\u0010#\u001a\u00020\u000b2\u0006\u0010$\u001a\u00020\u000b2\u0006\u0010\f\u001a\u00020\u000b2\u0006\u0010\u000e\u001a\u00020\r2\u0006\u0010\u0014\u001a\u00020\tJ.\u0010&\u001a\u00020\u00122\u0006\u0010\"\u001a\u00020\u000b2\u0006\u0010$\u001a\u00020\u000b2\u0006\u0010\f\u001a\u00020\u000b2\u0006\u0010\u000e\u001a\u00020\r2\u0006\u0010\u0014\u001a\u00020\tJ>\u0010)\u001a\u00020\u00122\u0006\u0010'\u001a\u00020\u001a2\u0006\u0010(\u001a\u00020\u001a2\u0006\u0010\"\u001a\u00020\u000b2\u0006\u0010$\u001a\u00020\u000b2\u0006\u0010\f\u001a\u00020\u000b2\u0006\u0010\u000e\u001a\u00020\r2\u0006\u0010\u0014\u001a\u00020\tJ&\u0010,\u001a\u00020\u00122\u0006\u0010\f\u001a\u00020\u000b2\u0006\u0010\u000e\u001a\u00020\r2\u0006\u0010\u0014\u001a\u00020\t2\u0006\u0010+\u001a\u00020*R\u0014\u0010/\u001a\u00020\u00058\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b-\u0010.R\u0016\u00103\u001a\u0002008\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b1\u00102R\u0016\u00107\u001a\u0002048\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b5\u00106R\u0016\u00109\u001a\u0002048\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b8\u00106R\u0016\u0010<\u001a\u00020\r8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b:\u0010;R\u0016\u0010@\u001a\u00020=8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b>\u0010?R\u0016\u0010B\u001a\u00020\r8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bA\u0010;R\u0016\u0010D\u001a\u00020\r8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bC\u0010;R\u0016\u0010F\u001a\u00020\r8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bE\u0010;R\u001c\u0010I\u001a\b\u0012\u0004\u0012\u00020*0\u00028\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bG\u0010HR\"\u0010Q\u001a\u00020J8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\bK\u0010L\u001a\u0004\bM\u0010N\"\u0004\bO\u0010PR(\u0010X\u001a\b\u0012\u0004\u0012\u00020R0\u00028\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\bS\u0010H\u001a\u0004\bT\u0010U\"\u0004\bV\u0010WR\u001c\u0010\u001e\u001a\b\u0012\u0004\u0012\u00020\u001d0\u00028\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bY\u0010HR\u0018\u0010]\u001a\u0004\u0018\u00010Z8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b[\u0010\\R\u0018\u0010_\u001a\u0004\u0018\u00010\r8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b^\u0010;R\u0018\u0010a\u001a\u0004\u0018\u00010\r8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b`\u0010;R\u0018\u0010c\u001a\u0004\u0018\u00010\r8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bb\u0010;R$\u0010k\u001a\u0004\u0018\u00010d8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\be\u0010f\u001a\u0004\bg\u0010h\"\u0004\bi\u0010jR\u0018\u0010n\u001a\u0004\u0018\u00010\u001a8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bl\u0010mR\u001a\u0010r\u001a\u00060oR\u00020\u00008\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bp\u0010qR\u0016\u0010u\u001a\u00020\u000b8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bs\u0010tR\u0016\u0010 \u001a\u00020\u001a8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bv\u0010mR\u0016\u0010w\u001a\u00020\u001a8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b,\u0010mR\u001a\u0010y\u001a\b\u0012\u0004\u0012\u00020*0\u00028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bx\u0010HR\u001a\u0010{\u001a\b\u0012\u0004\u0012\u00020*0z8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bT\u0010HR#\u0010\u0080\u0001\u001a\u00020\u000b8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u001c\u0010t\u001a\u0004\b|\u0010}\"\u0004\b~\u0010\u007f¨\u0006\u0084\u0001"}, d2 = {"Lcom/aamon/symmetry/widget/dialogs/glance/GlanceInfoTvAndComicDownloadPop;", "Landroid/widget/PopupWindow;", "", "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", "Lamc/cd/औउईऐऔएओओ/एऋऔऔइआ;", "ईऔऌउऌ", "entry", "आअऋओओ", "ऐएओईऊ", "Landroid/view/View;", "anchor", "showAsDropDown", "", "url", "ऌउऔअई", "Lcom/aamon/symmetry/origin/data/entry/cache/DownloadInfoEntry;", "downloadInfos", "उअऊओऌइऊईऊ", 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", "Landroid/widget/RelativeLayout;", "औउऐऌ", "Landroid/widget/RelativeLayout;", "rl_view", "इईऔओऋआऐइऐ", "rl_open_cache", "ओइऌऊएएऐ", "Landroid/widget/TextView;", "tvSort", "Landroidx/recyclerview/widget/RecyclerView;", "ऌऔऌआउउऊआ", "Landroidx/recyclerview/widget/RecyclerView;", "rvList", "ऊएअऊऔ", "tv_already_used", "एअऐऌए", "tv_available", "अअआऊअआइआ", "tv_open_download", "ईअअआऔऌएऌई", "Ljava/util/List;", "videoBeanList", "Lcom/aamon/symmetry/widget/dialogs/glance/adapter/GlanceInfoTvAndComicDownloadAdapter;", "ओऌउऔ", "Lcom/aamon/symmetry/widget/dialogs/glance/adapter/GlanceInfoTvAndComicDownloadAdapter;", "getAdapter", "()Lcom/aamon/symmetry/widget/dialogs/glance/adapter/GlanceInfoTvAndComicDownloadAdapter;", "setAdapter", "(Lcom/aamon/symmetry/widget/dialogs/glance/adapter/GlanceInfoTvAndComicDownloadAdapter;)V", "adapter", "Lcom/aamon/symmetry/origin/data/database/local/table/VideoDownloadEntity;", "ऊओइओआएआआए", "ईऊईऋऊउउऊ", "()Ljava/util/List;", "setDownloadEntityList", "(Ljava/util/List;)V", "downloadEntityList", "ओऌएऐऐऔओऋउउ", "Landroid/app/Dialog;", "ईअआऔईऌउऌऐ", "Landroid/app/Dialog;", "mDialogUpdate", "इऋऊऊ", "tv_message", "औऌऌइई", "tv_cancel", "एऋऔऔइआ", "tv_sure", "Landroid/os/Handler;", "ओऔईऔइएअओऐओ", "Landroid/os/Handler;", "ऋऋऊउ", "()Landroid/os/Handler;", "setMHandler", "(Landroid/os/Handler;)V", "mHandler", "औइईएई", "Ljava/lang/String;", "json", "Lcom/aamon/symmetry/widget/dialogs/glance/GlanceInfoTvAndComicDownloadPop$ऐऊऐएओऔऔऋऐऐ;", "ऐऐऔअई", "Lcom/aamon/symmetry/widget/dialogs/glance/GlanceInfoTvAndComicDownloadPop$ऐऊऐएओऔऔऋऐऐ;", "resultTask", "ऊईआएओउऐ", "I", "pos", "ओओउऋ", "percent", "उउऌऊ", "list", "", "sortList", "getSortPos", "()I", "setSortPos", "(I)V", "sortPos", VideoLookHistoryEntry.CURRNET, "<init>", "(Landroid/app/Activity;Landroid/content/Context;Ljava/util/List;ILcom/aamon/symmetry/origin/data/entry/videodetail/VideoDetailEntity;Landroidx/lifecycle/viewmodel/GlanceInfoViewModel;)V", "app_cyBgsp_sp02Release"}, mv = {1, 7, 1})
public final class GlanceInfoTvAndComicDownloadPop extends PopupWindow {

    public TextView tv_open_download;

    public RelativeLayout rl_open_cache;

    public TextView tv_message;

    public List<? extends VideoDetailBean> videoBeanList;

    public Dialog mDialogUpdate;

    public final List<VideoDetailBean> sortList;

    public final Context mContext;

    public final List<VideoDetailBean> list;

    public int pos;

    public TextView tv_already_used;

    public List<? extends VideoDownloadEntity> downloadEntityList;

    public int sortPos;

    public RecyclerView rvList;

    public TextView tv_available;

    public TextView tv_sure;

    public String percent;

    public GlanceInfoViewModel viewModel;

    public RunnableC1905 resultTask;

    public TextView tvSort;

    public GlanceInfoTvAndComicDownloadAdapter adapter;

    public List<? extends DownloadInfoEntry> downloadInfos;

    public String streamid;

    public Handler mHandler;

    public String json;

    public RelativeLayout rl_view;

    public TextView tv_cancel;

    @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/GlanceInfoTvAndComicDownloadPop$इईऔओऋआऐइऐ", "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 C1902 implements SingleObserver<BaseInitResponse<String>> {

        public final int f4043;

        public final int f4044;

        public final VideoDetailEntity f4046;

        public final int f4047;

        public final TextView f4048;

        public C1902(int i, int i2, int i3, TextView textView, VideoDetailEntity videoDetailEntity) {
            this.f4047 = i;
            this.f4044 = i2;
            this.f4043 = i3;
            this.f4048 = textView;
            this.f4046 = 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()) {
                GlanceInfoTvAndComicDownloadPop.this.m3286(this.f4047, this.f4044, this.f4043, this.f4048, this.f4046);
            } 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\u0018\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0016¨\u0006\b"}, d2 = {"com/aamon/symmetry/widget/dialogs/glance/GlanceInfoTvAndComicDownloadPop$ईऌओओआऊउउईउ", "Lcom/aamon/symmetry/widget/dialogs/glance/adapter/GlanceInfoTvAndComicDownloadAdapter$औउऐऌ;", "", "position", "Landroid/widget/TextView;", "textView", "Lamc/cd/औउईऐऔएओओ/एऋऔऔइआ;", "ईऌओओआऊउउईउ", "app_cyBgsp_sp02Release"}, mv = {1, 7, 1})
    public static final class C1903 implements GlanceInfoTvAndComicDownloadAdapter.InterfaceC1948 {

        public final Activity f4050;

        public final VideoDetailEntity f4051;

        public C1903(Activity activity, VideoDetailEntity videoDetailEntity) {
            this.f4050 = activity;
            this.f4051 = videoDetailEntity;
        }

        @Override
        public void mo3295(int i, TextView textView) {
            ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(textView, "textView");
            if (C0920.m980()) {
                return;
            }
            if (!amc.cd.ऌऌउओएएऋऋऌए.ईऌओओआऊउउईउ.ईऌओओआऊउउईउ(GlanceInfoTvAndComicDownloadPop.this.mContext)) {
                औउऐऌ.औउऐऌ("网络不可用,请检查网络");
                return;
            }
            GlanceInfoTvAndComicDownloadPop.this.pos = i;
            if (((VideoDetailBean) GlanceInfoTvAndComicDownloadPop.this.sortList.get(i)).isDownload()) {
                if (((VideoDetailBean) GlanceInfoTvAndComicDownloadPop.this.sortList.get(i)).isCompleteDownload()) {
                    औउऐऌ.औउऐऌ("你已经下载完该视频");
                    return;
                }
                int size = GlanceInfoTvAndComicDownloadPop.this.m3283().size();
                for (int i2 = 0; i2 < size; i2++) {
                    if (((VideoDetailBean) GlanceInfoTvAndComicDownloadPop.this.sortList.get(i)).getId() == GlanceInfoTvAndComicDownloadPop.this.m3283().get(i2).getCollection_id()) {
                        GlanceInfoTvAndComicDownloadPop glanceInfoTvAndComicDownloadPop = GlanceInfoTvAndComicDownloadPop.this;
                        String streamid = glanceInfoTvAndComicDownloadPop.m3283().get(i2).getStreamid();
                        ओऔईऔइएअओऐओ.ओइऌऊएएऐ(streamid, "downloadEntityList[i].streamid");
                        glanceInfoTvAndComicDownloadPop.streamid = streamid;
                    }
                }
                GlanceInfoTvAndComicDownloadPop.this.m3289("http://127.0.0.1:" + MyApplication.f3650 + "/control?msg=download_info", GlanceInfoTvAndComicDownloadPop.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) {
                        GlanceInfoTvAndComicDownloadPop.this.m3291(this.f4051.getId(), ((VideoDetailBean) GlanceInfoTvAndComicDownloadPop.this.sortList.get(i)).getCollection(), ((VideoDetailBean) GlanceInfoTvAndComicDownloadPop.this.sortList.get(i)).getId(), i, textView, this.f4051);
                        return;
                    }
                    List<AdInfoDetailEntry> ad_position_52 = MyApplication.f3647.getAd_position_5();
                    ओऔईऔइएअओऐओ.औउऐऌ(ad_position_52);
                    int m1368 = C1508.m1340().m1368(24);
                    int i3 = m1368 >= ad_position_52.size() - 1 ? 0 : m1368 + 1;
                    if (C0914.m864() == 1) {
                        GlanceInfoTvAndComicDownloadPop glanceInfoTvAndComicDownloadPop2 = GlanceInfoTvAndComicDownloadPop.this;
                        glanceInfoTvAndComicDownloadPop2.m3284(ad_position_52, glanceInfoTvAndComicDownloadPop2.mContext, this.f4050, this.f4051, i, textView, i3, false);
                        return;
                    } else {
                        GlanceInfoTvAndComicDownloadPop glanceInfoTvAndComicDownloadPop3 = GlanceInfoTvAndComicDownloadPop.this;
                        glanceInfoTvAndComicDownloadPop3.m3284(ad_position_52, glanceInfoTvAndComicDownloadPop3.mContext, this.f4050, this.f4051, i, textView, i3, true);
                        return;
                    }
                }
            }
            GlanceInfoTvAndComicDownloadPop.this.m3291(this.f4051.getId(), ((VideoDetailBean) GlanceInfoTvAndComicDownloadPop.this.sortList.get(i)).getCollection(), ((VideoDetailBean) GlanceInfoTvAndComicDownloadPop.this.sortList.get(i)).getId(), i, textView, this.f4051);
        }
    }

    @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/GlanceInfoTvAndComicDownloadPop$ऌऔऌआउउऊआ", "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 C1904 implements SingleObserver<BaseInitResponse<VideoDetailBean>> {

        public final VideoDetailEntity f4052;

        public final TextView f4053;

        public final int f4055;

        public C1904(int i, TextView textView, VideoDetailEntity videoDetailEntity) {
            this.f4055 = i;
            this.f4053 = textView;
            this.f4052 = 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;
            }
            GlanceInfoTvAndComicDownloadPop glanceInfoTvAndComicDownloadPop = GlanceInfoTvAndComicDownloadPop.this;
            int i = this.f4055;
            TextView textView = this.f4053;
            VideoDetailEntity videoDetailEntity = this.f4052;
            Object result = baseInitResponse.getResult();
            ओऔईऔइएअओऐओ.औउऐऌ(result);
            glanceInfoTvAndComicDownloadPop.m3292(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/GlanceInfoTvAndComicDownloadPop$ऐऊऐएओऔऔऋऐऐ;", "Ljava/lang/Runnable;", "Lamc/cd/औउईऐऔएओओ/एऋऔऔइआ;", "run", "<init>", "(Lcom/aamon/symmetry/widget/dialogs/glance/GlanceInfoTvAndComicDownloadPop;)V", "app_cyBgsp_sp02Release"}, mv = {1, 7, 1})
    public final class RunnableC1905 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/GlanceInfoTvAndComicDownloadPop$ऐऊऐएओऔऔऋऐऐ$ईऌओओआऊउउईउ", "Lamc/cd/एओईआ/ईऌओओआऊउउईउ;", "", "Lcom/aamon/symmetry/origin/data/entry/cache/DownloadInfoEntry;", "app_cyBgsp_sp02Release"}, mv = {1, 7, 1})
        public static final class C1906 extends amc.cd.एओईआ.ईऌओओआऊउउईउ<List<? extends DownloadInfoEntry>> {
        }

        public RunnableC1905() {
        }

        @Override
        public void run() {
            if (C0893.m769(GlanceInfoTvAndComicDownloadPop.this.json, DownloadInfoEntry.class)) {
                GlanceInfoTvAndComicDownloadPop glanceInfoTvAndComicDownloadPop = GlanceInfoTvAndComicDownloadPop.this;
                Object m776 = C0893.m776(glanceInfoTvAndComicDownloadPop.json, new C1906().getType());
                ओऔईऔइएअओऐओ.ओइऌऊएएऐ(m776, "fromJson(\n              …{}.type\n                )");
                glanceInfoTvAndComicDownloadPop.downloadInfos = (List) m776;
                if (!GlanceInfoTvAndComicDownloadPop.this.downloadInfos.isEmpty()) {
                    GlanceInfoTvAndComicDownloadPop glanceInfoTvAndComicDownloadPop2 = GlanceInfoTvAndComicDownloadPop.this;
                    glanceInfoTvAndComicDownloadPop2.m3285(glanceInfoTvAndComicDownloadPop2.mContext, GlanceInfoTvAndComicDownloadPop.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/GlanceInfoTvAndComicDownloadPop$ओइऌऊएएऐ", "Lamc/cd/ऌऔआआऌ/ऐऊऐएओऔऔऋऐऐ$ऐऊऐएओऔऔऋऐऐ;", "Ljava/io/IOException;", "e", "Lamc/cd/औउईऐऔएओओ/एऋऔऔइआ;", "onFailure", "Lokhttp3/Response;", "response", "onSuccess", "app_cyBgsp_sp02Release"}, mv = {1, 7, 1})
    public static final class C1907 implements C0936.InterfaceC0938 {

        public final String f4057;

        public C1907(String str) {
            this.f4057 = str;
        }

        @Override
        public void onFailure(IOException iOException) {
            ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(iOException, "e");
            amc.cd.ऋईऋइऔएऐऊ.औउऐऌ.इईऔओऋआऐइऐ("wangyi", "get失败:" + iOException);
        }

        @Override
        public void onSuccess(Response response) {
            amc.cd.ऋईऋइऔएऐऊ.औउऐऌ.इईऔओऋआऐइऐ("wangyi", "成功");
            C1512.m1390().m1396(this.f4057);
        }
    }

    @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/GlanceInfoTvAndComicDownloadPop$औउऐऌ", "Lamc/cd/ऌऔआआऌ/ऐऊऐएओऔऔऋऐऐ$ऐऊऐएओऔऔऋऐऐ;", "Ljava/io/IOException;", "e", "Lamc/cd/औउईऐऔएओओ/एऋऔऔइआ;", "onFailure", "Lokhttp3/Response;", "response", "onSuccess", "app_cyBgsp_sp02Release"}, mv = {1, 7, 1})
    public static final class C1908 implements C0936.InterfaceC0938 {
        public C1908() {
        }

        @Override
        public void onFailure(IOException iOException) {
            ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(iOException, "e");
            amc.cd.ऋईऋइऔएऐऊ.औउऐऌ.इईऔओऋआऐइऐ("wangyi", "get失败:" + iOException);
        }

        @Override
        public void onSuccess(Response response) {
            ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(response, "response");
            try {
                GlanceInfoTvAndComicDownloadPop glanceInfoTvAndComicDownloadPop = GlanceInfoTvAndComicDownloadPop.this;
                ResponseBody body = response.body();
                ओऔईऔइएअओऐओ.औउऐऌ(body);
                glanceInfoTvAndComicDownloadPop.json = body.string();
                if (GlanceInfoTvAndComicDownloadPop.this.getMHandler() != null) {
                    Handler mHandler = GlanceInfoTvAndComicDownloadPop.this.getMHandler();
                    ओऔईऔइएअओऐओ.औउऐऌ(mHandler);
                    mHandler.removeCallbacks(GlanceInfoTvAndComicDownloadPop.this.resultTask);
                    Handler mHandler2 = GlanceInfoTvAndComicDownloadPop.this.getMHandler();
                    ओऔईऔइएअओऐओ.औउऐऌ(mHandler2);
                    mHandler2.postDelayed(GlanceInfoTvAndComicDownloadPop.this.resultTask, 500L);
                }
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }

    public GlanceInfoTvAndComicDownloadPop(Activity activity, Context context, List<? extends VideoDetailBean> list, int i, 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.mHandler = new Handler();
        this.streamid = "";
        this.percent = "";
        this.list = new ArrayList();
        this.sortList = new ArrayList();
        this.viewModel = glanceInfoViewModel;
        this.resultTask = new RunnableC1905();
        this.videoBeanList = list;
        ArrayList<VideoDownloadEntity> m1393 = C1512.m1390().m1393();
        ओऔईऔइएअओऐओ.ओइऌऊएएऐ(m1393, "getInstance().queryHistory()");
        this.downloadEntityList = m1393;
        if (m1393.size() > 0) {
            int size = this.downloadEntityList.size();
            for (int i2 = 0; i2 < size; i2++) {
                if (this.downloadEntityList.get(i2).getId() == videoDetailEntity.getId()) {
                    int size2 = list.size();
                    for (int i3 = 0; i3 < size2; i3++) {
                        if (list.get(i3).getId() == this.downloadEntityList.get(i2).getCollection_id()) {
                            list.get(i3).setDownload(true);
                            if (this.downloadEntityList.get(i2).getComplete() == 1) {
                                list.get(i3).setCompleteDownload(true);
                            }
                        }
                    }
                }
            }
        } else {
            int size3 = list.size();
            for (int i4 = 0; i4 < size3; i4++) {
                if (list.get(i4).isDownload()) {
                    list.get(i4).setDownload(false);
                }
            }
        }
        View inflate = LayoutInflater.from(this.mContext).inflate(R$layout.pop_layout_glance_info_tv_download, (ViewGroup) null);
        ओऔईऔइएअओऐओ.ओइऌऊएएऐ(inflate, "from(mContext).inflate(R…e_info_tv_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)");
        this.rvList = (RecyclerView) findViewById2;
        View findViewById3 = inflate.findViewById(R$id.tv_sort);
        ओऔईऔइएअओऐओ.ओइऌऊएएऐ(findViewById3, "view.findViewById<TextView>(R.id.tv_sort)");
        this.tvSort = (TextView) findViewById3;
        View findViewById4 = inflate.findViewById(R$id.tv_already_used);
        ओऔईऔइएअओऐओ.ओइऌऊएएऐ(findViewById4, "view.findViewById<TextView>(R.id.tv_already_used)");
        this.tv_already_used = (TextView) findViewById4;
        View findViewById5 = inflate.findViewById(R$id.tv_available);
        ओऔईऔइएअओऐओ.ओइऌऊएएऐ(findViewById5, "view.findViewById<TextView>(R.id.tv_available)");
        this.tv_available = (TextView) findViewById5;
        View findViewById6 = inflate.findViewById(R$id.tv_open_download);
        ओऔईऔइएअओऐओ.ओइऌऊएएऐ(findViewById6, "view.findViewById<TextView>(R.id.tv_open_download)");
        this.tv_open_download = (TextView) findViewById6;
        View findViewById7 = inflate.findViewById(R$id.rl_open_cache);
        ओऔईऔइएअओऐओ.ओइऌऊएएऐ(findViewById7, "view.findViewById<Relati…yout>(R.id.rl_open_cache)");
        this.rl_open_cache = (RelativeLayout) findViewById7;
        this.rvList.setLayoutManager(new GridLayoutManager(this.mContext, 6));
        this.tv_already_used.setText("已用" + C0921.m987(this.mContext) + (char) 65292);
        this.tv_available.setText("可用" + C0921.m988(this.mContext));
        int size4 = list.size();
        for (int i5 = 0; i5 < size4; i5++) {
            if (i == i5) {
                list.get(i5).setCheck(true);
            } else {
                list.get(i5).setCheck(false);
            }
        }
        this.sortList.addAll(list);
        GlanceInfoTvAndComicDownloadAdapter glanceInfoTvAndComicDownloadAdapter = new GlanceInfoTvAndComicDownloadAdapter(this.mContext, this.list);
        this.adapter = glanceInfoTvAndComicDownloadAdapter;
        this.rvList.setAdapter(glanceInfoTvAndComicDownloadAdapter);
        inflate.findViewById(R$id.ll_sort).setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                GlanceInfoTvAndComicDownloadPop.m3274(GlanceInfoTvAndComicDownloadPop.this, view);
            }
        });
        this.adapter.m3468(new C1903(activity, videoDetailEntity));
        this.rl_open_cache.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                GlanceInfoTvAndComicDownloadPop.m3266(GlanceInfoTvAndComicDownloadPop.this, glanceInfoViewModel, view);
            }
        });
        inflate.findViewById(R$id.rl_top).setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                GlanceInfoTvAndComicDownloadPop.m3275(GlanceInfoTvAndComicDownloadPop.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));
        this.adapter.m3472(this.sortList, i);
        this.rvList.scrollToPosition(i);
    }

    public static final SingleSource m3254(ऊओइओआएआआए r1, Single single) {
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(r1, "$tmp0");
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(single, "p0");
        return (SingleSource) r1.invoke(single);
    }

    public static final SingleSource m3255(ऊओइओआएआआए r1, Single single) {
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(r1, "$tmp0");
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(single, "p0");
        return (SingleSource) r1.invoke(single);
    }

    public static final void m3261(GlanceInfoTvAndComicDownloadPop glanceInfoTvAndComicDownloadPop, View view) {
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(glanceInfoTvAndComicDownloadPop, "this$0");
        Dialog dialog = glanceInfoTvAndComicDownloadPop.mDialogUpdate;
        ओऔईऔइएअओऐओ.औउऐऌ(dialog);
        dialog.dismiss();
    }

    public static final void m3262(VideoDetailBean videoDetailBean, GlanceInfoTvAndComicDownloadPop glanceInfoTvAndComicDownloadPop, VideoDetailEntity videoDetailEntity) {
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(videoDetailBean, "$verifyEntry");
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(glanceInfoTvAndComicDownloadPop, "this$0");
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(videoDetailEntity, "$entry");
        String m947 = C0920.m947(videoDetailBean.getVod_url());
        ओऔईऔइएअओऐओ.ओइऌऊएएऐ(m947, "videoUrlOneDownload(verifyEntry.vod_url)");
        glanceInfoTvAndComicDownloadPop.viewModel.SpectateDownloadVideo(m947, videoDetailEntity, glanceInfoTvAndComicDownloadPop.sortPos, videoDetailBean);
    }

    public static final SingleSource m3264(ऊओइओआएआआए r1, Single single) {
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(r1, "$tmp0");
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(single, "p0");
        return (SingleSource) r1.invoke(single);
    }

    public static final void m3266(GlanceInfoTvAndComicDownloadPop glanceInfoTvAndComicDownloadPop, GlanceInfoViewModel glanceInfoViewModel, View view) {
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(glanceInfoTvAndComicDownloadPop, "this$0");
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(glanceInfoViewModel, "$viewModel");
        if (MyApplication.f3648) {
            return;
        }
        glanceInfoTvAndComicDownloadPop.dismiss();
        BaseFootViewModel.startActivity$default(glanceInfoViewModel, CacheActivity.class, (Bundle) null, 2, (Object) null);
    }

    public static final void m3273(GlanceInfoTvAndComicDownloadPop glanceInfoTvAndComicDownloadPop, View view) {
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(glanceInfoTvAndComicDownloadPop, "this$0");
        glanceInfoTvAndComicDownloadPop.adapter.m3470(glanceInfoTvAndComicDownloadPop.sortList, glanceInfoTvAndComicDownloadPop.pos);
        Dialog dialog = glanceInfoTvAndComicDownloadPop.mDialogUpdate;
        ओऔईऔइएअओऐओ.औउऐऌ(dialog);
        dialog.dismiss();
        if (ईअअआऔऌएऌई.ईऌओओआऊउउईउ.ईऌओओआऊउउईउ(glanceInfoTvAndComicDownloadPop.streamid)) {
            return;
        }
        glanceInfoTvAndComicDownloadPop.m3287(glanceInfoTvAndComicDownloadPop.streamid);
    }

    public static final void m3274(GlanceInfoTvAndComicDownloadPop glanceInfoTvAndComicDownloadPop, View view) {
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(glanceInfoTvAndComicDownloadPop, "this$0");
        if (glanceInfoTvAndComicDownloadPop.tvSort.isEnabled()) {
            glanceInfoTvAndComicDownloadPop.tvSort.setEnabled(false);
            glanceInfoTvAndComicDownloadPop.tvSort.setText("正序");
        } else {
            glanceInfoTvAndComicDownloadPop.tvSort.setEnabled(true);
            glanceInfoTvAndComicDownloadPop.tvSort.setText("倒序");
        }
        ऌउऔअई.उअऊओऌइऊईऊ(glanceInfoTvAndComicDownloadPop.sortList);
        glanceInfoTvAndComicDownloadPop.adapter.notifyDataSetChanged();
        glanceInfoTvAndComicDownloadPop.rvList.scrollToPosition(0);
    }

    public static final void m3275(GlanceInfoTvAndComicDownloadPop glanceInfoTvAndComicDownloadPop, View view) {
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(glanceInfoTvAndComicDownloadPop, "this$0");
        glanceInfoTvAndComicDownloadPop.dismiss();
    }

    public static final SingleSource m3278(ऊओइओआएआआए r1, Single single) {
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(r1, "$tmp0");
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(single, "p0");
        return (SingleSource) r1.invoke(single);
    }

    @Override
    public void showAsDropDown(View view) {
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(view, "anchor");
        Rect rect = new Rect();
        view.getGlobalVisibleRect(rect);
        setHeight((view.getResources().getDisplayMetrics().heightPixels - rect.bottom) + C0920.m983(this.mContext));
        super.showAsDropDown(view);
    }

    public final void m3282(Context context, Activity activity, AdInfoDetailEntry adInfoDetailEntry, int i, VideoDetailEntity videoDetailEntity, int i2, TextView textView, boolean z) {
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(adInfoDetailEntry, "entry");
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(videoDetailEntity, "entry1");
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(textView, "textView");
        if ((z && adInfoDetailEntry.getNew_user_has_ad() == 0) || !C0914.m838()) {
            if (C0920.m980()) {
                return;
            }
            m3291(videoDetailEntity.getId(), this.sortList.get(i2).getCollection(), this.sortList.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.sortList.get(i2).getCollection());
    }

    public final List<VideoDownloadEntity> m3283() {
        return this.downloadEntityList;
    }

    public final void m3284(List<AdInfoDetailEntry> list, Context context, Activity activity, VideoDetailEntity videoDetailEntity, int i, TextView textView, int i2, boolean z) {
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(list, "adInfoDetailEntryList");
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(videoDetailEntity, "entry1");
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(textView, "textView");
        AdInfoDetailEntry adInfoDetailEntry = list.get(i2);
        if (adInfoDetailEntry.getAd_source_id() == 4) {
            if (adInfoDetailEntry.getNum() <= 0) {
                m3282(context, activity, adInfoDetailEntry, i2, videoDetailEntity, i, textView, z);
                return;
            } else if (adInfoDetailEntry.getNum() > C1508.m1340().m1368(30)) {
                m3282(context, activity, adInfoDetailEntry, i2, videoDetailEntity, i, textView, z);
                return;
            } else {
                int i3 = i2 + 1;
                m3284(list, context, activity, videoDetailEntity, i, textView, i3 == list.size() ? 0 : i3, z);
                return;
            }
        }
        if (adInfoDetailEntry.getAd_source_id() == 5) {
            if (adInfoDetailEntry.getNum() <= 0) {
                m3293(context, activity, adInfoDetailEntry, i2, videoDetailEntity, i, textView, z);
            } else if (adInfoDetailEntry.getNum() > C1508.m1340().m1368(103)) {
                m3293(context, activity, adInfoDetailEntry, i2, videoDetailEntity, i, textView, z);
            } else {
                int i4 = i2 + 1;
                m3284(list, context, activity, videoDetailEntity, i, textView, i4 == list.size() ? 0 : i4, z);
            }
        }
    }

    public final void m3285(Context context, List<? extends DownloadInfoEntry> list) {
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(list, "downloadInfos");
        int size = list.size();
        for (int i = 0; i < size; i++) {
            if (!ईअअआऔऌएऌई.ईऌओओआऊउउईउ.ईऌओओआऊउउईउ(list.get(i).getResource()) && ओऔईऔइएअओऐओ.ईऌओओआऊउउईउ(this.streamid, list.get(i).getResource())) {
                this.percent = String.valueOf(list.get(i).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) {
                GlanceInfoTvAndComicDownloadPop.m3261(GlanceInfoTvAndComicDownloadPop.this, view);
            }
        });
        TextView textView4 = this.tv_sure;
        ओऔईऔइएअओऐओ.औउऐऌ(textView4);
        textView4.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                GlanceInfoTvAndComicDownloadPop.m3273(GlanceInfoTvAndComicDownloadPop.this, view);
            }
        });
        Dialog dialog = this.mDialogUpdate;
        ओऔईऔइएअओऐओ.औउऐऌ(dialog);
        dialog.show();
    }

    public final void m3286(int i, int i2, int i3, TextView textView, VideoDetailEntity videoDetailEntity) {
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(textView, "textView");
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(videoDetailEntity, "entry");
        String vod_token = this.sortList.get(i3).getVod_token();
        ओऔईऔइएअओऐओ.ओइऌऊएएऐ(vod_token, "sortList[position].vod_token");
        String cur_time = this.sortList.get(i3).getCur_time();
        ओऔईऔइएअओऐओ.ओइऌऊएएऐ(cur_time, "sortList[position].cur_time");
        m3290(vod_token, cur_time, i, i2, i3, textView, videoDetailEntity);
    }

    public final void m3287(String str) {
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(str, VideoDownloadEntity.STREAMID);
        String str2 = "http://127.0.0.1:" + MyApplication.f3650 + "/download_control?resource=" + str + "&type=5";
        amc.cd.ऋईऋइऔएऐऊ.औउऐऌ.इईऔओऋआऐइऐ("wangyi", "删除链接为:" + str2);
        C0936.m989(str2, new C1907(str));
    }

    public final Handler getMHandler() {
        return this.mHandler;
    }

    public final void m3289(String str, Context context, int i) {
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(str, "url");
        amc.cd.ऋईऋइऔएऐऊ.औउऐऌ.इईऔओऋआऐइऐ("wangyi", "下载链接为:" + str);
        C0936.m989(str, new C1908());
    }

    public final void m3290(String str, String str2, int i, int i2, int i3, TextView textView, VideoDetailEntity videoDetailEntity) {
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(str, VideoDownloadEntity.VOD_TOKEN);
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(str2, "curTime");
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(textView, "textView");
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(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 GlanceInfoTvAndComicDownloadPop$getDownloadVerifyInfo$1 glanceInfoTvAndComicDownloadPop$getDownloadVerifyInfo$1 = new GlanceInfoTvAndComicDownloadPop$getDownloadVerifyInfo$1(c0345);
        Single compose = m2889.compose(new SingleTransformer() {
            public final SingleSource apply(Single single) {
                SingleSource m3264;
                m3264 = GlanceInfoTvAndComicDownloadPop.m3264(glanceInfoTvAndComicDownloadPop$getDownloadVerifyInfo$1, single);
                return m3264;
            }
        });
        final GlanceInfoTvAndComicDownloadPop$getDownloadVerifyInfo$2 glanceInfoTvAndComicDownloadPop$getDownloadVerifyInfo$2 = new GlanceInfoTvAndComicDownloadPop$getDownloadVerifyInfo$2(c0345);
        compose.compose(new SingleTransformer() {
            public final SingleSource apply(Single single) {
                SingleSource m3255;
                m3255 = GlanceInfoTvAndComicDownloadPop.m3255(glanceInfoTvAndComicDownloadPop$getDownloadVerifyInfo$2, single);
                return m3255;
            }
        }).subscribe(new C1904(i3, textView, videoDetailEntity));
    }

    public final void m3291(int i, int i2, int i3, int i4, TextView textView, VideoDetailEntity videoDetailEntity) {
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(textView, "textView");
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(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 GlanceInfoTvAndComicDownloadPop$getDownloadStatisInfo$1 glanceInfoTvAndComicDownloadPop$getDownloadStatisInfo$1 = new GlanceInfoTvAndComicDownloadPop$getDownloadStatisInfo$1(c0345);
        Single compose = m2895.compose(new SingleTransformer() {
            public final SingleSource apply(Single single) {
                SingleSource m3278;
                m3278 = GlanceInfoTvAndComicDownloadPop.m3278(glanceInfoTvAndComicDownloadPop$getDownloadStatisInfo$1, single);
                return m3278;
            }
        });
        final GlanceInfoTvAndComicDownloadPop$getDownloadStatisInfo$2 glanceInfoTvAndComicDownloadPop$getDownloadStatisInfo$2 = new GlanceInfoTvAndComicDownloadPop$getDownloadStatisInfo$2(c0345);
        compose.compose(new SingleTransformer() {
            public final SingleSource apply(Single single) {
                SingleSource m3254;
                m3254 = GlanceInfoTvAndComicDownloadPop.m3254(glanceInfoTvAndComicDownloadPop$getDownloadStatisInfo$2, single);
                return m3254;
            }
        }).subscribe(new C1902(i, i3, i4, textView, videoDetailEntity));
    }

    public final void m3292(int i, TextView textView, final VideoDetailEntity videoDetailEntity, final VideoDetailBean videoDetailBean) {
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(textView, "textView");
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(videoDetailEntity, "entry");
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(videoDetailBean, "verifyEntry");
        if (C0914.m853() > 0) {
            C0914.m846(C0914.m853() - 1);
        }
        this.adapter.m3469(this.sortList, i);
        int size = this.videoBeanList.size();
        for (int i2 = 0; i2 < size; i2++) {
            if (this.sortList.get(i).getCollection() == this.videoBeanList.get(i2).getCollection()) {
                this.sortPos = i2;
            }
        }
        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() {
                GlanceInfoTvAndComicDownloadPop.m3262(VideoDetailBean.this, this, videoDetailEntity);
            }
        });
    }

    public final void m3293(Context context, Activity activity, AdInfoDetailEntry adInfoDetailEntry, int i, VideoDetailEntity videoDetailEntity, int i2, TextView textView, boolean z) {
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(adInfoDetailEntry, "entry");
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(videoDetailEntity, "entry1");
        ओऔईऔइएअओऐओ.ऌऔऌआउउऊआ(textView, "textView");
        if ((z && adInfoDetailEntry.getNew_user_has_ad() == 0) || C0914.m873() != 1 || C0920.m972(C0914.m881(), adInfoDetailEntry.getInterval_time())) {
            m3291(videoDetailEntity.getId(), this.sortList.get(i2).getCollection(), this.sortList.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.sortList.get(i2).getCollection());
    }
}