Commit 4f71db2ce5c48f123d4e3257d86bf53a7e48796e

Authored by 袁思汶
1 parent f2b90c36

waifen

OutSide_Share/src/main/java/com/cnlive/outside_share/activity/ShareIMActivity.java
@@ -442,7 +442,7 @@ public class ShareIMActivity extends AppCompatActivity { @@ -442,7 +442,7 @@ public class ShareIMActivity extends AppCompatActivity {
442 startSelectForwardActivity(context, path, TYPE_SHARE_IMAGE, IN_TYPE_EXT_SHARE); 442 startSelectForwardActivity(context, path, TYPE_SHARE_IMAGE, IN_TYPE_EXT_SHARE);
443 killTime(); 443 killTime();
444 } else if ((equals ? preferences.getString("extratext", null) : bundle.get(TEXT)) != null && 444 } else if ((equals ? preferences.getString("extratext", null) : bundle.get(TEXT)) != null &&
445 - bundle.get(TEXT) != null && !(bundle.get(TEXT) + "").contains("http")) { //腾讯文件Android Q 445 + bundle!= null && !(bundle.get(TEXT) + "").contains("http")) { //腾讯文件Android Q
446 photoTimer.schedule(new TimerTask() { 446 photoTimer.schedule(new TimerTask() {
447 @Override 447 @Override
448 public void run() { 448 public void run() {
@@ -474,7 +474,7 @@ public class ShareIMActivity extends AppCompatActivity { @@ -474,7 +474,7 @@ public class ShareIMActivity extends AppCompatActivity {
474 } 474 }
475 }, 3000); 475 }, 3000);
476 } else if ((equals ? preferences.getString("extratext", "") : bundle.get(TEXT)) != null && 476 } else if ((equals ? preferences.getString("extratext", "") : bundle.get(TEXT)) != null &&
477 - bundle.get(TEXT) != null && (bundle.get(TEXT) + "").contains("http")) { 477 + bundle != null && (bundle.get(TEXT) + "").contains("http")) {
478 String link = Objects.requireNonNull(equals ? preferences.getString("extratext", "") : bundle.get(TEXT)).toString(); 478 String link = Objects.requireNonNull(equals ? preferences.getString("extratext", "") : bundle.get(TEXT)).toString();
479 if (link.contains("http") && !link.startsWith("http")) { 479 if (link.contains("http") && !link.startsWith("http")) {
480 int begin = link.indexOf("http"); 480 int begin = link.indexOf("http");
@@ -486,7 +486,7 @@ public class ShareIMActivity extends AppCompatActivity { @@ -486,7 +486,7 @@ public class ShareIMActivity extends AppCompatActivity {
486 } 486 }
487 killTime(); 487 killTime();
488 } 488 }
489 - } else if (imageUri == null) { 489 + } else if (imageUri == null && path.endsWith("gif")) {
490 AlertUtil.showDeftToast(this, "网家家暂不支持此类型信息分享."); 490 AlertUtil.showDeftToast(this, "网家家暂不支持此类型信息分享.");
491 killTime(); 491 killTime();
492 } else if (String.valueOf(imageUri).startsWith("content://") && !"wbmp".equals(fileType)) { 492 } else if (String.valueOf(imageUri).startsWith("content://") && !"wbmp".equals(fileType)) {
OutSide_Share/src/main/java/com/cnlive/outside_share/activity/ShareMomentActivity.java
@@ -361,7 +361,7 @@ public class ShareMomentActivity extends AppCompatActivity { @@ -361,7 +361,7 @@ public class ShareMomentActivity extends AppCompatActivity {
361 sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, imageUri)); 361 sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, imageUri));
362 String pathreal = getPath(context, imageUri); 362 String pathreal = getPath(context, imageUri);
363 String fileType = FileType.getFileType(pathreal); 363 String fileType = FileType.getFileType(pathreal);
364 - if ("wbmp".equals(fileType) || pathreal == null) { 364 + if ("wbmp".equals(fileType) || pathreal == null || pathreal.endsWith("gif")) {
365 AlertUtil.showDeftToast(context, "网家家暂不支持此格式图片分享."); 365 AlertUtil.showDeftToast(context, "网家家暂不支持此格式图片分享.");
366 killTime(); 366 killTime();
367 } else if ("video".equals(fileType) || "avi".equals(fileType)) { //兼容部分浏览器视频类型文件以图片type封装intent传递 367 } else if ("video".equals(fileType) || "avi".equals(fileType)) { //兼容部分浏览器视频类型文件以图片type封装intent传递
config.gradle
@@ -21,7 +21,7 @@ ext { @@ -21,7 +21,7 @@ ext {
21 //编译方式 21 //编译方式
22 debug : false, 22 debug : false,
23 //版本号 23 //版本号
24 - version: "1.0.1.3", 24 + version: "1.0.1.4",
25 //Lib库前缀 25 //Lib库前缀
26 packeg : "com.cnlive.outside_share", 26 packeg : "com.cnlive.outside_share",
27 //Lib库名称 27 //Lib库名称