get rid of some legacy stuff

This commit is contained in:
Adrian Ulrich 2014-10-14 10:23:58 +02:00
parent 28cc7322b3
commit 0ede5aa4d1
3 changed files with 4 additions and 9 deletions

View File

@ -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();

View File

@ -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;

View File

@ -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.
*/