Merge "(Take two) Do not hold lock when calling into NotificationManager" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ac77fab34c
@@ -15019,10 +15019,11 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
|
||||
}
|
||||
if (active) {
|
||||
if (shouldSendNotification) {
|
||||
sendNetworkLoggingNotification();
|
||||
mHandler.post(() -> sendNetworkLoggingNotification());
|
||||
}
|
||||
} else {
|
||||
mInjector.getNotificationManager().cancel(SystemMessage.NOTE_NETWORK_LOGGING);
|
||||
mHandler.post(() -> mInjector.getNotificationManager().cancel(
|
||||
SystemMessage.NOTE_NETWORK_LOGGING));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user