Skip to content

Commit

Permalink
Fix view showing flash cont.
Browse files Browse the repository at this point in the history
Accept Button flashes container (versus accept button)
  • Loading branch information
Hafizzle committed Sep 21, 2023
1 parent 1974f70 commit 55b0a09
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -459,15 +459,15 @@ 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)
}

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)
Expand Down

0 comments on commit 55b0a09

Please sign in to comment.