1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-08-29 09:02:19 +00: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

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();