mirror of https://github.com/TeamNewPipe/NewPipe
stability improvements
This commit is contained in:
parent
ca0d594547
commit
76ba2824a2
|
@ -143,6 +143,9 @@ public class VideoItemDetailFragment extends Fragment {
|
|||
View topView = activity.findViewById(R.id.detailTopView);
|
||||
Button channelButton = (Button) activity.findViewById(R.id.channel_button);
|
||||
|
||||
// prevents a crash if the activity/fragment was already left when the response came
|
||||
if(channelButton != null) {
|
||||
|
||||
progressBar.setVisibility(View.GONE);
|
||||
if (info.next_video != null) {
|
||||
// todo: activate this function or remove it
|
||||
|
@ -284,6 +287,7 @@ public class VideoItemDetailFragment extends Fragment {
|
|||
|
||||
initThumbnailViews(info);
|
||||
}
|
||||
}
|
||||
|
||||
private void initThumbnailViews(final StreamInfo info) {
|
||||
ImageView videoThumbnailView = (ImageView) activity.findViewById(R.id.detail_thumbnail_view);
|
||||
|
|
Loading…
Reference in New Issue