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

Commit 13f41075 authored by Hansong Zhang's avatar Hansong Zhang
Browse files

Log when DEBUG is on

Bug: 181588752
Test: manual

Change-Id: I43331ad011c9667d05ca752f523bc65883977c3c
parent 36a42b63
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -103,8 +103,10 @@ public class AdvancedBluetoothDetailsHeaderController extends BasePreferenceCont
            new BluetoothAdapter.OnMetadataChangedListener() {
                @Override
                public void onMetadataChanged(BluetoothDevice device, int key, byte[] value) {
                    Log.i(TAG, String.format("Metadata updated in Device %s: %d = %s.", device, key,
                            value == null ? null : new String(value)));
                    if (DEBUG) {
                        Log.d(TAG, String.format("Metadata updated in Device %s: %d = %s.", device,
                                key, value == null ? null : new String(value)));
                    }
                    refresh();
                }
            };