From e4766c936313eb328649e1d74328b6de90b7b3b0 Mon Sep 17 00:00:00 2001 From: Stefan Schueller Date: Sun, 5 Jul 2020 15:11:48 +0200 Subject: [PATCH] Code cleanup --- .../schueller/peertube/fragment/VideoMenuQualityFragment.java | 2 +- .../net/schueller/peertube/fragment/VideoOptionsFragment.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/net/schueller/peertube/fragment/VideoMenuQualityFragment.java b/app/src/main/java/net/schueller/peertube/fragment/VideoMenuQualityFragment.java index da55956..acfae47 100644 --- a/app/src/main/java/net/schueller/peertube/fragment/VideoMenuQualityFragment.java +++ b/app/src/main/java/net/schueller/peertube/fragment/VideoMenuQualityFragment.java @@ -79,7 +79,7 @@ public class VideoMenuQualityFragment extends BottomSheetDialogFragment { for (File file : mFiles) { - LinearLayout menuRow = (LinearLayout) inflater.inflate(R.layout.row_popup_menu, null); + LinearLayout menuRow = (LinearLayout) inflater.inflate(R.layout.row_popup_menu, container); TextView iconView = menuRow.findViewById(R.id.video_quality_icon); iconView.setId(file.getResolution().getId()); diff --git a/app/src/main/java/net/schueller/peertube/fragment/VideoOptionsFragment.java b/app/src/main/java/net/schueller/peertube/fragment/VideoOptionsFragment.java index ada3fdf..e9357c8 100644 --- a/app/src/main/java/net/schueller/peertube/fragment/VideoOptionsFragment.java +++ b/app/src/main/java/net/schueller/peertube/fragment/VideoOptionsFragment.java @@ -64,7 +64,7 @@ public class VideoOptionsFragment extends BottomSheetDialogFragment { LinearLayout menuHolder = view.findViewById(R.id.video_options_popup); // Video Speed - LinearLayout menuRow = (LinearLayout) inflater.inflate(R.layout.row_popup_menu, null); + LinearLayout menuRow = (LinearLayout) inflater.inflate(R.layout.row_popup_menu, container); TextView iconView = menuRow.findViewById(R.id.video_quality_icon); TextView textView = menuRow.findViewById(R.id.video_quality_text); @@ -88,7 +88,7 @@ public class VideoOptionsFragment extends BottomSheetDialogFragment { menuHolder.addView(menuRow); // Video Quality - LinearLayout menuRow2 = (LinearLayout) inflater.inflate(R.layout.row_popup_menu, null); + LinearLayout menuRow2 = (LinearLayout) inflater.inflate(R.layout.row_popup_menu, container); TextView iconView2 = menuRow2.findViewById(R.id.video_quality_icon); TextView textView2 = menuRow2.findViewById(R.id.video_quality_text); textView2.setText(String.format(getString(R.string.menu_video_options_quality), getCurrentVideoQuality(files)));