Mastodonの通知カラムのヘッダにMisskey特有のフィルタ条件を書かない

This commit is contained in:
tateisu 2018-08-22 11:55:55 +09:00
parent 9fb35269f1
commit 6440185a6a
1 changed files with 8 additions and 3 deletions

View File

@ -777,15 +777,20 @@ class Column(
if(n++>0) sb.append(", ")
sb.append(context.getString(R.string.notification_type_favourite))
}
if(! dont_show_reaction) {
if( isMisskey && ! dont_show_reaction) {
if(n++>0) sb.append(", ")
sb.append(context.getString(R.string.notification_type_reaction))
}
if(! dont_show_vote) {
if( isMisskey && ! dont_show_vote) {
if(n++>0) sb.append(", ")
sb.append(context.getString(R.string.notification_type_vote))
}
if( n == 0 || n == 6 ) return "" // 全部か皆無なら部分表記は要らない
val n_max = if(isMisskey){
6
}else{
4
}
if( n == 0 || n == n_max ) return "" // 全部か皆無なら部分表記は要らない
sb.append(")")
return sb.toString()
}