Merge "Receiving a broadcast message when home screen is ready."

This commit is contained in:
Raj Garg
2021-11-23 08:51:46 +00:00
committed by Android (Google) Code Review

View File

@@ -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();
}