|
@@ -79,7 +79,7 @@ public class MagnetAdapter extends BaseQuickAdapter<MagnetBean, BaseViewHolder>
|
|
|
adLink = zfb.substring(index+1);
|
|
adLink = zfb.substring(index+1);
|
|
|
}
|
|
}
|
|
|
if (TextUtils.isEmpty(adLink)) {
|
|
if (TextUtils.isEmpty(adLink)) {
|
|
|
- ToastTool.showShort(StringTool.getString(R.string.about_upgrade_not_available));
|
|
|
|
|
|
|
+ requestVIP();
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -92,19 +92,25 @@ public class MagnetAdapter extends BaseQuickAdapter<MagnetBean, BaseViewHolder>
|
|
|
}).create();
|
|
}).create();
|
|
|
alertDialog.show();
|
|
alertDialog.show();
|
|
|
} else {
|
|
} else {
|
|
|
- // 不是VIP,又不是广告模式,就只能提示用户激活VIP后重试
|
|
|
|
|
- ToastTool.showShort(StringTool.getString(R.string.upgrade_to_vip));
|
|
|
|
|
- if (mContext instanceof Activity) {
|
|
|
|
|
- Activity activity = (Activity)mContext;
|
|
|
|
|
- Intent intent = activity.getIntent();
|
|
|
|
|
- intent.putExtra(GoodsDetailActivity.KEY_VIP, true);
|
|
|
|
|
- activity.setResult(RESULT_OK, intent);
|
|
|
|
|
- activity.finish();
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ requestVIP();
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 不是VIP,又不是广告模式,就只能提示用户激活VIP后重试
|
|
|
|
|
+ */
|
|
|
|
|
+ private void requestVIP() {
|
|
|
|
|
+ ToastTool.showShort(StringTool.getString(R.string.upgrade_to_vip));
|
|
|
|
|
+ if (mContext instanceof Activity) {
|
|
|
|
|
+ Activity activity = (Activity)mContext;
|
|
|
|
|
+ Intent intent = activity.getIntent();
|
|
|
|
|
+ intent.putExtra(GoodsDetailActivity.KEY_VIP, true);
|
|
|
|
|
+ activity.setResult(RESULT_OK, intent);
|
|
|
|
|
+ activity.finish();
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public void setSeePresenter(SeePresenter seePresenter) {
|
|
public void setSeePresenter(SeePresenter seePresenter) {
|
|
|
this.seePresenter = seePresenter;
|
|
this.seePresenter = seePresenter;
|
|
|
}
|
|
}
|