1
0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2024-11-23 03:22:37 +01:00

Merge pull request #193 from satiricon/fix-autoplay

Fix ArrayIndexOutOfBoundsException when using autoplay
This commit is contained in:
Christian Schabesberger 2016-02-19 15:14:06 +01:00
commit 5a594173fa

View File

@ -344,6 +344,8 @@ public class VideoItemDetailFragment extends Fragment {
activity.findViewById(R.id.similarVideosView).setVisibility(View.GONE);
}
setupActionBarHandler(info);
if(autoPlayEnabled) {
playVideo(info);
}
@ -364,7 +366,6 @@ public class VideoItemDetailFragment extends Fragment {
}
});
setupActionBarHandler(info);
} catch (java.lang.NullPointerException e) {
Log.w(TAG, "updateInfo(): Fragment closed before thread ended work... or else");
e.printStackTrace();