クラッシュレポート対応

This commit is contained in:
tateisu 2023-01-27 01:21:20 +09:00
parent 5a6b42b06e
commit 448472cbbd
2 changed files with 7 additions and 5 deletions

View File

@ -42,7 +42,7 @@ fun ActMain.tagDialog(
pos: Int,
// タグのURL
// URLのホスト部分は普通はaccessInfoと同じだが、検索などでバラバラになる場合がある
url: String,
url: String?,
// タグのHost。
// 普通はaccessInfoと同じだが、検索などでバラバラになる場合がある
host: Host,
@ -166,7 +166,7 @@ fun ActMain.tagTimelineFromAccount(
pos: Int,
// タグのURL
// URLのホスト部分は普通はaccessInfoと同じだが、検索などでバラバラになる場合がある
url: String,
url: String?,
// タグのHost。
// 普通はaccessInfoと同じだが、検索などでバラバラになる場合がある
host: Host,
@ -209,8 +209,10 @@ fun ActMain.tagTimelineFromAccount(
}
// ブラウザで表示する
dialog.addAction(getString(R.string.open_web_on_host, host)) {
openCustomTab(url)
if (!url.isNullOrBlank()) {
dialog.addAction(getString(R.string.open_web_on_host, host)) {
openCustomTab(url)
}
}
// 同タンスのアカウントがない場合は疑似アカウントを作成して開く

View File

@ -296,7 +296,7 @@ private fun ItemViewHolder.clickTag(pos: Int, item: TimelineItem?) {
tagDialog(
accessInfo,
pos,
item.url!!,
item.url,
accessInfo.apiHost,
item.name,
tagInfo = item,