diff options
| author | 2019-05-06 09:43:26 -0400 | |
|---|---|---|
| committer | 2019-05-06 09:54:00 -0400 | |
| commit | 1c0816484779a08a55e618b637c49d25f02b794b (patch) | |
| tree | bc5a70a17fa3ad9edef4cb0cb85da553cc121dc6 | |
| parent | 56c006f5a6238bc73731cc8d77009c72e9602c27 (diff) | |
Only allow seeking when action is set
Fixes: 132058610
Test: manual
Change-Id: I7b48ae610b69aedb42eeb2054fb4d597d6d1a684
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/NotificationMediaTemplateViewWrapper.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/NotificationMediaTemplateViewWrapper.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/NotificationMediaTemplateViewWrapper.java index f9a98ad297f5..91c43a142db5 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/NotificationMediaTemplateViewWrapper.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/NotificationMediaTemplateViewWrapper.java @@ -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() { |