クラッシュレポート対応
This commit is contained in:
parent
5a6b42b06e
commit
448472cbbd
|
@ -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,9 +209,11 @@ fun ActMain.tagTimelineFromAccount(
|
|||
}
|
||||
|
||||
// ブラウザで表示する
|
||||
if (!url.isNullOrBlank()) {
|
||||
dialog.addAction(getString(R.string.open_web_on_host, host)) {
|
||||
openCustomTab(url)
|
||||
}
|
||||
}
|
||||
|
||||
// 同タンスのアカウントがない場合は疑似アカウントを作成して開く
|
||||
// ただし疑似アカウントではアカウントの同期ができないため、特定ユーザのタグTLは読めない)
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue