| | |
| | | mAquery.id(R.id.ll_double).clicked(new View.OnClickListener() { |
| | | @Override |
| | | public void onClick(View v) { |
| | | if( mAquery.id(R.id.fl_double_btn).getView().getVisibility()!=View.VISIBLE){ |
| | | if (mAquery.id(R.id.fl_double_btn).getView().getVisibility() != View.VISIBLE) { |
| | | Toast.makeText(mContext, "未加倍金币,会自动入账。", Toast.LENGTH_SHORT).show(); |
| | | } |
| | | } |
| | |
| | | DialogUtil.dismiss(mDialog); |
| | | } |
| | | |
| | | if (!UserUtil.isLogin(mContext)) { |
| | | //去登录 |
| | | FlutterPageUtil.jumpPage("LoginPage", null, null); |
| | | return; |
| | | } |
| | | |
| | | if (VideoGoldCornUtil.isDoubleNotify(mContext)) { |
| | | startDoubleTask(); |
| | | return; |
| | | } |
| | | |
| | | |
| | | //TODO 弹框 |
| | | mDialog = new GoldCornDoubleDialog.Builder(mActivity).setGoldCorn(VideoGoldCornUtil.getVideoPlayCircle(mContext) * VideoGoldCornUtil.getPrice(mContext)).setCallBack(new GoldCornDoubleDialog.GoldCornDoubleCallBack() { |
| | | @Override |
| | | public void onPositive(boolean notify) { |
| | |
| | | if (info.isFinish()) { |
| | | //任务完成后要隐藏覆盖物 |
| | | mAquery.id(R.id.fl_cover).visibility(View.GONE); |
| | | Toast.makeText(mContext, "任务完成", Toast.LENGTH_LONG).show(); |
| | | } else { |
| | | mAquery.id(R.id.fl_cover).visibility(View.VISIBLE); |
| | | } |
| | | |
| | | } |
| | | } |
| | | }); |