Skip to content
This repository was archived by the owner on Dec 19, 2021. It is now read-only.

Commit 6c76995

Browse files
committed
fix(android-loading-indicator): Remove use of setTimeout for popOver creation
setTimeout was previously used to seemingly unblock this creation, this is no longer required as this is completed in a promise now.
1 parent 040001a commit 6c76995

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/loading-indicator.android.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,9 @@ export class LoadingIndicator {
5555
if (!this._popOver) {
5656
this._isCreatingPopOver = true;
5757
new Promise((resolve) => {
58-
setTimeout(() => {
59-
this._createPopOver(context, options);
60-
this._loadersInstances.push(this._popOver);
61-
resolve();
62-
});
58+
this._createPopOver(context, options);
59+
this._loadersInstances.push(this._popOver);
60+
resolve();
6361
}).then(() => {
6462
this._isCreatingPopOver = false;
6563
}).catch((error) => {

0 commit comments

Comments
 (0)