Add silent status bar icon setting
Test: atest Bug: 123419917 Change-Id: I40fe580b76589c45a70365c09a966a76b5bc882b
This commit is contained in:
@@ -300,6 +300,23 @@ public class NotificationBackend {
|
||||
}
|
||||
}
|
||||
|
||||
public boolean shouldHideSilentStatusBarIcons(Context context) {
|
||||
try {
|
||||
return sINM.shouldHideSilentStatusIcons(context.getPackageName());
|
||||
} catch (Exception e) {
|
||||
Log.w(TAG, "Error calling NoMan", e);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public void setHideSilentStatusIcons(boolean hide) {
|
||||
try {
|
||||
sINM.setHideSilentStatusIcons(hide);
|
||||
} catch (Exception e) {
|
||||
Log.w(TAG, "Error calling NoMan", e);
|
||||
}
|
||||
}
|
||||
|
||||
protected void recordAggregatedUsageEvents(Context context, AppRow appRow) {
|
||||
long now = System.currentTimeMillis();
|
||||
long startTime = now - (DateUtils.DAY_IN_MILLIS * DAYS_TO_CHECK);
|
||||
|
Reference in New Issue
Block a user