feat(): fixed the UI changes 🦍 + notificationIcon logic and long press userAvatar 🐒 (#226)
This commit is contained in:
parent
49175a962a
commit
2742f58af5
3 changed files with 43 additions and 24 deletions
|
@ -59,6 +59,13 @@ class SettingsDialogFragment : BottomSheetDialogFragment() {
|
|||
val theme = requireContext().theme
|
||||
theme.resolveAttribute(com.google.android.material.R.attr.colorSurface, typedValue, true)
|
||||
window?.navigationBarColor = typedValue.data
|
||||
val notificationIcon = if (Anilist.unreadNotificationCount > 0) {
|
||||
R.drawable.ic_round_notifications_active_24
|
||||
} else {
|
||||
R.drawable.ic_round_notifications_none_24
|
||||
}
|
||||
binding.settingsNotification.setImageResource(notificationIcon)
|
||||
binding.settingsNotification.visibility = View.VISIBLE
|
||||
|
||||
if (Anilist.token != null) {
|
||||
binding.settingsLogin.setText(R.string.logout)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue