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

Commit d8a71c90 authored by Arthur Hung's avatar Arthur Hung
Browse files

Additional logging for usageHint if ban vibrations

Additional logging to check if condition missed.

Bug: 122086418
Test: manual
Change-Id: I9ffeb274b313a22a6ac774c09f7c1c79630c2f64
parent 9aff88bd
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -594,8 +594,9 @@ public class VibratorService extends IVibratorService.Stub
                if (mProcStatesCache.get(uid, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND)
                        > ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND
                        && !vib.isNotification() && !vib.isRingtone()) {
                    Slog.e(TAG, "Ignoring incoming vibration as process with uid = "
                            + uid + " is background");
                    Slog.e(TAG, "Ignoring incoming vibration as process with"
                            + " uid = " + uid + " is background,"
                            + " usage = " + AudioAttributes.usageToString(vib.usageHint));
                    return;
                }
                linkVibration(vib);