mirror of
https://github.com/tateisu/SubwayTooter
synced 2025-01-28 01:29:23 +01:00
クラッシュレポート対応
This commit is contained in:
parent
b47bbf6147
commit
397aac5846
@ -511,11 +511,13 @@ class ActPost : AppCompatActivity(), View.OnClickListener, PostAttachment.Callba
|
||||
val type = sent_intent.type
|
||||
if(uri != null) addAttachment(uri, type)
|
||||
}
|
||||
|
||||
Intent.ACTION_SEND -> {
|
||||
val uri = sent_intent.getParcelableExtra<Uri>(Intent.EXTRA_STREAM)
|
||||
val type = sent_intent.type
|
||||
if(uri != null) addAttachment(uri, type)
|
||||
}
|
||||
|
||||
Intent.ACTION_SEND_MULTIPLE -> {
|
||||
val list_uri =
|
||||
sent_intent.getParcelableArrayListExtra<Uri>(Intent.EXTRA_STREAM)
|
||||
@ -1209,7 +1211,12 @@ class ActPost : AppCompatActivity(), View.OnClickListener, PostAttachment.Callba
|
||||
|
||||
// 添付した画像をタップ
|
||||
private fun performAttachmentClick(idx : Int) {
|
||||
val pa = attachment_list[idx]
|
||||
val pa = try {
|
||||
attachment_list[idx]
|
||||
} catch(ex : Throwable) {
|
||||
showToast(this, false, ex.withCaption("can't get attachment item[$idx]."))
|
||||
return
|
||||
}
|
||||
|
||||
AlertDialog.Builder(this)
|
||||
.setTitle(R.string.media_attachment)
|
||||
|
Loading…
x
Reference in New Issue
Block a user