-
Notifications
You must be signed in to change notification settings - Fork 496
Fix camera settings item blinking (EXPOSUREAPP-6337) #2801
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me, as the CameraItem was only instantiated once in init
. The other solution would be to use HasPayloadDiffer
.
I did try it as :
did not work for me , not sure if this how it should be ? |
You need to return a non-null value. Lines 24 to 39 in c9cabdc
Other cards we have use this pattern: Lines 34 to 36 in c9cabdc
then Lines 22 to 29 in c9cabdc
The idea being that we want to replace any stale on-click listeners that may reference something that no longer exists due to recreation on lifecycle events. Not sure if it's necessary in this case, but using the payload mechanism tells the RecyclerView that we will take care of any layout that is necessary, so you may be able to just return |
In this case , current solution is sufficient, item does not change and click listener does not any data |
Kudos, SonarCloud Quality Gate passed! |
@mtwalli how do I get this card? Tried it on an Xiamoi Mi (Android 9) and Oneplus 6t (Android 10) by clicking deny in the scanning screen. |
Ok found it, you have deny once and then the second time you get asked if you don't want to be asked again. Works on both devices :) |
intervalFlow
in CheckIns screen causes a refresh every second, when Camera item is displayed it had blinking effect to avoid that this PR create only one item lazily