toast context判断 禁止context.getString 操作
This commit is contained in:
@ -101,17 +101,17 @@ public class ShareUtils {
|
||||
public IUiListener QqShareListener = new IUiListener() {
|
||||
@Override
|
||||
public void onComplete(Object o) {
|
||||
Utils.toast(mContext, mContext.getString(R.string.share_success_hint));
|
||||
Utils.toast(mContext, R.string.share_success_hint);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(UiError uiError) {
|
||||
Utils.toast(mContext, mContext.getString(R.string.share_fail_hint));
|
||||
Utils.toast(mContext, R.string.share_fail_hint);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCancel() {
|
||||
Utils.toast(mContext, mContext.getString(R.string.share_cancel_hint));
|
||||
Utils.toast(mContext, R.string.share_cancel_hint);
|
||||
}
|
||||
};
|
||||
|
||||
@ -215,7 +215,7 @@ public class ShareUtils {
|
||||
|
||||
//QQ分享
|
||||
private void qqShare() {
|
||||
Utils.toast(mContext, mContext.getString(R.string.share_skip));
|
||||
Utils.toast(mContext, R.string.share_skip);
|
||||
Bundle params = new Bundle();
|
||||
|
||||
switch (mShareType) {
|
||||
@ -243,7 +243,7 @@ public class ShareUtils {
|
||||
|
||||
//微信好友分享
|
||||
private void wechatShare() {
|
||||
Utils.toast(mContext, mContext.getString(R.string.share_skip));
|
||||
Utils.toast(mContext, R.string.share_skip);
|
||||
WXWebpageObject webpage = new WXWebpageObject();
|
||||
WXMediaMessage msg = new WXMediaMessage(webpage);
|
||||
webpage.webpageUrl = shareUrl;
|
||||
@ -345,7 +345,7 @@ public class ShareUtils {
|
||||
|
||||
//QQ空间分享
|
||||
private void qZoneShare() {
|
||||
Utils.toast(mContext, mContext.getString(R.string.share_skip));
|
||||
Utils.toast(mContext, R.string.share_skip);
|
||||
Bundle params = new Bundle();
|
||||
|
||||
switch (mShareType) {
|
||||
@ -377,7 +377,7 @@ public class ShareUtils {
|
||||
|
||||
//微信朋友圈分享
|
||||
private void wechatMomentsShare() {
|
||||
Utils.toast(mContext, mContext.getString(R.string.share_skip));
|
||||
Utils.toast(mContext, R.string.share_skip);
|
||||
WXWebpageObject webpage = new WXWebpageObject();
|
||||
WXMediaMessage msg = new WXMediaMessage(webpage);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user