Fix incorrect app count displayed under special app access

- This special app Google Play services will change its hasLauncherEntry
  value after receiving the MSG_LOAD_LAUNCHER.
- Update the summary while SpecialAppAccessPreferenceController is
  receiving the onLauncherInfoChanged callback.

Fixes: 150480524
Test: manual test
Change-Id: I26b99fce54606644ee5603b4ca4730267c0f7ce5
This commit is contained in:
Sunny Shao
2020-04-16 21:27:48 +08:00
parent c858484fe6
commit d63c5ebff5

View File

@@ -144,10 +144,11 @@ public class SpecialAppAccessPreferenceController extends BasePreferenceControll
@Override @Override
public void onLauncherInfoChanged() { public void onLauncherInfoChanged() {
// when the value of the AppEntry.hasLauncherEntry was changed.
updateSummary();
} }
@Override @Override
public void onLoadEntriesCompleted() { public void onLoadEntriesCompleted() {
} }
} }