mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
Turn splash screen duration into a resource variable
so screenshot tests can define a different duration
This commit is contained in:
@@ -61,6 +61,8 @@ public class SplashScreenActivity extends BaseActivity {
|
||||
startNextActivity(ENTRY_ACTIVITY);
|
||||
finish();
|
||||
} else {
|
||||
int duration =
|
||||
getResources().getInteger(R.integer.splashScreenDuration);
|
||||
new Handler().postDelayed(() -> {
|
||||
if (currentTimeMillis() >= EXPIRY_DATE) {
|
||||
LOG.info("Expired");
|
||||
@@ -69,7 +71,7 @@ public class SplashScreenActivity extends BaseActivity {
|
||||
startNextActivity(ENTRY_ACTIVITY);
|
||||
}
|
||||
supportFinishAfterTransition();
|
||||
}, 500);
|
||||
}, duration);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user