diff options
author | 2021-11-02 09:54:02 +0000 | |
---|---|---|
committer | 2021-11-03 08:19:58 +0000 | |
commit | be02fd2ec3b388ba4946a4a3bb6d8eb71f1e43df (patch) | |
tree | 9b00b6ca3772f53bf835184ce630b26ef5eec311 | |
parent | 7f6b9e26c933a291dbdbe01f18706924bf8839cd (diff) |
Receiving a broadcast message when home screen is ready.
There is a lag between Pixel/Phone is starting message is displayed and
when the home screen is actually ready. The lag is visible in low-end
devices like JioPhone Next. To solve that a broadcast message is sent
from the QuickstepLauncher class when the UI is ready and the
FallbackHome activity is finished listening to that broadcast message.
Bug: 199120420
Test: Tested on device
Change-Id: Ibc101a249c6dddcb890e8c3b75c9e27858844e9d
-rw-r--r-- | src/com/android/settings/FallbackHome.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/settings/FallbackHome.java b/src/com/android/settings/FallbackHome.java index 40867aa0726..6dfc3d3f30c 100644 --- a/src/com/android/settings/FallbackHome.java +++ b/src/com/android/settings/FallbackHome.java @@ -41,6 +41,7 @@ import android.view.animation.AnimationUtils; import java.util.Objects; public class FallbackHome extends Activity { + public static final String HOME_IS_READY = "com.android.launcher3.HOME_IS_READY"; private static final String TAG = "FallbackHome"; private static final int PROGRESS_TIMEOUT = 2000; @@ -99,7 +100,9 @@ public class FallbackHome extends Activity { } getWindow().getDecorView().setSystemUiVisibility(flags); - registerReceiver(mReceiver, new IntentFilter(Intent.ACTION_USER_UNLOCKED)); + IntentFilter iFilter = new IntentFilter(); + iFilter.addAction(HOME_IS_READY); + registerReceiver(mReceiver, iFilter); maybeFinish(); } |