get rid of some legacy stuff
This commit is contained in:
parent
28cc7322b3
commit
0ede5aa4d1
@ -444,7 +444,7 @@ public final class PlaybackService extends Service
|
||||
|
||||
getContentResolver().registerContentObserver(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, true, mObserver);
|
||||
|
||||
CompatIcs.registerRemote(this, mAudioManager);
|
||||
RemoteControl.registerRemote(this, mAudioManager);
|
||||
|
||||
mLooper = thread.getLooper();
|
||||
mHandler = new Handler(mLooper, this);
|
||||
@ -953,7 +953,7 @@ public final class PlaybackService extends Service
|
||||
|
||||
updateWidgets();
|
||||
|
||||
CompatIcs.updateRemote(this, mCurrentSong, mState);
|
||||
RemoteControl.updateRemote(this, mCurrentSong, mState);
|
||||
|
||||
if (mStockBroadcast)
|
||||
stockMusicBroadcast();
|
||||
|
@ -23,7 +23,6 @@
|
||||
|
||||
package ch.blinkenlights.android.vanilla;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.app.Activity;
|
||||
import android.graphics.Color;
|
||||
import android.os.Build;
|
||||
|
@ -22,7 +22,6 @@
|
||||
|
||||
package ch.blinkenlights.android.vanilla;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.app.PendingIntent;
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
@ -32,11 +31,8 @@ import android.media.AudioManager;
|
||||
import android.media.MediaMetadataRetriever;
|
||||
import android.media.RemoteControlClient;
|
||||
|
||||
/**
|
||||
* Framework methods only in ICS or above go here.
|
||||
*/
|
||||
@TargetApi(14)
|
||||
public class CompatIcs {
|
||||
|
||||
public class RemoteControl {
|
||||
/**
|
||||
* Used with updateRemote method.
|
||||
*/
|
Loading…
x
Reference in New Issue
Block a user