We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fd6243 commit 479bd7cCopy full SHA for 479bd7c
1 file changed
examples/threadExample/src/main/java/io/realm/examples/threads/ThreadFragment.java
@@ -18,6 +18,7 @@
18
19
import android.app.Activity;
20
import android.os.Bundle;
21
+import android.os.SystemClock;
22
import android.support.v4.app.Fragment;
23
import android.view.LayoutInflater;
24
import android.view.Menu;
@@ -140,11 +141,7 @@ public void run() {
140
141
backgroundThreadRealm.commitTransaction();
142
143
// Wait 0.5 sec. before adding the next dot.
- try {
144
- Thread.sleep(500);
145
- } catch (InterruptedException e) {
146
- break;
147
- }
+ SystemClock.sleep(500);
148
}
149
150
// Also close Realm instances used in background threads.
0 commit comments