Commit 47ffee8b23efd4733a46d4d3b601b660e8dcbe6a
1 parent
82a405e5
华为高版本多文件类型type兼容
Showing
2 changed files
with
4 additions
and
4 deletions
OutSide_Share/src/main/java/com/cnlive/outside_share/activity/ShareIMActivity.java
| @@ -833,11 +833,11 @@ public class ShareIMActivity extends AppCompatActivity { | @@ -833,11 +833,11 @@ public class ShareIMActivity extends AppCompatActivity { | ||
| 833 | 833 | ||
| 834 | private void jumpToSendMultiple(Context context, ArrayList<String> urilist) { | 834 | private void jumpToSendMultiple(Context context, ArrayList<String> urilist) { |
| 835 | String replace = ""; | 835 | String replace = ""; |
| 836 | - if (type == null || type.startsWith("*")) { | 836 | + if (type == null) { |
| 837 | AlertUtil.showDeftToast(this, "网家家暂不支持此类型信息分享."); | 837 | AlertUtil.showDeftToast(this, "网家家暂不支持此类型信息分享."); |
| 838 | killTime(); | 838 | killTime(); |
| 839 | } else { | 839 | } else { |
| 840 | - if (type.startsWith("image/")) { | 840 | + if (type.startsWith("image/") || type.startsWith("*/*")) { |
| 841 | if ((equals)) { | 841 | if ((equals)) { |
| 842 | String clipDataImg = preferences.getString("clipDataImg", ""); | 842 | String clipDataImg = preferences.getString("clipDataImg", ""); |
| 843 | Gson gson = new Gson(); | 843 | Gson gson = new Gson(); |
OutSide_Share/src/main/java/com/cnlive/outside_share/activity/ShareMomentActivity.java
| @@ -766,11 +766,11 @@ public class ShareMomentActivity extends AppCompatActivity { | @@ -766,11 +766,11 @@ public class ShareMomentActivity extends AppCompatActivity { | ||
| 766 | 766 | ||
| 767 | private void jumpToSendMultiple(Context context, ArrayList<String> urilist) { | 767 | private void jumpToSendMultiple(Context context, ArrayList<String> urilist) { |
| 768 | String replace = ""; | 768 | String replace = ""; |
| 769 | - if (type == null || type.startsWith("*")) { | 769 | + if (type == null) { |
| 770 | AlertUtil.showDeftToast(this, "网家家暂不支持此类型信息分享."); | 770 | AlertUtil.showDeftToast(this, "网家家暂不支持此类型信息分享."); |
| 771 | killTime(); | 771 | killTime(); |
| 772 | } else { | 772 | } else { |
| 773 | - if (type.startsWith("image/")) { | 773 | + if (type.startsWith("image/") || type.startsWith("*/*")) { |
| 774 | if (equals) { | 774 | if (equals) { |
| 775 | String clipDataImg = preferences.getString("clipDataImg", ""); | 775 | String clipDataImg = preferences.getString("clipDataImg", ""); |
| 776 | Gson gson = new Gson(); | 776 | Gson gson = new Gson(); |