|
|
@@ -379,16 +379,18 @@ public class ActInvitation extends BaseUMActivity {
|
|
|
private SparseArray<View> viewList = new SparseArray<>();
|
|
|
|
|
|
private void init(final String url, final String description) {
|
|
|
- gridLayoutManager = new GridLayoutManager(this, 5);
|
|
|
+ if (forMission == 0) {
|
|
|
+ gridLayoutManager = new GridLayoutManager(this, 5);
|
|
|
+ } else {
|
|
|
+ gridLayoutManager = new GridLayoutManager(this, 3);
|
|
|
+ }
|
|
|
ask_share_list.setLayoutManager(gridLayoutManager);
|
|
|
final List<String> list = ListUtil.emptyList();
|
|
|
- list.add(ShareLinkConfig.FACE_TO_FACE);
|
|
|
+ final List<String> imgList = ListUtil.emptyList();
|
|
|
+ final List<String> nameList = ListUtil.emptyList();
|
|
|
list.add(ShareLinkConfig.WX);
|
|
|
list.add(ShareLinkConfig.QQ);
|
|
|
list.add(ShareLinkConfig.WEIXIN_CIRCLE);
|
|
|
- list.add(ShareLinkConfig.COPY_SHARE_LINK);
|
|
|
- final List<String> imgList = ListUtil.emptyList();
|
|
|
- final List<String> nameList = ListUtil.emptyList();
|
|
|
imgList.add("share_wx");
|
|
|
imgList.add("share_qq");
|
|
|
imgList.add("share_weixin_circle");
|
|
|
@@ -396,6 +398,8 @@ public class ActInvitation extends BaseUMActivity {
|
|
|
nameList.add("QQ好友");
|
|
|
nameList.add("朋友圈");
|
|
|
if (forMission == 0) {
|
|
|
+ list.add(0, ShareLinkConfig.FACE_TO_FACE);
|
|
|
+ list.add(ShareLinkConfig.COPY_SHARE_LINK);
|
|
|
imgList.add(0, "share_face_to_face");
|
|
|
imgList.add("share_copy_share_link");
|
|
|
nameList.add(0, "面对面");
|