Commit 094aa7f7a3d52dc969444d65c892b127a2e96563
1 parent
bac4f8e4
未登录分享至好友修改
Showing
2 changed files
with
2 additions
and
4 deletions
OutSide_Share/src/main/java/com/cnlive/outside_share/activity/ShareIMActivity.java
| @@ -125,7 +125,6 @@ public class ShareIMActivity extends AppCompatActivity { | @@ -125,7 +125,6 @@ public class ShareIMActivity extends AppCompatActivity { | ||
| 125 | public void checkIntent() { | 125 | public void checkIntent() { |
| 126 | equals = "shareIM".equals(outTyp); //是否二次登陆 以下所有type均需要判断是否二次登录 | 126 | equals = "shareIM".equals(outTyp); //是否二次登陆 以下所有type均需要判断是否二次登录 |
| 127 | preferences = this.getSharedPreferences("OutShare", MODE_PRIVATE); | 127 | preferences = this.getSharedPreferences("OutShare", MODE_PRIVATE); |
| 128 | - if (bundle != null && action != null) { | ||
| 129 | switch (action) { | 128 | switch (action) { |
| 130 | case Intent.ACTION_SEND: | 129 | case Intent.ACTION_SEND: |
| 131 | jumpToSend(this, bundle); | 130 | jumpToSend(this, bundle); |
| @@ -137,7 +136,6 @@ public class ShareIMActivity extends AppCompatActivity { | @@ -137,7 +136,6 @@ public class ShareIMActivity extends AppCompatActivity { | ||
| 137 | AlertUtil.showDeftToast(this, "网家家暂不支持此类型信息分享."); | 136 | AlertUtil.showDeftToast(this, "网家家暂不支持此类型信息分享."); |
| 138 | break; | 137 | break; |
| 139 | } | 138 | } |
| 140 | - } | ||
| 141 | } | 139 | } |
| 142 | 140 | ||
| 143 | public static String processUrlData(String shareInfoUrl) { | 141 | public static String processUrlData(String shareInfoUrl) { |
| @@ -167,7 +165,7 @@ public class ShareIMActivity extends AppCompatActivity { | @@ -167,7 +165,7 @@ public class ShareIMActivity extends AppCompatActivity { | ||
| 167 | 165 | ||
| 168 | @RequiresApi(api = Build.VERSION_CODES.KITKAT) | 166 | @RequiresApi(api = Build.VERSION_CODES.KITKAT) |
| 169 | private void jumpToSend(Context context, Bundle bundle) { | 167 | private void jumpToSend(Context context, Bundle bundle) { |
| 170 | - if (bundle == null || type == null) { | 168 | + if (type == null) { |
| 171 | AlertUtil.showDeftToast(this, "数据获取异常,暂不支持此机型分享."); | 169 | AlertUtil.showDeftToast(this, "数据获取异常,暂不支持此机型分享."); |
| 172 | killTime(); | 170 | killTime(); |
| 173 | } else if (type.startsWith("text/")) { | 171 | } else if (type.startsWith("text/")) { |
config.gradle