18034727885
2026-06-11 4780eda7be5953eedf2f77fba6d1fff1f9f64963
xldUtils/src/main/java/cn/sinata/xldutils/activitys/BaseActivity.java
@@ -28,8 +28,6 @@
    private ProgressDialog dialog;
    public boolean isDestroy = false;
    protected ViewHolder mHolder;
    protected Context mContext;//上下文
    protected int mScreenWidth;//设备宽
    protected int mScreenHeight;//设备高
    public static final int REQUEST_NORMAL = 43214;
@@ -86,9 +84,7 @@
        mScreenHeight = DensityUtil.getDeviceHeight(this);
        mScreenWidth = DensityUtil.getDeviceWidth(this);
        mContext = this;
        isDestroy = false;
        mHolder = new ViewHolder(this);
        mNetChangeObserver = new NetChangeObserver() {
            @Override
@@ -128,9 +124,6 @@
        }
        if (mHolder!=null){
            mHolder.unBind();
        }
        isDestroy = true;
        dismissDialog();
        if (!compositeSubscription.isDisposed()){
@@ -200,7 +193,7 @@
     */
    @SuppressWarnings("unchecked")
    protected <T extends View> T bind(int resId){
        return  (T) mHolder.bind(resId);
        return  (T) findViewById(resId);
    }
    /**
@@ -228,7 +221,7 @@
            return;
        }
        if(dialog==null){
            dialog=new ProgressDialog(mContext,R.style.Theme_ProgressDialog);
            dialog=new ProgressDialog(this,R.style.Theme_ProgressDialog);
        }
        dialog.setCanceledOnTouchOutside(canCancel);
        dialog.setMessage(msg);