From 415a53235197b86e1871be142e98436d13050b17 Mon Sep 17 00:00:00 2001 From: hch <16607480311@163.com> Date: Thu, 28 Mar 2024 13:06:19 +0800 Subject: [PATCH 1/9] =?UTF-8?q?fix=20[=E4=BF=AE=E5=A4=8D-=E7=B2=BE?= =?UTF-8?q?=E5=BD=A9=E7=9B=B4=E6=92=AD=E6=98=BE=E7=A4=BA=E4=BD=8D=E7=BD=AE?= =?UTF-8?q?]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gradle.properties | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index edf2e18a5..30fe8c5f9 100644 --- a/gradle.properties +++ b/gradle.properties @@ -24,6 +24,6 @@ android.nonTransitiveRClass=false systemProp.http.proxyHost=127.0.0.1 systemProp.https.proxyHost=127.0.0.1 -systemProp.https.proxyPort=7890 -systemProp.http.proxyPort=7890 +systemProp.https.proxyPort=10809 +systemProp.http.proxyPort=10809 #android.enableR8.fullMode=true \ No newline at end of file From 0481db2570e1cfad0eb8ecbe6112ac4ab3921b8f Mon Sep 17 00:00:00 2001 From: hch <16607480311@163.com> Date: Thu, 28 Mar 2024 13:06:44 +0800 Subject: [PATCH 2/9] =?UTF-8?q?fix=20[=E4=BF=AE=E5=A4=8D-=E7=B2=BE?= =?UTF-8?q?=E5=BD=A9=E7=9B=B4=E6=92=AD=E6=98=BE=E7=A4=BA=E4=BD=8D=E7=BD=AE?= =?UTF-8?q?]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yunbao/main/activity/MainActivity.java | 39 +++++++++---------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/main/src/main/java/com/yunbao/main/activity/MainActivity.java b/main/src/main/java/com/yunbao/main/activity/MainActivity.java index 59a832330..a9acf35bc 100644 --- a/main/src/main/java/com/yunbao/main/activity/MainActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/MainActivity.java @@ -519,12 +519,9 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene //选中监听 mTabButtonGroup.addTabButtonGroupChangeListener((view, index) -> { - if (index == 0) { - floatBanner.setVisibility(View.GONE); - floatRedPacket.setVisibility(View.GONE); - floatWarOrder.setVisibility(View.GONE); - findViewById(R.id.banner_click).setVisibility(View.GONE); - isfloatBannernet = false; + if (index == 1) { + isfloatBannernet = true; + initAnchorRecommendBanner(); } else if (index == 2) { floatBanner.setVisibility(View.GONE); floatRedPacket.setVisibility(View.GONE); @@ -533,8 +530,11 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene isfloatBannernet = false; if (mainMessageViewHolder != null) mainMessageViewHolder.onResume(); } else { - isfloatBannernet = true; - initAnchorRecommendBanner(); + floatBanner.setVisibility(View.GONE); + floatRedPacket.setVisibility(View.GONE); + floatWarOrder.setVisibility(View.GONE); + findViewById(R.id.banner_click).setVisibility(View.GONE); + isfloatBannernet = false; } }); //获取指导员账号 @@ -545,20 +545,19 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene } private void showFirstLogin() { - LiveNetManager.get(mContext) - .isFirstLogin(new com.yunbao.common.http.base.HttpCallback() { - @Override - public void onSuccess(FirstLoginBean data) { - if (data.getStatus() == 0) { - mContext.startActivity(new Intent(mContext, CompleteUserInfoActivity.class)); - } - } + LiveNetManager.get(mContext).isFirstLogin(new com.yunbao.common.http.base.HttpCallback() { + @Override + public void onSuccess(FirstLoginBean data) { + if (data.getStatus() == 0) { + mContext.startActivity(new Intent(mContext, CompleteUserInfoActivity.class)); + } + } - @Override - public void onError(String error) { + @Override + public void onError(String error) { - } - }); + } + }); } /** From 54c97251b8b046a649dfea5fad14461313623ecf Mon Sep 17 00:00:00 2001 From: hch <16607480311@163.com> Date: Thu, 28 Mar 2024 13:07:17 +0800 Subject: [PATCH 3/9] =?UTF-8?q?Revert=20"fix=20[=E4=BF=AE=E5=A4=8D-?= =?UTF-8?q?=E7=B2=BE=E5=BD=A9=E7=9B=B4=E6=92=AD=E6=98=BE=E7=A4=BA=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE]"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 415a53235197b86e1871be142e98436d13050b17. --- gradle.properties | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 30fe8c5f9..edf2e18a5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -24,6 +24,6 @@ android.nonTransitiveRClass=false systemProp.http.proxyHost=127.0.0.1 systemProp.https.proxyHost=127.0.0.1 -systemProp.https.proxyPort=10809 -systemProp.http.proxyPort=10809 +systemProp.https.proxyPort=7890 +systemProp.http.proxyPort=7890 #android.enableR8.fullMode=true \ No newline at end of file From 2e9d1cb3dd04a7b4448a094680c4cbc8e5ca3bc8 Mon Sep 17 00:00:00 2001 From: hch <16607480311@163.com> Date: Thu, 28 Mar 2024 13:36:20 +0800 Subject: [PATCH 4/9] =?UTF-8?q?fix=20[=E4=BF=AE=E5=A4=8D-=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E4=B8=BB=E9=A1=B5-=E7=82=B9=E5=87=BB=E8=A7=86?= =?UTF-8?q?=E9=A2=91-=E6=97=A0=E6=B3=95=E8=B7=B3=E8=BD=AC=E9=97=AE?= =?UTF-8?q?=E9=A2=98]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/adapter/UserCommunityAdapter.java | 22 +++++++---- .../main/activity/UserHomeActivity.java | 39 ++++++++++++------- 2 files changed, 39 insertions(+), 22 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/adapter/UserCommunityAdapter.java b/common/src/main/java/com/yunbao/common/adapter/UserCommunityAdapter.java index 465885796..5e58c426e 100644 --- a/common/src/main/java/com/yunbao/common/adapter/UserCommunityAdapter.java +++ b/common/src/main/java/com/yunbao/common/adapter/UserCommunityAdapter.java @@ -17,6 +17,7 @@ import com.alibaba.fastjson.JSONObject; import com.makeramen.roundedimageview.RoundedImageView; import com.yunbao.common.R; import com.yunbao.common.activity.AbsActivity; +import com.yunbao.common.bean.ActiveBean; import com.yunbao.common.bean.ActiveOtherBean; import com.yunbao.common.dialog.ImagePreviewDialog; import com.yunbao.common.glide.ImgLoader; @@ -27,7 +28,7 @@ import java.util.ArrayList; import java.util.List; public class UserCommunityAdapter extends RecyclerView.Adapter { - private List commentBeanList; + private List commentBeanList; private Context mContext; private onItemClickListener onItemClickListener; private boolean isMe; @@ -36,7 +37,7 @@ public class UserCommunityAdapter extends RecyclerView.Adapter { this.onItemClickListener = onItemClickListener; } - public UserCommunityAdapter(Context content, List commentBeanList, boolean isMe) { + public UserCommunityAdapter(Context content, List commentBeanList, boolean isMe) { this.mContext = content; this.commentBeanList = commentBeanList; this.isMe = isMe; @@ -90,7 +91,7 @@ public class UserCommunityAdapter extends RecyclerView.Adapter { @Override public void onClick(View v) { if (onItemClickListener != null) { - onItemClickListener.onItemMore((ActiveOtherBean) v.getTag(), getPosition()); + onItemClickListener.onItemMore((ActiveBean) v.getTag(), getPosition()); } } }); @@ -98,14 +99,19 @@ public class UserCommunityAdapter extends RecyclerView.Adapter { @Override public void onClick(View v) { if (onItemClickListener != null) { - onItemClickListener.onImgItem((ActiveOtherBean) v.getTag(), getPosition()); + ActiveBean activeOtherBean = (ActiveBean) v.getTag(); + if (activeOtherBean.getImg_or_video().equals("1")) { + onItemClickListener.onImgItem(activeOtherBean, getPosition()); + } else { + onItemClickListener.onItemVideo(activeOtherBean, getPosition()); + } } } }); } @SuppressLint("SetTextI18n") - public void setData(ActiveOtherBean bean) { + public void setData(ActiveBean bean) { itemView.setTag(bean); mAvatar.setTag(bean); more_del.setTag(bean); @@ -161,8 +167,10 @@ public class UserCommunityAdapter extends RecyclerView.Adapter { } public interface onItemClickListener { - void onImgItem(ActiveOtherBean activeBean, int position); + void onImgItem(ActiveBean activeBean, int position); - void onItemMore(ActiveOtherBean activeBean, int position); + void onItemMore(ActiveBean activeBean, int position); + + void onItemVideo(ActiveBean activeBean, int position); } } diff --git a/main/src/main/java/com/yunbao/main/activity/UserHomeActivity.java b/main/src/main/java/com/yunbao/main/activity/UserHomeActivity.java index 8070f6ed0..56d26b854 100644 --- a/main/src/main/java/com/yunbao/main/activity/UserHomeActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/UserHomeActivity.java @@ -71,6 +71,8 @@ import com.yunbao.common.views.UserHomeImgsViewHolder; import com.yunbao.live.activity.LiveRyAnchorActivity; import com.yunbao.live.dialog.GiftWallDialog; import com.yunbao.live.views.ShowBigPhoto; +import com.yunbao.video.activity.VideoPlayActivity; +import com.yunbao.video.utils.VideoStorge; import java.io.File; import java.util.ArrayList; @@ -152,7 +154,7 @@ public class UserHomeActivity extends AbsActivity { private LinearLayout bottomEditLayout; private UploadQnImpl mUploadStrategy; private List videoList = new ArrayList<>(); - List beanList = new ArrayList<>(); + List beanList = new ArrayList<>(); private UserHomeImgsViewHolder userHomeImgsViewHolder; private Map gotoRoomKey = new HashMap<>(); @@ -183,26 +185,21 @@ public class UserHomeActivity extends AbsActivity { CommonHttpUtil.getOtherDynamicList(uid, new com.yunbao.common.http.HttpCallback() { @Override public void onSuccess(int code, String msg, String[] info) { - beanList = JSONArray.parseArray(Arrays.toString(info), ActiveOtherBean.class); + beanList = JSONArray.parseArray(Arrays.toString(info), ActiveBean.class); + for (int j = 0; j < beanList.size(); j++) { + if (beanList.get(j).getImg_or_video().equals("2")) { + videoList.add(beanList.get(j)); + } + } UserCommunityAdapter userCommunityAdapter = new UserCommunityAdapter(mContext, beanList, isMe); userCommunityAdapter.setOnItemClickListener(new UserCommunityAdapter.onItemClickListener() { @Override - public void onImgItem(ActiveOtherBean bean, int position) { - if (bean.getImg_or_video().equals("1")) { - RouteUtil.forwardCommunity(bean.getId()); - } else { - /*int playPosition = 0; - for (int i = 0; i < videoList.size(); i++) { - if (videoList.get(i).getId().equals(bean.getId())) { - playPosition = i; - } - } - RouteUtil.forwardVideoActivity();*/ - } + public void onImgItem(ActiveBean bean, int position) { + RouteUtil.forwardCommunity(bean.getId()); } @Override - public void onItemMore(ActiveOtherBean bean, int position) { + public void onItemMore(ActiveBean bean, int position) { DialogUitl.showSimpleDialog(mContext, getResources().getString(com.yunbao.main.R.string.msg_del_sure), false, new DialogUitl.SimpleCallback() { @Override public void onConfirmClick(Dialog dialog, String content) { @@ -218,6 +215,18 @@ public class UserHomeActivity extends AbsActivity { } }); } + + @Override + public void onItemVideo(ActiveBean activeBean, int position) { + int playPosition = 0; + for (int i = 0; i < videoList.size(); i++) { + if (videoList.get(i).getId().equals(activeBean.getId())) { + playPosition = i; + } + } + VideoStorge.getInstance().put(Constants.VIDEO_HOME, videoList); + VideoPlayActivity.forward(mContext, playPosition, Constants.VIDEO_HOME, 1); + } }); communityRecyclerView.setAdapter(userCommunityAdapter); } From ff57432814c501dac5db70b007995f68d07ec3af Mon Sep 17 00:00:00 2001 From: hch <16607480311@163.com> Date: Thu, 28 Mar 2024 13:37:55 +0800 Subject: [PATCH 5/9] =?UTF-8?q?fix=20[=E4=BF=AE=E5=A4=8D-=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E4=B8=BB=E9=A1=B5-=E5=8A=A8=E6=80=81=E5=A4=B4?= =?UTF-8?q?=E5=83=8F=E5=8F=98=E5=BD=A2=E9=97=AE=E9=A2=98]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/main/res/layout/activity_user_community_item.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/common/src/main/res/layout/activity_user_community_item.xml b/common/src/main/res/layout/activity_user_community_item.xml index 330a6eed8..881e7f952 100644 --- a/common/src/main/res/layout/activity_user_community_item.xml +++ b/common/src/main/res/layout/activity_user_community_item.xml @@ -19,6 +19,7 @@ android:id="@+id/avatar" android:layout_width="40dp" android:layout_height="40dp" + android:scaleType="centerCrop" android:src="@mipmap/icon_data_empty" app:riv_oval="true" /> From 4f590a78a883c85284c8b7db337cc138885814b4 Mon Sep 17 00:00:00 2001 From: hch <16607480311@163.com> Date: Thu, 28 Mar 2024 13:40:28 +0800 Subject: [PATCH 6/9] =?UTF-8?q?fix=20[=E4=BF=AE=E5=A4=8D-=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E4=B8=BB=E9=A1=B5-=E8=87=AA=E5=B7=B1=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E4=B8=BB=E9=A1=B5=E7=9A=84=E4=B8=89=E4=B8=AA=E7=82=B9?= =?UTF-8?q?=E8=A6=81=E5=8E=BB=E6=8E=89]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/main/res/layout/activity_user_home.xml | 3 ++- .../main/java/com/yunbao/main/activity/UserHomeActivity.java | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/common/src/main/res/layout/activity_user_home.xml b/common/src/main/res/layout/activity_user_home.xml index 27c6f6344..4004f148f 100644 --- a/common/src/main/res/layout/activity_user_home.xml +++ b/common/src/main/res/layout/activity_user_home.xml @@ -800,7 +800,8 @@ android:id="@+id/setting" android:layout_width="30dp" android:layout_height="30dp" - android:src="@mipmap/icon_right_gray" /> + android:src="@mipmap/icon_right_gray" + android:visibility="invisible" /> diff --git a/main/src/main/java/com/yunbao/main/activity/UserHomeActivity.java b/main/src/main/java/com/yunbao/main/activity/UserHomeActivity.java index 56d26b854..d66be944e 100644 --- a/main/src/main/java/com/yunbao/main/activity/UserHomeActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/UserHomeActivity.java @@ -249,6 +249,7 @@ public class UserHomeActivity extends AbsActivity { likeCount.setText(String.valueOf(userInfo.getUserHomeTopInfo().getUser_love_num()));//关注数量 if (isMe) { + findViewById(R.id.setting).setVisibility(View.VISIBLE); bottomEditLayout.setVisibility(View.VISIBLE); imgUp.setVisibility(View.VISIBLE); imgLabel.setVisibility(View.VISIBLE); From 1d9930ed26b0dfefa712bdc17a1f441850283b6d Mon Sep 17 00:00:00 2001 From: hch <16607480311@163.com> Date: Thu, 28 Mar 2024 15:23:43 +0800 Subject: [PATCH 7/9] =?UTF-8?q?fix=20[=E4=BF=AE=E5=A4=8D-=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E4=B8=BB=E9=A1=B5-=E6=A0=87=E7=AD=BE=E9=A2=9C?= =?UTF-8?q?=E8=89=B2=E9=97=AE=E9=A2=98=EF=BC=8C=E8=A7=86=E9=A2=91=E7=82=B9?= =?UTF-8?q?=E8=B5=9E=E6=95=B0=E9=87=8F+1=E9=97=AE=E9=A2=98]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/main/res/layout/adapter_item_tag.xml | 2 +- .../java/com/yunbao/video/views/VideoPlayWrapViewHolder.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/main/res/layout/adapter_item_tag.xml b/common/src/main/res/layout/adapter_item_tag.xml index 716856e6f..a276246d3 100644 --- a/common/src/main/res/layout/adapter_item_tag.xml +++ b/common/src/main/res/layout/adapter_item_tag.xml @@ -15,7 +15,7 @@ android:paddingEnd="15dp" android:paddingBottom="5dp" android:text="标签" - android:textColor="@color/black2" + android:textColor="#C38764" android:textSize="11dp" /> diff --git a/video/src/main/java/com/yunbao/video/views/VideoPlayWrapViewHolder.java b/video/src/main/java/com/yunbao/video/views/VideoPlayWrapViewHolder.java index 7a44eae3b..11bd08bad 100644 --- a/video/src/main/java/com/yunbao/video/views/VideoPlayWrapViewHolder.java +++ b/video/src/main/java/com/yunbao/video/views/VideoPlayWrapViewHolder.java @@ -441,6 +441,7 @@ public class VideoPlayWrapViewHolder extends AbsViewHolder implements View.OnCli } String isLike = mVideoBean.getIs_love().equals("1") ? "0" : "1"; mVideoBean.setIs_love(isLike); + mLikeNum.setText(String.valueOf(mVideoBean.getLove_num())); EventBus.getDefault().post(new VideoLikeEvent(mVideoBean.getId(), Integer.parseInt(mVideoBean.getIs_love()), mVideoBean.getLove_num())); if (mVideoBean.getIs_love().equals("1")) { mBtnLike.setImageResource(R.mipmap.icon_video_zan_new02); From b975e5864f2bef0483db44e225425dcce8824b0c Mon Sep 17 00:00:00 2001 From: hch <16607480311@163.com> Date: Thu, 28 Mar 2024 15:49:11 +0800 Subject: [PATCH 8/9] =?UTF-8?q?fix=20[=E4=BF=AE=E5=A4=8D-=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E4=B8=BB=E9=A1=B5-=E5=8A=A8=E6=80=81=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E5=88=A0=E9=99=A4=E9=97=AE=E9=A2=98]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/common/adapter/UserCommunityAdapter.java | 2 ++ common/src/main/res/layout/activity_user_community_item.xml | 2 +- .../main/java/com/yunbao/main/activity/UserHomeActivity.java | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/adapter/UserCommunityAdapter.java b/common/src/main/java/com/yunbao/common/adapter/UserCommunityAdapter.java index 5e58c426e..70ef56e51 100644 --- a/common/src/main/java/com/yunbao/common/adapter/UserCommunityAdapter.java +++ b/common/src/main/java/com/yunbao/common/adapter/UserCommunityAdapter.java @@ -117,6 +117,8 @@ public class UserCommunityAdapter extends RecyclerView.Adapter { more_del.setTag(bean); if (isMe) { more_del.setVisibility(View.VISIBLE); + } else { + more_del.setVisibility(View.INVISIBLE); } ImgLoader.display(mContext, bean.getUser_avatar(), mAvatar); userName.setText(bean.getUser_name()); diff --git a/common/src/main/res/layout/activity_user_community_item.xml b/common/src/main/res/layout/activity_user_community_item.xml index 881e7f952..0c22f04af 100644 --- a/common/src/main/res/layout/activity_user_community_item.xml +++ b/common/src/main/res/layout/activity_user_community_item.xml @@ -56,7 +56,7 @@ android:layout_height="30dp" android:padding="4dp" android:src="@mipmap/icon_active_more" - android:visibility="invisible" /> + android:visibility="visible" /> diff --git a/main/src/main/java/com/yunbao/main/activity/UserHomeActivity.java b/main/src/main/java/com/yunbao/main/activity/UserHomeActivity.java index d66be944e..db1c41fab 100644 --- a/main/src/main/java/com/yunbao/main/activity/UserHomeActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/UserHomeActivity.java @@ -178,7 +178,6 @@ public class UserHomeActivity extends AbsActivity { } initView(); getUseData(); - getCommunityList(); } private void getCommunityList() { @@ -447,6 +446,7 @@ public class UserHomeActivity extends AbsActivity { } }); mBanner.start(); + getCommunityList(); } private void initView() { From f31c20f49a6a367a457126be9a96e31721ce0427 Mon Sep 17 00:00:00 2001 From: hch <16607480311@163.com> Date: Thu, 28 Mar 2024 15:53:34 +0800 Subject: [PATCH 9/9] =?UTF-8?q?fix=20[=E4=BF=AE=E5=A4=8D-=E8=A7=86?= =?UTF-8?q?=E9=A2=91-=E4=B8=8D=E6=84=9F=E5=85=B4=E8=B6=A3=E8=BF=98?= =?UTF-8?q?=E6=98=AF=E4=B8=AD=E6=96=87]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/video/views/VideoPlayWrapViewHolder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/src/main/java/com/yunbao/video/views/VideoPlayWrapViewHolder.java b/video/src/main/java/com/yunbao/video/views/VideoPlayWrapViewHolder.java index 11bd08bad..81c34e02c 100644 --- a/video/src/main/java/com/yunbao/video/views/VideoPlayWrapViewHolder.java +++ b/video/src/main/java/com/yunbao/video/views/VideoPlayWrapViewHolder.java @@ -144,7 +144,7 @@ public class VideoPlayWrapViewHolder extends AbsViewHolder implements View.OnCli public void onClick(View v) { SparseArray array = new SparseArray<>(); array.append(0, mContext.getResources().getString(com.yunbao.common.R.string.report)); - array.append(1, "不感兴趣"); + array.append(1, mContext.getResources().getString(com.yunbao.common.R.string.not_interested)); DialogUitl.showStringArrayDialog(mContext, array, new DialogUitl.StringArrayDialogCallback() { @Override public void onItemClick(String text, int tag) {