Skip to content

Commit

Permalink
getInstrumentation().waitForIdleSync();
Browse files Browse the repository at this point in the history
  • Loading branch information
oers committed Nov 19, 2024
1 parent d251da1 commit cfafd2e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package de.earthlingz.oerszebra;

import static androidx.test.platform.app.InstrumentationRegistry.getInstrumentation;

import androidx.fragment.app.DialogFragment;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;
Expand All @@ -22,6 +24,7 @@ public void init() throws InterruptedException {
while (zebra == null && !zebra.initialized()) {
Thread.sleep(100);
}
getInstrumentation().waitForIdleSync();
}

void waitForOpenendDialogs(boolean dismiss) throws InterruptedException {
Expand Down

0 comments on commit cfafd2e

Please sign in to comment.