11package com .smartdevicelink .managers .screen ;
22
33import android .support .annotation .NonNull ;
4- import android .util .Log ;
54
65import com .smartdevicelink .managers .BaseSubManager ;
76import com .smartdevicelink .managers .CompletionListener ;
1716import com .smartdevicelink .proxy .rpc .enums .Result ;
1817import com .smartdevicelink .proxy .rpc .listeners .OnRPCNotificationListener ;
1918import com .smartdevicelink .proxy .rpc .listeners .OnRPCResponseListener ;
19+ import com .smartdevicelink .util .DebugTool ;
2020
2121import java .util .HashMap ;
2222import java .util .concurrent .CopyOnWriteArrayList ;
@@ -64,7 +64,7 @@ public void dispose() {
6464 */
6565 void addButtonListener (ButtonName buttonName , OnButtonListener listener ) {
6666 if (listener == null ) {
67- Log . e (TAG , "OnButtonListener cannot be null" );
67+ DebugTool . logError (TAG , "OnButtonListener cannot be null" );
6868 return ;
6969 }
7070 if (buttonName == null ) {
@@ -78,7 +78,7 @@ void addButtonListener(ButtonName buttonName, OnButtonListener listener) {
7878 }
7979
8080 if (onButtonListeners .get (buttonName ).contains (listener )) {
81- Log . w (TAG , "Already subscribed to button named: " + buttonName );
81+ DebugTool . logWarning (TAG , "Already subscribed to button named: " + buttonName );
8282 return ;
8383 }
8484 onButtonListeners .get (buttonName ).add (listener );
@@ -92,7 +92,7 @@ void addButtonListener(ButtonName buttonName, OnButtonListener listener) {
9292 */
9393 void removeButtonListener (final ButtonName buttonName , final OnButtonListener listener ) {
9494 if (listener == null ) {
95- Log . e (TAG , "OnButtonListener cannot be null: " );
95+ DebugTool . logError (TAG , "OnButtonListener cannot be null: " );
9696 return ;
9797 }
9898
0 commit comments