OSDN Git Service

Prevent crash in recent app list
authorAntony Sargent <asargent@google.com>
Thu, 25 Jan 2018 00:14:16 +0000 (16:14 -0800)
committerAntony Sargent <asargent@google.com>
Thu, 25 Jan 2018 00:14:16 +0000 (16:14 -0800)
commite04101be07b2225ee51f474d8f254d892fc4c6bc
treeca124a6a03755a873e04f200dcdb576757199e66
parentc9afb5915cf1ed0a0cbc3831f5d70958e05456c9
Prevent crash in recent app list

In some situations if you have recently used an app and then uninstalled
it, the display of recent apps in Settings->Apps & notifications would
crash. This is due to a bug in recent CL that fixed b/71591298.

Test: make -j64 RunSettingsRoboTests
Change-Id: Id04b073b2617eeff0e188b10d3743496a9f70d5e
Fixes: 72340364
src/com/android/settings/applications/RecentAppsPreferenceController.java
src/com/android/settings/notification/RecentNotifyingAppsPreferenceController.java
tests/robotests/src/com/android/settings/applications/RecentAppsPreferenceControllerTest.java