summaryrefslogtreecommitdiffstats
path: root/android/src/org/rockbox/Helper
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-07-18 21:26:03 +0000
committerThomas Martitz <kugel@rockbox.org>2011-07-18 21:26:03 +0000
commit02b2b285d6dfb798d09dab15614f38b8e7948a95 (patch)
tree8b80c43f8c7497744b2e32816c933bc1fdaefc9d /android/src/org/rockbox/Helper
parent33de9cdaefd8684e3411486612e68c0c2bd6be3d (diff)
downloadrockbox-02b2b285d6dfb798d09dab15614f38b8e7948a95.tar.gz
rockbox-02b2b285d6dfb798d09dab15614f38b8e7948a95.zip
Android: Slightly rework logging to logcat by offloading duplicated code to a new helper class.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30161 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'android/src/org/rockbox/Helper')
-rw-r--r--android/src/org/rockbox/Helper/MediaButtonReceiver.java3
-rw-r--r--android/src/org/rockbox/Helper/RunForegroundManager.java10
2 files changed, 1 insertions, 12 deletions
diff --git a/android/src/org/rockbox/Helper/MediaButtonReceiver.java b/android/src/org/rockbox/Helper/MediaButtonReceiver.java
index eebdbb985b..2334259c8e 100644
--- a/android/src/org/rockbox/Helper/MediaButtonReceiver.java
+++ b/android/src/org/rockbox/Helper/MediaButtonReceiver.java
@@ -29,7 +29,6 @@ import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.media.AudioManager;
-import android.util.Log;
import android.view.KeyEvent;
public class MediaButtonReceiver
@@ -144,7 +143,7 @@ public class MediaButtonReceiver
public void onAudioFocusChange(int focusChange)
{
- Log.d("Rockbox", "Audio focus" + ((focusChange>0)?"gained":"lost")+
+ Logger.d("Audio focus" + ((focusChange>0)?"gained":"lost")+
": "+ focusChange);
if (running)
{ /* Play nice and stop for the the other app */
diff --git a/android/src/org/rockbox/Helper/RunForegroundManager.java b/android/src/org/rockbox/Helper/RunForegroundManager.java
index 99287c3c6a..7677444374 100644
--- a/android/src/org/rockbox/Helper/RunForegroundManager.java
+++ b/android/src/org/rockbox/Helper/RunForegroundManager.java
@@ -40,16 +40,6 @@ public class RunForegroundManager
initForegroundCompat();
}
- private void LOG(CharSequence text)
- {
- Log.d("Rockbox", (String)text);
- }
-
- private void LOG(CharSequence text, Throwable tr)
- {
- Log.d("Rockbox", (String)text, tr);
- }
-
public void startForeground()
{
startForegroundCompat(R.string.notification, mNotification);