修复关注游戏时获取key失败, 游戏右划分享增加成绩单
This commit is contained in:
@ -79,6 +79,7 @@ public class MessageShareUtils {
|
||||
private int itemSize;
|
||||
private int gridCount;
|
||||
private int marImg;
|
||||
private int shareType;
|
||||
|
||||
public static MessageShareUtils getInstance(Context context) {
|
||||
if (instance == null) {
|
||||
@ -93,6 +94,7 @@ public class MessageShareUtils {
|
||||
public void showShareWindows(View view, Bitmap bitmap, String picName, int shareType){
|
||||
this.shareBm = bitmap;
|
||||
this.picName = picName;
|
||||
this.shareType = shareType;
|
||||
this.activity= (Activity) context;
|
||||
|
||||
if (shareType == 2) {
|
||||
@ -210,11 +212,15 @@ public class MessageShareUtils {
|
||||
switch (holder.getPosition()){
|
||||
case 0:
|
||||
wechatSahre();
|
||||
activity.finish();
|
||||
if (shareType != 2) {
|
||||
activity.finish();
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
wechatMomentsSahre();
|
||||
activity.finish();
|
||||
if (shareType != 2) {
|
||||
activity.finish();
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
qqSahre();
|
||||
|
||||
Reference in New Issue
Block a user