Skip to content

Commit d43a949

Browse files
committed
Replace android.util.log usages
1 parent fc067f0 commit d43a949

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

base/src/main/java/com/smartdevicelink/managers/screen/BaseSubscribeButtonManager.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.smartdevicelink.managers.screen;
22

33
import android.support.annotation.NonNull;
4-
import android.util.Log;
54

65
import com.smartdevicelink.managers.BaseSubManager;
76
import com.smartdevicelink.managers.CompletionListener;
@@ -17,6 +16,7 @@
1716
import com.smartdevicelink.proxy.rpc.enums.Result;
1817
import com.smartdevicelink.proxy.rpc.listeners.OnRPCNotificationListener;
1918
import com.smartdevicelink.proxy.rpc.listeners.OnRPCResponseListener;
19+
import com.smartdevicelink.util.DebugTool;
2020

2121
import java.util.HashMap;
2222
import 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

hello_sdl_java/src/main/java/com/smartdevicelink/java/SdlService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ private void subscribeToButtons() {
337337
@Override
338338
public void onPress(ButtonName buttonName, OnButtonPress buttonPress) {
339339
sdlManager.getScreenManager().setTextField1(buttonName + " pressed");
340-
Log.i(TAG, "onPress: " + buttonName);
340+
DebugTool.logInfo(TAG, "onPress: " + buttonName);
341341
}
342342

343343
@Override
@@ -347,7 +347,7 @@ public void onEvent(ButtonName buttonName, OnButtonEvent buttonEvent) {
347347

348348
@Override
349349
public void onError(String info) {
350-
Log.i(TAG, "onError: " + info);
350+
DebugTool.logInfo(TAG, "onError: " + info);
351351
}
352352
};
353353

0 commit comments

Comments
 (0)