Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 52ebc15c authored by Jan Althaus's avatar Jan Althaus
Browse files

Log whether notification channel updates are user initiated

Bug: 124785950
Test: atest core/tests/coretests/src/android/service/notification
Test: (MANUAL):
      1. adb logcat -b events | grep sysui_multi_action
      2. Change priority of notification channel
      3. Observe event "757,856,..."

Change-Id: I34005c092290dd8bc5380f937a386e567dab38b0
parent a3c3cf43
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -722,7 +722,8 @@ public class PreferencesHelper implements RankingConfig {

        if (!channel.equals(updatedChannel)) {
            // only log if there are real changes
            MetricsLogger.action(getChannelLog(updatedChannel, pkg));
            MetricsLogger.action(getChannelLog(updatedChannel, pkg)
                    .setSubtype(fromUser ? 1 : 0));
        }

        if (updatedChannel.canBypassDnd() != mAreChannelsBypassingDnd