Fix NPE in TelecomAdapter.stopForegroundNotification().

In InCallServiceImpl.tearDown(), we should only clear inCallService after
InCallPresenter.tearDown() where we remove all notification.

Also remove null
assertion in stopForegroundNotification() since other crash should only happens
when there is no notification.

Test: StatusBarNotifierTest
PiperOrigin-RevId: 172657924
Change-Id: I86e720b80f885aa93f12215fda899ee62eeaba5b
2 files changed
tree: aa6c70e1f0c287f013b068e95b10ca400f2a659f
  1. assets/
  2. java/
  3. Android.mk
  4. AndroidManifest.xml
  5. CONTRIBUTING
  6. LICENSE