summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author My Name <rajgarg@google.com> 2022-02-01 13:38:37 +0000
committer My Name <rajgarg@google.com> 2022-02-02 06:08:10 +0000
commit2b860e009f61e75e2fca929640a8b2fed18117cd (patch)
tree62481b44c8a7ee40d6530e896731f6d02724d086
parentfa68d9faa9d02c5cb2917b7d149e93554c03a453 (diff)
Adding configuration to timeout for "Android is starting message"
Low end devices takes longer than 2sec for booting generally. The timeout keeps the screen blank for 2sec. Adding a configuration so that we can override it for JioPhone Next. Bug: 199120420 Test: tested manually on cuttlefish Change-Id: I58c649e05f0023d4c1ee9d5117d8ca143b2ffa6a
-rw-r--r--src/com/android/settings/FallbackHome.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/com/android/settings/FallbackHome.java b/src/com/android/settings/FallbackHome.java
index 40867aa0726..b70470b5318 100644
--- a/src/com/android/settings/FallbackHome.java
+++ b/src/com/android/settings/FallbackHome.java
@@ -42,7 +42,7 @@ import java.util.Objects;
public class FallbackHome extends Activity {
private static final String TAG = "FallbackHome";
- private static final int PROGRESS_TIMEOUT = 2000;
+ private int mProgressTimeout;
private boolean mProvisioned;
private WallpaperManager mWallManager;
@@ -76,6 +76,12 @@ public class FallbackHome extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+ mProgressTimeout = getResources().getInteger(
+ com.android.internal.R.integer.config_progressTimeoutFallbackHome);
+
+ if (mProgressTimeout <= 0) {
+ mProgressTimeout = 0;
+ }
// Set ourselves totally black before the device is provisioned so that
// we don't flash the wallpaper before SUW
@@ -107,7 +113,7 @@ public class FallbackHome extends Activity {
protected void onResume() {
super.onResume();
if (mProvisioned) {
- mHandler.postDelayed(mProgressTimeoutRunnable, PROGRESS_TIMEOUT);
+ mHandler.postDelayed(mProgressTimeoutRunnable, mProgressTimeout);
}
}