Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Fix issue #77931346: The notification that should not be named appeared
Browse files Browse the repository at this point in the history
Turn off the notification.  This just adds a boolean to
conditionally turn off the generation of the notification...
all of the logic for what is in it and when it is shown is
still there for now, to reduce the amount of change at this
point, continue to have it in bug reports, and I am not sure
if we might want to do some other visualization of this in
the future.

Bug: 77931346
Test: manual
Change-Id: I38663b6defb15ae925c2e6a4df9e2f0a9a023050
  • Loading branch information
Dianne Hackborn committed May 2, 2018
1 parent 12f404e commit 070d142
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions services/core/java/com/android/server/am/ActiveServices.java
Expand Up @@ -108,6 +108,8 @@ public final class ActiveServices {

private static final boolean LOG_SERVICE_START_STOP = false;

private static final boolean SHOW_DUNGEON_NOTIFICATION = false;

// How long we wait for a service to finish executing.
static final int SERVICE_TIMEOUT = 20*1000;

Expand Down Expand Up @@ -942,6 +944,10 @@ void updateForegroundApps(ServiceMap smap) {
smap.mActiveForegroundAppsChanged = false;
}

if (!SHOW_DUNGEON_NOTIFICATION) {
return;
}

final NotificationManager nm = (NotificationManager) mAm.mContext.getSystemService(
Context.NOTIFICATION_SERVICE);
final Context context = mAm.mContext;
Expand Down

0 comments on commit 070d142

Please sign in to comment.