Only send new first screen broadcast on first load after restore

Flag: EXEMPT launcher_broadcast_installed_apps
Bug: 322314760
Test: manually tested
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:30a3acc7796850caa6be51b6c46d26d35dfb0b3c)
Merged-In: I28a3ee1fb2c5c382ea8789b6e966c80db1abf0e0
Change-Id: I28a3ee1fb2c5c382ea8789b6e966c80db1abf0e0
This commit is contained in:
Charlie Anderson
2024-06-18 13:22:01 -04:00
committed by Android Build Coastguard Worker
parent 653650bb32
commit 35439c0821
2 changed files with 170 additions and 3 deletions

View File

@@ -209,7 +209,7 @@ public class LoaderTask implements Runnable {
mApp.getContext().getContentResolver(),
"launcher_broadcast_installed_apps",
/* def= */ 0);
if (launcherBroadcastInstalledApps == 1) {
if (launcherBroadcastInstalledApps == 1 && mIsRestoreFromBackup) {
List<FirstScreenBroadcastModel> broadcastModels =
FirstScreenBroadcastHelper.createModelsForFirstScreenBroadcast(
mPmHelper,