v3.29–v3.34:RSS 阅读页净化、批量选择与左滑、未读角标、邮件多账户聚合与排版修复
- 同步 HomeActivity/MailDetailActivity/MainActivity/ReaderActivity/RssApi 及 activity_home、activity_main 布局 - 更新 CHANGELOG 至 v3.34(versionCode 55)
This commit is contained in:
@@ -249,7 +249,14 @@ class HomeActivity : AppCompatActivity() {
|
||||
btnSelectAll.text = getString(
|
||||
if (adapter.allSelected()) R.string.select_none else R.string.select_all
|
||||
)
|
||||
tvSelectedCount.text = if (count > 0) getString(R.string.selected_count, count) else ""
|
||||
// 「已选 N 项」是一枚圆角胶囊:没有选中项时整枚隐藏,避免留一个空壳
|
||||
if (count > 0) {
|
||||
tvSelectedCount.text = getString(R.string.selected_count, count)
|
||||
tvSelectedCount.visibility = View.VISIBLE
|
||||
} else {
|
||||
tvSelectedCount.text = ""
|
||||
tvSelectedCount.visibility = View.GONE
|
||||
}
|
||||
listOf(btnMarkRead, btnDeleteSelected).forEach { btn ->
|
||||
btn.isEnabled = count > 0
|
||||
btn.alpha = if (btn.isEnabled) 1f else 0.45f
|
||||
|
||||
Reference in New Issue
Block a user