DESKTOP-JJ6HLMB il y a 1 an
Parent
commit
6217e9f8b5

+ 24 - 16
TMessagesProj/src/main/java/org/telegram/cricdit/view/ExpandTextView.java

@@ -263,7 +263,7 @@ public class ExpandTextView extends androidx.appcompat.widget.AppCompatTextView
                 needAppend = true;
             }
         }
-        if (workingText.contains("https://g.cricdit.com/") || workingText.contains("https://u.cricdit.com/")) {
+        if (workingText.contains("https://t.me/")) {
             final SpannableStringBuilder style = new SpannableStringBuilder();
 
             //设置文字
@@ -283,21 +283,29 @@ public class ExpandTextView extends androidx.appcompat.widget.AppCompatTextView
                         } else {
                             gName = finalWorkingText.substring(index + "https://t.me/".length());
                         }
-                        new CommentPresenter().groupLinkInfo(gName, new BaseObserver<GroupInfoBean>() {
-                            @Override
-                            protected void onSuccess(GroupInfoBean data) {
-//                                ARouter.getInstance().build(ARouterPath.PATH_CHAT_CHAT_ACTIVITY).withString(Constant.K_GROUP_ID, data.getGroup_id()).withString(Constant.K_GROUP_NAME, data.getGroup_name())
-//                                        .withString(Constant.K_GROUP_AVATAR, data.getGroup_image())
-//                                        .navigation();
-                                //跳转到群组聊天界面
-
-                            }
-
-                            @Override
-                            public void onError(Throwable e) {
-                                super.onError(e);
-                            }
-                        });
+
+                        //跳转到群组聊天界面    todo 这里需要样子跳转到聊天界面是否正确  这里需要看电报的源码  根据gName信息获取个人信息(user_id) 跳转到聊天界面
+                        String user_id = "0";
+                        Bundle args = new Bundle();
+                        args.putLong("user_id", Long.parseLong(user_id));
+                        baseFragment.presentFragment(new ProfileActivity(args));
+//                        new CommentPresenter().groupLinkInfo(gName, new BaseObserver<GroupInfoBean>() {
+//                            @Override
+//                            protected void onSuccess(GroupInfoBean data) {
+////                                ARouter.getInstance().build(ARouterPath.PATH_CHAT_CHAT_ACTIVITY).withString(Constant.K_GROUP_ID, data.getGroup_id()).withString(Constant.K_GROUP_NAME, data.getGroup_name())
+////                                        .withString(Constant.K_GROUP_AVATAR, data.getGroup_image())
+////                                        .navigation();
+//                                //跳转到群组聊天界面
+//                                Bundle args = new Bundle();
+//                                args.putLong("user_id", Long.parseLong(userId));
+//                                baseFragment.presentFragment(new ProfileActivity(args));
+//                            }
+//
+//                            @Override
+//                            public void onError(Throwable e) {
+//                                super.onError(e);
+//                            }
+//                        });
                     }
 //                    else if (finalWorkingText.contains("https://t.me/")) {
 //                        int index = finalWorkingText.indexOf("https://t.me/");

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

@@ -11,9 +11,9 @@
       "type": "SINGLE",
       "filters": [],
       "attributes": [],
-      "versionCode": 4,
-      "versionName": "0.0.3",
-      "outputFile": "Cricdit0.0.3.apk"
+      "versionCode": 5,
+      "versionName": "0.0.4",
+      "outputFile": "Cricdit0.0.4.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.0.3
-APP_VERSION_CODE=4
+APP_VERSION_NAME=0.0.4
+APP_VERSION_CODE=5
 #APP_PACKAGE=org.telegram.messenger
 APP_PACKAGE=com.cricdit.cricdit
 RELEASE_KEY_PASSWORD=123456