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

Commit 73617adc authored by Pavlin Radoslavov's avatar Pavlin Radoslavov Committed by android-build-merger
Browse files

Merge "Print the runtime blacklisted devices for AVRCP absolute volume control"

am: 715aeae1

Change-Id: Iedffd4e2b118dedb0da1355f7a7391c80505ba43
parents 1d1e7834 715aeae1
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -2366,6 +2366,20 @@ public final class Avrcp {
                ProfileService.println(sb, "  " + log);
            }
        }

        // Print the blacklisted devices (for absolute volume control)
        SharedPreferences pref =
                mContext.getSharedPreferences(ABSOLUTE_VOLUME_BLACKLIST, Context.MODE_PRIVATE);
        Map<String, ?> allKeys = pref.getAll();
        ProfileService.println(sb, "");
        ProfileService.println(sb, "Runtime Blacklisted Devices (absolute volume):");
        if (allKeys.isEmpty()) {
            ProfileService.println(sb, "  None");
        } else {
            for (String key : allKeys.keySet()) {
                ProfileService.println(sb, "  " + key);
            }
        }
    }

    public class AvrcpBrowseManager {