Skip to content

Commit 7fe8afe

Browse files
author
Bhargav MS
committed
Add a delay before starting the animation to ensure onMeasure() is executed, should resolve issue #4
1 parent d88a100 commit 7fe8afe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src/main/java/com/bhargavms/dotloader/DotLoader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,12 @@ public void initAnimation() {
190190
* @deprecated
191191
*/
192192
private void startAnimation() {
193-
post(new Runnable() {
193+
postDelayed(new Runnable() {
194194
@Override
195195
public void run() {
196196
_startAnimation();
197197
}
198-
});
198+
}, 10);
199199
}
200200

201201
/**

0 commit comments

Comments
 (0)