Clear messages map AFTER notificationInfo map is cleared.

NotificationInfos hold reference to MessageKeys, which then map to
Messages. Since we were clearing the Messages map before Notification
Infos Map, and before clearNotifications(), NPEs were being thrown
when clearNotifications() was making an API call to a null Message
object.

Fix: 151448117
Test: verified on hawk by disconnecting a device, checking for NPE
Change-Id: Ifad7145dbae5774f9339ce74612d0a49a8b20ddb
1 file changed
tree: 31d9f3769f860e6066f09379047675002e7162da
  1. res/
  2. src/
  3. tests/
  4. Android.mk
  5. AndroidManifest.xml