package com.letv.android.client.ui.download;

import android.content.BroadcastReceiver;
import android.content.IntentFilter;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.view.ViewGroup.MarginLayoutParams;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.RelativeLayout;
import android.widget.ScrollView;
import android.widget.TextView;
import com.letv.android.client.LetvApplication;
import com.letv.android.client.R;
import com.letv.android.client.commonlib.activity.WrapActivity.IBatchDel;
import com.letv.android.client.utils.UIs;
import com.letv.android.client.view.CustomLoadingDialog;
import com.letv.android.client.worldcup.LetvAlarmService;
import com.letv.core.bean.DownloadDBListBean;
import com.letv.core.bean.DownloadDBListBean.DownloadDBBean;
import com.letv.core.constant.LetvConstant.DialogMsgConstantId;
import com.letv.core.constant.PlayConstant.LiveType;
import com.letv.core.db.PreferencesManager;
import com.letv.core.utils.LetvTools;
import com.letv.core.utils.LogInfo;
import com.letv.download.manager.StoreManager;
import com.letv.download.util.L;
import com.letv.hackdex.VerifyLoad;
import com.letv.hotfixlib.HotFix;

public class MyRandomSeeFragment extends Fragment implements MyRandomSeeDoc$onDownloadDelCallBack, IBatchDel {
    private static final String TAG = MyRandomSeeFragment.class.getSimpleName();
    protected BroadcastReceiver downloadReceiver;
    private boolean isDelete;
    private boolean isOpen;
    private boolean isViewCreated;
    private boolean isVisibleToUser;
    private MyDownloadActivity mActivity;
    private RandomSeeDownloadAdapter mAdapter;
    private CustomLoadingDialog mDialog;
    private DownloadDBListBean mDownloadList;
    private Button mFootCloseBtn;
    private View mFooterLayout;
    private ImageView mImageVWorldCupBg;
    private ListView mListView;
    private MyRandomSeeDoc mMyRandomSeeDoc;
    private ScrollView mNullScrollView;
    private LinearLayout mNullTip;
    MyRandomSeeDoc$onDownloadDelCallBack mOnDownloadDelCallBack;
    private Button mOpenWorldCupBtn;
    private View mOperationBarView;
    private Button mPauseAllBtn;
    private Button mStartAllBtn;
    private TextView mTextOpenSubTip;
    private TextView mTextOpenTip;
    private ViewPager mViewPager;
    private OnClickListener onClick;
    private View root;
    private RelativeLayout rootWatchAlertLayout;

    public MyRandomSeeFragment() {
        if (HotFix.PREVENT_VERIFY) {
            System.out.println(VerifyLoad.class);
        }
        this.isViewCreated =