Only allow seeking when action is set

Fixes: 132058610
Test: manual
Change-Id: I7b48ae610b69aedb42eeb2054fb4d597d6d1a684
This commit is contained in:
Beth Thibodeau
2019-05-06 09:43:26 -04:00
parent 56c006f5a6
commit 1c08164847

View File

@@ -206,7 +206,7 @@ public class NotificationMediaTemplateViewWrapper extends NotificationTemplateVi
long actions = mMediaController.getPlaybackState().getActions();
Log.d(TAG, "Playback state actions are " + actions);
return (actions == 0 || (actions & PlaybackState.ACTION_SEEK_TO) != 0);
return ((actions & PlaybackState.ACTION_SEEK_TO) != 0);
}
protected final Runnable mUpdatePlaybackUi = new Runnable() {