修复关注游戏时获取key失败, 游戏右划分享增加成绩单

This commit is contained in:
khy
2017-03-13 10:21:21 +08:00
parent fba0a6ec71
commit 62effd1cc1
12 changed files with 265 additions and 229 deletions

View File

@ -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();