Quellcode durchsuchen

版本更新为:3.5.0

zengjiebin vor 7 Jahren
Ursprung
Commit
badf104f07

+ 3 - 4
app/src/main/java/com/sheep/gamegroup/util/CommonUtil.java

@@ -2654,10 +2654,9 @@ public class CommonUtil {
         }
         if (TestUtil.isTest()) {//下面的功能暂不提供给用户
             dialogConfig.setMsg("已经复制如下内容:\n" + textString + "\n,是否访问该链接?")
-                    .setBtnLeftText("确定").setBtnLeftOnClickListener(view -> Jump2View.getInstance().goWeb(SheepApp.getInstance().getCurrentActivity(), url))
-                    .setBtnRightText("仅一次").setBtnRightOnClickListener(view -> {
-                closeListener.onClick(view);
-                Jump2View.getInstance().goWeb(SheepApp.getInstance().getCurrentActivity(), url);
+                    .setBtnLeftText("外部h5").setBtnLeftOnClickListener(view -> Jump2View.getInstance().goWeb(SheepApp.getInstance().getCurrentActivity(), url))
+                    .setBtnRightText("内部h5").setBtnRightOnClickListener(view -> {
+                Jump2View.getInstance().goWeb(SheepApp.getInstance().getCurrentActivity(), url, "测试内部h5");
             });
             ViewUtil.showMsgDialog(SheepApp.getInstance().getCurrentActivity(), dialogConfig);
         }

+ 1 - 1
app/src/main/java/com/sheep/gamegroup/view/activity/ActSearchApp.java

@@ -170,7 +170,7 @@ public class ActSearchApp extends BaseActivity {
     private void toSearchApp() {
         search_app_list.setVisibility(View.INVISIBLE);
         frame_container.setVisibility(View.VISIBLE);
-        String inputText = TitleBarUtils.getInstance().getSearchText(this).toString();
+        String inputText = TitleBarUtils.getInstance().getSearchText(this).trim();
         if (!TextUtils.isEmpty(inputText)) {
             //保存搜索到数据库
             SearchAppRecord searchRecord = searchRecordMap.get(inputText);

+ 1 - 1
app/src/main/java/com/sheep/gamegroup/view/activity/ActSearchAppOrTask.java

@@ -224,7 +224,7 @@ public class ActSearchAppOrTask extends BaseActivity {
         }
         recyclerView.setVisibility(View.INVISIBLE);
         frame_container.setVisibility(View.VISIBLE);
-        String inputText = TitleBarUtils.getInstance().getSearchText(this);
+        String inputText = TitleBarUtils.getInstance().getSearchText(this).trim();
         if (!TextUtils.isEmpty(inputText)) {
             //保存搜索到数据库
             SearchRecord searchRecord = new SearchRecord();

+ 1 - 1
app/src/main/java/com/sheep/gamegroup/view/activity/ActSearchGame.java

@@ -306,7 +306,7 @@ public class ActSearchGame extends BaseActivity {
     }
 
     private void toSearchGame() {
-        String inputText = search_game_input.getText().toString();
+        String inputText = search_game_input.getText().toString().trim();
         if (TextUtils.isEmpty(inputText)) {
             list.clear();
             notifyDataSetChanged();