architecture-samples icon indicating copy to clipboard operation
architecture-samples copied to clipboard

[todo-mvvm-live-kotlin] Espresso idle counter gets corrupted

Open FlexW opened this issue 5 years ago • 3 comments

In todo-mvvm-live-kotlin in Util/ViewExt.kt, in the callback of the showSnackbar function there gets the EspressoIdlingResource incremented and decremented. The problem is, that if onDismissed is called before onShown, the counter gets corrupted. This case may happen if showSnackbar is called two times in a really short period of time.

FlexW avatar May 29 '19 18:05 FlexW

Yeah we fixed this in the testing codelab, which will be merged soon with this project.

JoseAlcerreca avatar May 30 '19 10:05 JoseAlcerreca

Actually let's keep this one open until we merge.

JoseAlcerreca avatar May 30 '19 10:05 JoseAlcerreca

@JoseAlcerreca hi, can u please provide the reason this branch ( maybe all) using full of activity and inside activity have only 1 fragment ( which i remember that google recommended to use 1 activity 1 fragment )

cuong292 avatar May 22 '20 04:05 cuong292