mirror of https://github.com/TeamNewPipe/NewPipe
finish the rotation method with click the button.
This commit is contained in:
parent
6f51c47dc9
commit
495f9b2eab
|
@ -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}"
|
||||
|
|
|
@ -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<AdapterChoiceItem> returnedItems = new ArrayList<>();
|
||||
returnedItems.add(showInfo); // Always present
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 3.3 KiB |
|
@ -157,6 +157,15 @@
|
|||
android:layout_height="match_parent"
|
||||
android:descendantFocusability="afterDescendants" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/magnify_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|end"
|
||||
android:contentDescription="@string/toggle_fullscreen"
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:scaleType="center"
|
||||
android:src="@drawable/ic_fullscreen_exit" />
|
||||
</FrameLayout>
|
||||
|
||||
</org.schabi.newpipe.views.CustomCollapsingToolbarLayout>
|
||||
|
|
|
@ -140,12 +140,23 @@
|
|||
tools:progress="40"
|
||||
tools:visibility="visible" />
|
||||
|
||||
|
||||
<!-- Player will be inserted here in realtime -->
|
||||
<FrameLayout
|
||||
android:id="@+id/player_placeholder"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/magnify_button"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_gravity="center_vertical|end"
|
||||
android:contentDescription="@string/toggle_fullscreen"
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:scaleType="center"
|
||||
android:src="@drawable/ic_fullscreen" />
|
||||
|
||||
</FrameLayout>
|
||||
</org.schabi.newpipe.views.CustomCollapsingToolbarLayout>
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
</string-array>
|
||||
|
||||
<string name="start_main_player_fullscreen_key">start_main_player_fullscreen_key</string>
|
||||
|
||||
<string name="fullscreen_key">fullscreen_key</string>
|
||||
<string name="autoplay_key">autoplay_key</string>
|
||||
<string name="autoplay_value">@string/autoplay_wifi_key</string>
|
||||
<string name="autoplay_always_key">autoplay_always_key</string>
|
||||
|
|
|
@ -466,6 +466,7 @@
|
|||
<string name="caption_none">No Captions</string>
|
||||
<string name="resize_fit">Fit</string>
|
||||
<string name="resize_fill">Fill</string>
|
||||
<string name="fullscreen">Fullscreen</string>
|
||||
<string name="resize_zoom">Zoom</string>
|
||||
<string name="caption_auto_generated">Auto-generated</string>
|
||||
<!-- Caption Settings -->
|
||||
|
|
Loading…
Reference in New Issue