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:
Christopher Eby 2010-03-21 16:26:30 -05:00
parent ff91e51451
commit d936e35483

View File

@ -23,7 +23,6 @@ import org.kreed.vanilla.R;
import android.app.Dialog;
import android.content.Intent;
import android.content.ServiceConnection;
import android.graphics.Color;
import android.os.Bundle;
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
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 UPDATE_PROGRESS = 1;
private static final int UNSET_SERVICE = 2;
private Handler mHandler = new Handler() {
public void handleMessage(Message message) {
@ -357,9 +348,6 @@ public class NowPlayingActivity extends PlaybackServiceActivity implements View.
case UPDATE_PROGRESS:
updateProgress();
break;
case UNSET_SERVICE:
setService(null);
break;
}
}
};