Don't worry about unsetting the service in unbindService
This isn't necessary now that this only occurs when the activity finishes
This commit is contained in:
parent
ff91e51451
commit
d936e35483
@ -23,7 +23,6 @@ import org.kreed.vanilla.R;
|
|||||||
|
|
||||||
import android.app.Dialog;
|
import android.app.Dialog;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.ServiceConnection;
|
|
||||||
import android.graphics.Color;
|
import android.graphics.Color;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
@ -123,13 +122,6 @@ public class NowPlayingActivity extends PlaybackServiceActivity implements View.
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void unbindService(ServiceConnection connection)
|
|
||||||
{
|
|
||||||
super.unbindService(connection);
|
|
||||||
mHandler.sendEmptyMessage(UNSET_SERVICE);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void setState(int state)
|
protected void setState(int state)
|
||||||
{
|
{
|
||||||
@ -344,7 +336,6 @@ public class NowPlayingActivity extends PlaybackServiceActivity implements View.
|
|||||||
|
|
||||||
private static final int HIDE = 0;
|
private static final int HIDE = 0;
|
||||||
private static final int UPDATE_PROGRESS = 1;
|
private static final int UPDATE_PROGRESS = 1;
|
||||||
private static final int UNSET_SERVICE = 2;
|
|
||||||
|
|
||||||
private Handler mHandler = new Handler() {
|
private Handler mHandler = new Handler() {
|
||||||
public void handleMessage(Message message) {
|
public void handleMessage(Message message) {
|
||||||
@ -357,9 +348,6 @@ public class NowPlayingActivity extends PlaybackServiceActivity implements View.
|
|||||||
case UPDATE_PROGRESS:
|
case UPDATE_PROGRESS:
|
||||||
updateProgress();
|
updateProgress();
|
||||||
break;
|
break;
|
||||||
case UNSET_SERVICE:
|
|
||||||
setService(null);
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user