Stop rate-limiting toasts while the package is in the foreground.

Bug: 185107358
Test: atest NotificationManagerServiceTest
Change-Id: I53b8ec8929c87f31fb948a17f7ff6876aa7a6858
2 files changed