From 13c4e86c7db074d84868208f2c8ca04c527f235c Mon Sep 17 00:00:00 2001 From: Karim Abou Zeid Date: Thu, 24 Mar 2016 17:59:13 +0100 Subject: [PATCH] Removed some no longer needed logs. --- .../gramophone/helper/MusicPlayerRemote.java | 4 ---- .../kabouzeid/gramophone/service/MusicService.java | 13 ------------- .../ui/activities/base/AbsMusicServiceActivity.java | 2 -- 3 files changed, 19 deletions(-) diff --git a/app/src/main/java/com/kabouzeid/gramophone/helper/MusicPlayerRemote.java b/app/src/main/java/com/kabouzeid/gramophone/helper/MusicPlayerRemote.java index aff789d2..4fd04cea 100644 --- a/app/src/main/java/com/kabouzeid/gramophone/helper/MusicPlayerRemote.java +++ b/app/src/main/java/com/kabouzeid/gramophone/helper/MusicPlayerRemote.java @@ -21,8 +21,6 @@ import java.util.ArrayList; import java.util.Random; import java.util.WeakHashMap; -import hugo.weaving.DebugLog; - /** * @author Karim Abou Zeid (kabouzeid) */ @@ -35,7 +33,6 @@ public class MusicPlayerRemote { private static final WeakHashMap mConnectionMap = new WeakHashMap<>(); - @DebugLog public static ServiceToken bindToService(@NonNull final Context context, final ServiceConnection callback) { Activity realActivity = ((Activity) context).getParent(); @@ -55,7 +52,6 @@ public class MusicPlayerRemote { return null; } - @DebugLog public static void unbindFromService(@Nullable final ServiceToken token) { if (token == null) { return; diff --git a/app/src/main/java/com/kabouzeid/gramophone/service/MusicService.java b/app/src/main/java/com/kabouzeid/gramophone/service/MusicService.java index 5e158656..65c4599c 100644 --- a/app/src/main/java/com/kabouzeid/gramophone/service/MusicService.java +++ b/app/src/main/java/com/kabouzeid/gramophone/service/MusicService.java @@ -58,8 +58,6 @@ import java.lang.ref.WeakReference; import java.util.ArrayList; import java.util.List; -import hugo.weaving.DebugLog; - /** * @author Karim Abou Zeid (kabouzeid), Andrew Neal */ @@ -156,7 +154,6 @@ public class MusicService extends Service implements SharedPreferences.OnSharedP return MusicUtil.getSongFileUri(song.id).toString(); } - @DebugLog @Override public void onCreate() { super.onCreate(); @@ -231,7 +228,6 @@ public class MusicService extends Service implements SharedPreferences.OnSharedP getAudioManager().registerRemoteControlClient(remoteControlClient); } - @DebugLog @Override public int onStartCommand(@Nullable Intent intent, int flags, int startId) { if (intent != null) { @@ -268,7 +264,6 @@ public class MusicService extends Service implements SharedPreferences.OnSharedP return START_STICKY; } - @DebugLog @Override public void onDestroy() { quit(); @@ -278,20 +273,17 @@ public class MusicService extends Service implements SharedPreferences.OnSharedP wakeLock.release(); } - @DebugLog @Override public IBinder onBind(Intent intent) { isServiceBound = true; return musicBind; } - @DebugLog @Override public void onRebind(Intent intent) { isServiceBound = true; } - @DebugLog @Override public boolean onUnbind(Intent intent) { isServiceBound = false; @@ -365,7 +357,6 @@ public class MusicService extends Service implements SharedPreferences.OnSharedP playerHandler.sendEmptyMessage(RESTORE_QUEUES); } - @DebugLog private void restoreQueuesAndPositionImpl() { ArrayList restoredQueue = MusicPlaybackQueueStore.getInstance(this).getSavedPlayingQueue(); ArrayList restoredOriginalQueue = MusicPlaybackQueueStore.getInstance(this).getSavedOriginalPlayingQueue(); @@ -901,20 +892,17 @@ public class MusicService extends Service implements SharedPreferences.OnSharedP notifyChange(QUEUE_CHANGED); } - @DebugLog private void notifyChange(@NonNull final String what) { notifyPrivateChange(what); sendPublicIntent(what); } - @DebugLog private void notifyPrivateChange(@NonNull final String what) { handleChange(what); sendPrivateIntent(what); } // to let other apps know whats playing. i.E. last.fm (scrobbling) or musixmatch - @DebugLog private void sendPublicIntent(@NonNull final String what) { final Intent intent = new Intent(what.replace(PHONOGRAPH_PACKAGE_NAME, MUSIC_PACKAGE_NAME)); @@ -931,7 +919,6 @@ public class MusicService extends Service implements SharedPreferences.OnSharedP sendStickyBroadcast(intent); } - @DebugLog private void sendPrivateIntent(final String what) { sendBroadcast(new Intent(what)); } diff --git a/app/src/main/java/com/kabouzeid/gramophone/ui/activities/base/AbsMusicServiceActivity.java b/app/src/main/java/com/kabouzeid/gramophone/ui/activities/base/AbsMusicServiceActivity.java index 0183a174..8bdd1da1 100644 --- a/app/src/main/java/com/kabouzeid/gramophone/ui/activities/base/AbsMusicServiceActivity.java +++ b/app/src/main/java/com/kabouzeid/gramophone/ui/activities/base/AbsMusicServiceActivity.java @@ -35,7 +35,6 @@ public abstract class AbsMusicServiceActivity extends AbsBaseActivity implements private boolean receiverRegistered; - @DebugLog @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); @@ -54,7 +53,6 @@ public abstract class AbsMusicServiceActivity extends AbsBaseActivity implements setPermissionDeniedMessage(getString(R.string.permission_external_storage_denied)); } - @DebugLog @Override protected void onDestroy() { super.onDestroy();