florent37/ExpectAnim

Views are blinking if call visible twice

Kolyall opened this issue · 3 comments

for example:

public void exec(){
new ExpectAnim()
                .expect(mView)
                .toBe(
                       .visible()
                ).toAnimation().setNow();
}

if you call exec() twice view will be blinking

exec();
exec();

Add a check for example if (view.alpha!=100) perform animation

your view was Invisible ? or alpha 0 ?

at start it was set to

  new ExpectAnim()
                .expect(mPlayerMediaView)
                .toBe(
                        Expectations.invisible()
                )

and then you launch exec twice ?