- new Handler().postDelayed(this::startMainActivity,
- keepActiveForMS - (now - startupTime));
+ final long delay = keepActiveForMS - (now - startupTime);
+ Logger.debug("splash",
+ String.format(Locale.ROOT, "Scheduling main activity start in %d milliseconds",
+ delay));
+ new Handler(Looper.getMainLooper()).postDelayed(this::startMainActivity, delay);