Clean ups and refactoring.
This commit is contained in:
parent
9eb147625c
commit
73d613d11d
32 changed files with 239 additions and 295 deletions
|
|
@ -21,6 +21,8 @@ import java.util.ArrayList;
|
|||
import java.util.Random;
|
||||
import java.util.WeakHashMap;
|
||||
|
||||
import hugo.weaving.DebugLog;
|
||||
|
||||
/**
|
||||
* @author Karim Abou Zeid (kabouzeid)
|
||||
*/
|
||||
|
|
@ -33,6 +35,7 @@ public class MusicPlayerRemote {
|
|||
|
||||
private static final WeakHashMap<Context, ServiceBinder> mConnectionMap = new WeakHashMap<>();
|
||||
|
||||
@DebugLog
|
||||
public static ServiceToken bindToService(@NonNull final Context context,
|
||||
final ServiceConnection callback) {
|
||||
Activity realActivity = ((Activity) context).getParent();
|
||||
|
|
@ -52,6 +55,7 @@ public class MusicPlayerRemote {
|
|||
return null;
|
||||
}
|
||||
|
||||
@DebugLog
|
||||
public static void unbindFromService(@Nullable final ServiceToken token) {
|
||||
if (token == null) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue