mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-22 05:38:55 +00:00
Fix view showing flash cont.
Accept Button flashes container (versus accept button)
This commit is contained in:
parent
ff26123894
commit
d1b29231f8
1 changed files with 4 additions and 4 deletions
|
|
@ -201,7 +201,7 @@ class NotificationsActivity : BaseActivity(), androidx.swiperefreshlayout.widget
|
|||
|
||||
val dismissAllButton = header?.findViewById(R.id.dismiss_all_button) as? Button
|
||||
dismissAllButton?.setOnClickListener {
|
||||
it.flash()
|
||||
binding.root.flash()
|
||||
HapticFeedbackManager.tap(it)
|
||||
viewModel.dismissAllNotifications(notifications)
|
||||
}
|
||||
|
|
@ -341,7 +341,7 @@ class NotificationsActivity : BaseActivity(), androidx.swiperefreshlayout.widget
|
|||
|
||||
val dismissButton = item?.findViewById(R.id.dismiss_button) as? ImageView
|
||||
dismissButton?.setOnClickListener {
|
||||
it.flash()
|
||||
container?.flash()
|
||||
HapticFeedbackManager.tap(it)
|
||||
removeNotificationAndRefresh(notification)
|
||||
viewModel.dismissNotification(notification)
|
||||
|
|
@ -459,7 +459,7 @@ class NotificationsActivity : BaseActivity(), androidx.swiperefreshlayout.widget
|
|||
|
||||
val acceptButton = item?.findViewById(R.id.accept_button) as? Button
|
||||
acceptButton?.setOnClickListener {
|
||||
it.flash()
|
||||
binding.root.flash()
|
||||
HapticFeedbackManager.tap(it)
|
||||
removeNotificationAndRefresh(notification)
|
||||
viewModel.accept(notification.id)
|
||||
|
|
@ -467,7 +467,7 @@ class NotificationsActivity : BaseActivity(), androidx.swiperefreshlayout.widget
|
|||
|
||||
val rejectButton = item?.findViewById(R.id.reject_button) as? Button
|
||||
rejectButton?.setOnClickListener {
|
||||
it.flash()
|
||||
binding.root.flash()
|
||||
HapticFeedbackManager.tap(it)
|
||||
removeNotificationAndRefresh(notification)
|
||||
viewModel.reject(notification.id)
|
||||
|
|
|
|||
Loading…
Reference in a new issue