packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java
+8
−0
+14
−6
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
To avoid accidental clicks on smart actions and replies we here block clicks on those buttons just after they are created. We block clicks on those buttons when a notification is updated - but only if the buttons are new, or different from previous buttons shown in the notification. I.e. if the notification is updated but the smart suggestion buttons stay the same we don't block clicks on them. Bug: 128683184 Test: manually ensure clicks are blocked within the initialization delay (for new / changed buttons), and ensure the delay changes when calling adb shell device_config put systemui ssin_onclick_init_delay X where X is the delay in ms. Test: SmartReplyConstantsTest, SmartReplyViewTest Change-Id: I9a44eb6ade6579a42e35b36cce4bd5863332c60e