Skip to content

Commit 04d1f96

Browse files
use delay again on android
1 parent cc3ba55 commit 04d1f96

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

android/app/src/main/java/im/status/ethereum/MainActivity.java

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ public class MainActivity extends NavigationActivity
4343

4444

4545
@Nullable private PermissionListener mPermissionListener;
46-
private boolean keep = true;
47-
private final int DELAY = 2500;
46+
private boolean keepSplash = true;
47+
private final int SPLASH_DELAY = 6200;
4848

4949
private static void registerUncaughtExceptionHandler(final Context context) {
5050
final Thread.UncaughtExceptionHandler defaultUncaughtExceptionHandler = Thread.getDefaultUncaughtExceptionHandler();
@@ -194,16 +194,13 @@ public void run() {
194194
// on first start emit will (silently) fail, but the regular deep linking handler will work
195195
tryToEmit("url", event);
196196
}
197-
198-
keep = false;
199197
}
200198
};
201199

202-
splashScreen.setKeepOnScreenCondition(() -> keep);
203-
/*
200+
splashScreen.setKeepOnScreenCondition(() -> keepSplash);
201+
204202
Handler handler = new Handler();
205-
handler.postDelayed(() -> keep = false, DELAY);
206-
*/
203+
handler.postDelayed(() -> keepSplash = false, SPLASH_DELAY);
207204

208205
StatusThreadPoolExecutor.getInstance().execute(r);
209206
}

0 commit comments

Comments
 (0)