Commit 156b430db93237b4c8111968fafdb9d5f74a0948
1 parent
102e452b
外分链接类型
Showing
2 changed files
with
5 additions
and
3 deletions
OutSide_Share/src/main/java/com/cnlive/outside_share/activity/ShareMomentActivity.java
| @@ -257,8 +257,10 @@ public class ShareMomentActivity extends AppCompatActivity { | @@ -257,8 +257,10 @@ public class ShareMomentActivity extends AppCompatActivity { | ||
| 257 | } else { | 257 | } else { |
| 258 | end = linkcontext.length(); | 258 | end = linkcontext.length(); |
| 259 | } | 259 | } |
| 260 | - String file = bundle.getString("file"); | ||
| 261 | - FileUtil.copyFile(file, getPath("/strike/cache/") + "share.jpg"); | 260 | + if (bundle!=null && bundle.getString("file")!=null) { |
| 261 | + String file = bundle.getString("file"); | ||
| 262 | + FileUtil.copyFile(file, getPath("/strike/cache/") + "share.jpg"); | ||
| 263 | + } | ||
| 262 | ShareReleaseInfoUtil.ShareConfig shareConfig = ShareReleaseInfoUtil.ShareConfig.newInstance(); | 264 | ShareReleaseInfoUtil.ShareConfig shareConfig = ShareReleaseInfoUtil.ShareConfig.newInstance(); |
| 263 | shareConfig.setType(ShareReleaseInfoUtil.TYPE_HTML); | 265 | shareConfig.setType(ShareReleaseInfoUtil.TYPE_HTML); |
| 264 | String jsouplink = linkcontext.substring(begin, end); | 266 | String jsouplink = linkcontext.substring(begin, end); |
config.gradle