diff --git a/app/build.gradle b/app/build.gradle index 7b69b5b72..b5a16ef9a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -196,9 +196,9 @@ dependencies { // Or you can use a commit you pushed to GitHub by just replacing TeamNewPipe with your GitHub // name and the commit hash with the commit hash of the (pushed) commit you want to test // This works thanks to JitPack: https://jitpack.io/ - implementation 'com.github.TeamNewPipe:nanojson:1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751' - implementation 'com.github.TeamNewPipe:NewPipeExtractor:289db1178ab66694c23893e6a487d4708343c47b' - implementation 'com.github.TeamNewPipe:NoNonsense-FilePicker:5.0.0' + implementation 'com.github.teamnewpipe:nanojson:1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751' + implementation 'com.github.teamnewpipe:NewPipeExtractor:289db1178ab66694c23893e6a487d4708343c47b' + implementation 'com.github.teamnewpipe:NoNonsense-FilePicker:5.0.0' /** Checkstyle **/ checkstyle "com.puppycrawl.tools:checkstyle:${checkstyleVersion}" diff --git a/app/src/main/java/org/schabi/newpipe/RouterActivity.java b/app/src/main/java/org/schabi/newpipe/RouterActivity.java index c59dc7532..c15a9a3b9 100644 --- a/app/src/main/java/org/schabi/newpipe/RouterActivity.java +++ b/app/src/main/java/org/schabi/newpipe/RouterActivity.java @@ -550,7 +550,6 @@ public class RouterActivity extends AppCompatActivity { final AdapterChoiceItem popupPlayer = new AdapterChoiceItem( getString(R.string.popup_player_key), getString(R.string.popup_player), R.drawable.ic_picture_in_picture); - final List returnedItems = new ArrayList<>(); returnedItems.add(showInfo); // Always present diff --git a/app/src/main/java/org/schabi/newpipe/fragments/detail/BaseDescriptionFragment.java b/app/src/main/java/org/schabi/newpipe/fragments/detail/BaseDescriptionFragment.java index e3bdc6592..0b7ffdfd0 100644 --- a/app/src/main/java/org/schabi/newpipe/fragments/detail/BaseDescriptionFragment.java +++ b/app/src/main/java/org/schabi/newpipe/fragments/detail/BaseDescriptionFragment.java @@ -44,7 +44,6 @@ import io.reactivex.rxjava3.disposables.CompositeDisposable; public abstract class BaseDescriptionFragment extends BaseFragment { private final CompositeDisposable descriptionDisposables = new CompositeDisposable(); protected FragmentDescriptionBinding binding; - @Override public View onCreateView(@NonNull final LayoutInflater inflater, @Nullable final ViewGroup container, diff --git a/app/src/main/java/org/schabi/newpipe/player/PlayQueueActivity.java b/app/src/main/java/org/schabi/newpipe/player/PlayQueueActivity.java index defc8ba21..698acc8aa 100644 --- a/app/src/main/java/org/schabi/newpipe/player/PlayQueueActivity.java +++ b/app/src/main/java/org/schabi/newpipe/player/PlayQueueActivity.java @@ -62,7 +62,7 @@ public final class PlayQueueActivity extends AppCompatActivity private static final int MENU_ID_AUDIO_TRACK = 71; private Player player; - + private boolean isFullscreen = false; private boolean serviceBound; private ServiceConnection serviceConnection; @@ -526,7 +526,6 @@ public final class PlayQueueActivity extends AppCompatActivity unbind(); finish(); } - //////////////////////////////////////////////////////////////////////////// // Binding Service Helper //////////////////////////////////////////////////////////////////////////// diff --git a/app/src/main/java/org/schabi/newpipe/player/helper/PlayerHelper.java b/app/src/main/java/org/schabi/newpipe/player/helper/PlayerHelper.java index a110a80d6..9a71013a4 100644 --- a/app/src/main/java/org/schabi/newpipe/player/helper/PlayerHelper.java +++ b/app/src/main/java/org/schabi/newpipe/player/helper/PlayerHelper.java @@ -387,7 +387,7 @@ public final class PlayerHelper { // 0: Screen orientation is locked // if the accelerometer sensor is missing completely, assume locked orientation return android.provider.Settings.System.getInt( - context.getContentResolver(), Settings.System.ACCELEROMETER_ROTATION, 0) == 0 + context.getContentResolver(), Settings.System.ACCELEROMETER_ROTATION, 1) == 0 || !context.getPackageManager() .hasSystemFeature(PackageManager.FEATURE_SENSOR_ACCELEROMETER); } diff --git a/app/src/main/java/org/schabi/newpipe/player/ui/MainPlayerUi.java b/app/src/main/java/org/schabi/newpipe/player/ui/MainPlayerUi.java index 03f90a344..7b03b6fb7 100644 --- a/app/src/main/java/org/schabi/newpipe/player/ui/MainPlayerUi.java +++ b/app/src/main/java/org/schabi/newpipe/player/ui/MainPlayerUi.java @@ -271,7 +271,7 @@ public final class MainPlayerUi extends VideoPlayerUi implements View.OnLayoutCh closeItemsList(); showHideKodiButton(); - binding.fullScreenButton.setVisibility(View.GONE); + binding.fullScreenButton.setVisibility(View.VISIBLE); setupScreenRotationButton(); binding.resizeTextView.setVisibility(View.VISIBLE); binding.getRoot().findViewById(R.id.metadataView).setVisibility(View.VISIBLE); diff --git a/app/src/main/res/drawable-xxxhdpi/magnify_button.png b/app/src/main/res/drawable-xxxhdpi/magnify_button.png new file mode 100644 index 000000000..aad13e4bb Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/magnify_button.png differ diff --git a/app/src/main/res/layout-large-land/fragment_video_detail.xml b/app/src/main/res/layout-large-land/fragment_video_detail.xml index d18681056..fde80ff9c 100644 --- a/app/src/main/res/layout-large-land/fragment_video_detail.xml +++ b/app/src/main/res/layout-large-land/fragment_video_detail.xml @@ -157,6 +157,15 @@ android:layout_height="match_parent" android:descendantFocusability="afterDescendants" /> + diff --git a/app/src/main/res/layout/fragment_video_detail.xml b/app/src/main/res/layout/fragment_video_detail.xml index 1a4711581..c344b6367 100644 --- a/app/src/main/res/layout/fragment_video_detail.xml +++ b/app/src/main/res/layout/fragment_video_detail.xml @@ -140,12 +140,23 @@ tools:progress="40" tools:visibility="visible" /> + + + diff --git a/app/src/main/res/values/settings_keys.xml b/app/src/main/res/values/settings_keys.xml index 880fa92da..426a7725d 100644 --- a/app/src/main/res/values/settings_keys.xml +++ b/app/src/main/res/values/settings_keys.xml @@ -85,7 +85,7 @@ start_main_player_fullscreen_key - + fullscreen_key autoplay_key @string/autoplay_wifi_key autoplay_always_key diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 435e9a382..5e6b6a2a5 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -466,6 +466,7 @@ No Captions Fit Fill + Fullscreen Zoom Auto-generated