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

Commit 6706a403 authored by Jakub Tyszkowski's avatar Jakub Tyszkowski Committed by Grzegorz Kołodziejczyk
Browse files

leaudio/testapp: Show broadcast ID also in Hex

This is helpful mostly during Interoperability
and qualification tests.

Bug: 230340466
Tag: #feature
Sponsor: jpawlowski@
Test: atest LeAudioBroadcastServiceTest
Change-Id: I407dc7816fca30bee7b78202c6852e6ee1f1de99
Merged-In: I407dc7816fca30bee7b78202c6852e6ee1f1de99
(cherry picked from commit e3b00780)
parent 397f0dc8
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -66,14 +66,17 @@ public class BroadcastItemsAdapter
            if (isPlaying) {
                holder.background
                .setCardBackgroundColor(ColorStateList.valueOf(Color.parseColor("#92b141")));
                holder.mTextViewBroadcastId.setText("ID: " + broadcastId + " ▶️");
                holder.mTextViewBroadcastId.setText("ID: " + broadcastId
                        + "(" + String.format("0x%x", broadcastId) + ") ▶️");
            } else {
                holder.background.setCardBackgroundColor(ColorStateList.valueOf(Color.WHITE));
                holder.mTextViewBroadcastId.setText("ID: " + broadcastId + " ⏸");
                holder.mTextViewBroadcastId.setText("ID: " + broadcastId
                        + "(" + String.format("0x%x", broadcastId) + ") ⏸");
            }
        } else {
            holder.background.setCardBackgroundColor(ColorStateList.valueOf(Color.WHITE));
            holder.mTextViewBroadcastId.setText("ID: " + broadcastId);
            holder.mTextViewBroadcastId.setText("ID: " + broadcastId
                        + "(" + String.format("0x%x", broadcastId) + ")");
        }

        // TODO: Add additional informations to the card