Pārlūkot izejas kodu

跳转聊天bug修复

ltt 1 gadu atpakaļ
vecāks
revīzija
746415a841

+ 3 - 3
TMessagesProj/src/main/java/org/telegram/cricdit/adapter/NewsGroupAdapter.java

@@ -246,7 +246,7 @@ public class NewsGroupAdapter extends RecyclerView.Adapter {
         viewHolder.itemView.setOnClickListener(v -> {
             if (UserConfig.getInstance(fragment.getCurrentAccount()).isClientActivated()) {
                 //跳转到对应群组聊天页
-                long chatID = Long.parseLong(groupData.group_id);
+/*                long chatID = Long.parseLong(groupData.group_id);
                 ConcurrentHashMap<Long, TLRPC.Chat> chats = fragment.getMessagesController().getChats();
                 TLRPC.Chat chat = chats.get(chatID);
                 if (chat != null) {
@@ -254,7 +254,7 @@ public class NewsGroupAdapter extends RecyclerView.Adapter {
                     bundle.putLong("chat_id", chatID);
                     fragment.presentFragment(new ChatActivity(bundle));
                     syncGroupDataToCricdit(chat,groupData.private_link,groupData.public_link);
-                } else {
+                } else {*/
                     if (alertDialog != null) {
                         alertDialog.show();
                     }
@@ -274,7 +274,7 @@ public class NewsGroupAdapter extends RecyclerView.Adapter {
                             ToastUtil.show(fragment.getParentActivity(), LocaleController.getString(R.string.CdExpiredGroup));
                         }
                     }
-                }
+//                }
             } else {
                 fragment.presentFragment(new LoginActivity());
             }

+ 3 - 3
TMessagesProj/src/main/java/org/telegram/cricdit/adapter/RecommendGroupAdapter.java

@@ -81,7 +81,7 @@ public class RecommendGroupAdapter extends BaseQuickAdapter<MoreGroupBean.MoreGr
         helper.itemView.setOnClickListener(v -> {
             if (UserConfig.getInstance(fragment.getCurrentAccount()).isClientActivated()) {
                 //跳转到对应群组聊天页
-                long chatID = Long.parseLong(item.group_id);
+/*                long chatID = Long.parseLong(item.group_id);
                 ConcurrentHashMap<Long, TLRPC.Chat> chats = fragment.getMessagesController().getChats();
                 TLRPC.Chat chat = chats.get(chatID);
                 if (chat != null) {
@@ -89,7 +89,7 @@ public class RecommendGroupAdapter extends BaseQuickAdapter<MoreGroupBean.MoreGr
                     bundle.putLong("chat_id", chatID);
                     fragment.presentFragment(new ChatActivity(bundle));
                     syncGroupDataToCricdit(chat,item.private_link,item.public_link);
-                } else {
+                } else {*/
                     if (alertDialog != null) {
                         alertDialog.show();
                     }
@@ -109,7 +109,7 @@ public class RecommendGroupAdapter extends BaseQuickAdapter<MoreGroupBean.MoreGr
                             ToastUtil.show(fragment.getParentActivity(), LocaleController.getString(R.string.CdExpiredGroup));
                         }
                     }
-                }
+//                }
             } else {
                 fragment.presentFragment(new LoginActivity());
             }

+ 3 - 3
TMessagesProj/src/main/java/org/telegram/cricdit/ui/RankDetailCommentFragment.java

@@ -1049,14 +1049,14 @@ public class RankDetailCommentFragment extends BaseActivity<CommentPresenter> im
                 presentFragment(new LoginActivity());
             } else {
                 //跳转到对应群组聊天页
-                long chatID = Long.parseLong(groupBean.getGroup_id());
+/*                long chatID = Long.parseLong(groupBean.getGroup_id());
                 ConcurrentHashMap<Long, TLRPC.Chat> chats = getMessagesController().getChats();
                 TLRPC.Chat chat = chats.get(chatID);
                 if (chat != null) {
                     Bundle bundle = new Bundle();
                     bundle.putLong("chat_id", chatID);
                     presentFragment(new ChatActivity(bundle));
-                } else {
+                } else {*/
                     if (alertDialog != null) {
                         alertDialog.show();
                     }
@@ -1073,7 +1073,7 @@ public class RankDetailCommentFragment extends BaseActivity<CommentPresenter> im
                         }
                     }
                 }
-            }
+//            }
         });
     }
 

+ 3 - 3
TMessagesProj_App/bundleAfat/release/output-metadata.json

@@ -11,9 +11,9 @@
       "type": "SINGLE",
       "filters": [],
       "attributes": [],
-      "versionCode": 30,
-      "versionName": "0.3.0",
-      "outputFile": "Cricdit0.3.0.apk"
+      "versionCode": 31,
+      "versionName": "0.3.1",
+      "outputFile": "Cricdit0.3.1.apk"
     }
   ],
   "elementType": "File"

+ 2 - 2
gradle.properties

@@ -15,8 +15,8 @@
 #Sat Mar 12 05:53:50 MSK 2016
 #APP_VERSION_NAME=9.0.2
 #APP_VERSION_CODE=2808
-APP_VERSION_NAME=0.3.0
-APP_VERSION_CODE=30
+APP_VERSION_NAME=0.3.1
+APP_VERSION_CODE=31
 #APP_PACKAGE=org.telegram.messenger
 APP_PACKAGE=com.cricdit.cricdit
 RELEASE_KEY_PASSWORD=123456