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