[Android] Init playlist UI later
Geoffrey Métais
git at videolan.org
Thu Aug 3 15:44:51 CEST 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Aug 3 12:20:33 2017 +0200| [42c599db8807a372bd77de34a8fa6ff9c954bbe1] | committer: Geoffrey Métais
Init playlist UI later
> https://code.videolan.org/videolan/vlc-android/commit/42c599db8807a372bd77de34a8fa6ff9c954bbe1
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 5 -----
1 file changed, 5 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 0c5ea81a2..e8e302845 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -868,15 +868,11 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
loadMedia();
boolean ratePref = mSettings.getBoolean(PreferencesActivity.KEY_AUDIO_PLAYBACK_SPEED_PERSIST, true);
mService.setRate(ratePref || mRateHasChanged ? mSettings.getFloat(PreferencesActivity.VIDEO_RATE, 1.0f) : 1.0F, false);
-
- initPlaylistUi();
}
private void initPlaylistUi() {
if (mService.hasPlaylist()) {
mPlaylistPrevious = (ImageView) findViewById(R.id.playlist_previous);
- if (mPlaylistPrevious == null)
- return; //player HUD not yet inflated
mPlaylistNext = (ImageView) findViewById(R.id.playlist_next);
mPlaylistAdapter = new PlaylistAdapter(this);
mPlaylistAdapter.setService(mService);
@@ -889,7 +885,6 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
mPlaylistToggle.setOnClickListener(VideoPlayerActivity.this);
mPlaylistPrevious.setOnClickListener(VideoPlayerActivity.this);
mPlaylistNext.setOnClickListener(VideoPlayerActivity.this);
- mSeekbar.setNextFocusUpId(mPlaylistToggle.getId());
ItemTouchHelper.Callback callback = new SwipeDragItemTouchHelperCallback(mPlaylistAdapter);
ItemTouchHelper touchHelper = new ItemTouchHelper(callback);
More information about the Android
mailing list