Commit 77393d994f3c3046a2913c339f7216bfb784f68e
1 parent
47f35a7d
文件类型分享
Showing
3 changed files
with
6 additions
and
4 deletions
OutSide_Share/src/main/java/com/cnlive/outside_share/activity/ShareIMActivity.java
| ... | ... | @@ -223,14 +223,14 @@ public class ShareIMActivity extends AppCompatActivity { |
| 223 | 223 | startSelectForwardActivity(context, equals ? preferences.getString(SUBJECT, "") : bundle.get(SUBJECT) + "", "", AppConfig.getShareLink(), processUrlData(equals ? preferences.getString("extratext", "") : bundle.get(TEXT) + ""), TYPE_SHARE_LINK); |
| 224 | 224 | killTime(); |
| 225 | 225 | } |
| 226 | - } else if ((equals ? preferences.getString("extratext", "") : bundle.get(TEXT) + "").contains("http") && !Objects.requireNonNull(equals ? preferences.getString("extratext", "") : bundle.get(TEXT)).toString().startsWith("http") && !(equals ? preferences.getString("extratext", "") : bundle.get(TEXT)).toString().contains("mp.weixin.qq.com")) { | |
| 226 | + } else if ((equals ? preferences.getString("extratext", "") : bundle.get(TEXT) + "").contains("http") && !Objects.requireNonNull(equals ? preferences.getString("extratext", "") : bundle.get(TEXT)).toString().startsWith("http") && !(equals ? preferences.getString("extratext", "") : bundle.get(TEXT)+"").contains("mp.weixin.qq.com")) { | |
| 227 | 227 | int begin = Objects.requireNonNull(equals ? preferences.getString("extratext", "") : bundle.get(TEXT)).toString().indexOf("http"); |
| 228 | 228 | int end = Objects.requireNonNull(equals ? preferences.getString("extratext", "") : bundle.get(TEXT)).toString().length(); |
| 229 | 229 | if (begin > 0 && end > 0) { |
| 230 | 230 | startSelectForwardActivity(context, Objects.requireNonNull(equals ? preferences.getString("extratext", "") : bundle.get(TEXT)).toString().substring(0, begin), Objects.requireNonNull(equals ? preferences.getString("extratext", "") : bundle.get(TEXT)).toString().substring(0, begin), AppConfig.getShareLink(), processUrlData(Objects.requireNonNull(equals ? preferences.getString("extratext", "") : bundle.get(TEXT)).toString().substring(begin, end)), TYPE_SHARE_LINK); |
| 231 | 231 | killTime(); |
| 232 | 232 | } |
| 233 | - } else if ((equals ? preferences.getString("extratext", "") : bundle.get(TEXT)).toString().contains("http") && !Objects.requireNonNull(equals ? preferences.getString("extratext", "") : bundle.get(TEXT)).toString().startsWith("http") && (equals ? preferences.getString("extratext", "") : bundle.get(TEXT)).toString().contains("mp.weixin.qq.com")) { | |
| 233 | + } else if ((equals ? preferences.getString("extratext", "") : bundle.get(TEXT)+"").contains("http") && !Objects.requireNonNull(equals ? preferences.getString("extratext", "") : bundle.get(TEXT)).toString().startsWith("http") && (equals ? preferences.getString("extratext", "") : bundle.get(TEXT)+"").contains("mp.weixin.qq.com")) { | |
| 234 | 234 | new Thread(new Runnable() { |
| 235 | 235 | |
| 236 | 236 | private String srcjsoup; |
| ... | ... | @@ -273,7 +273,7 @@ public class ShareIMActivity extends AppCompatActivity { |
| 273 | 273 | } |
| 274 | 274 | }).start(); |
| 275 | 275 | } else { |
| 276 | - startSelectForwardActivity(context, (equals ? preferences.getString("extratext", "") : bundle.get(TEXT)) == null ? (equals ? preferences.getString(SUBJECT, "") : bundle.get(SUBJECT)).toString() : (equals ? preferences.getString("extratext", "") : bundle.get(TEXT)).toString(), TYPE_SHARE_TEXT, IN_TYPE_EXT_SHARE); | |
| 276 | + startSelectForwardActivity(context, (equals ? preferences.getString("extratext", "") : bundle.get(TEXT)) == null ? (equals ? preferences.getString(SUBJECT, "") : bundle.get(SUBJECT)+"") : (equals ? preferences.getString("extratext", "") : bundle.get(TEXT)+""), TYPE_SHARE_TEXT, IN_TYPE_EXT_SHARE); | |
| 277 | 277 | killTime(); |
| 278 | 278 | } |
| 279 | 279 | } else { | ... | ... |
app/src/main/AndroidManifest.xml