Merge pull request #195 from xbao/bug/swipe-up-toggle-controls-broken
Added performAction in PlaybackActivity.
This commit is contained in:
commit
0dc422a37b
@ -710,13 +710,14 @@ public class FullPlaybackActivity extends PlaybackActivity
|
||||
mSeekBarTracking = false;
|
||||
}
|
||||
|
||||
public void performAction(Action action)
|
||||
@Override
|
||||
protected void performAction(Action action)
|
||||
{
|
||||
if (action == Action.ToggleControls) {
|
||||
setControlsVisible(!mControlsVisible);
|
||||
mHandler.sendEmptyMessage(MSG_SAVE_CONTROLS);
|
||||
} else {
|
||||
PlaybackService.get(this).performAction(action, this);
|
||||
super.performAction(action);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -540,13 +540,18 @@ public abstract class PlaybackActivity extends Activity
|
||||
@Override
|
||||
public void upSwipe()
|
||||
{
|
||||
PlaybackService.get(this).performAction(mUpAction, this);
|
||||
performAction(mUpAction);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void downSwipe()
|
||||
{
|
||||
PlaybackService.get(this).performAction(mDownAction, this);
|
||||
performAction(mDownAction);
|
||||
}
|
||||
|
||||
protected void performAction(Action action)
|
||||
{
|
||||
PlaybackService.get(this).performAction(action, this);
|
||||
}
|
||||
|
||||
private static final int GROUP_SHUFFLE = 100;
|
||||
|
Loading…
x
Reference in New Issue
Block a user