diff --git a/app/build.gradle b/app/build.gradle index 5763af10c..df07b177e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -145,7 +145,7 @@ dependencies { implementation 'androidx.media:media:1.1.0' implementation 'androidx.preference:preference:1.1.1' implementation 'androidx.recyclerview:recyclerview:1.1.0' - implementation 'androidx.viewpager2:viewpager2:1.0.0' + implementation 'androidx.viewpager2:viewpager2:1.1.0-alpha01' implementation "androidx.work:work-runtime:$workManagerVersion" implementation 'com.google.android.material:material:1.1.0' diff --git a/app/src/main/java/de/danoeh/antennapod/dialog/PlaybackControlsDialog.java b/app/src/main/java/de/danoeh/antennapod/dialog/PlaybackControlsDialog.java index 83debaecb..d1ffdc148 100644 --- a/app/src/main/java/de/danoeh/antennapod/dialog/PlaybackControlsDialog.java +++ b/app/src/main/java/de/danoeh/antennapod/dialog/PlaybackControlsDialog.java @@ -80,7 +80,7 @@ public class PlaybackControlsDialog extends DialogFragment { private void setupUi() { final SeekBar barPlaybackSpeed = dialog.findViewById(R.id.playback_speed); - final Button butDecSpeed = dialog.findViewById(R.id.butDecSpeed); + final TextView butDecSpeed = dialog.findViewById(R.id.butDecSpeed); butDecSpeed.setOnClickListener(v -> { if (controller != null && controller.canSetPlaybackSpeed()) { barPlaybackSpeed.setProgress(barPlaybackSpeed.getProgress() - 2); @@ -88,7 +88,7 @@ public class PlaybackControlsDialog extends DialogFragment { VariableSpeedDialog.showGetPluginDialog(getContext()); } }); - final Button butIncSpeed = (Button) dialog.findViewById(R.id.butIncSpeed); + final TextView butIncSpeed = dialog.findViewById(R.id.butIncSpeed); butIncSpeed.setOnClickListener(v -> { if (controller != null && controller.canSetPlaybackSpeed()) { barPlaybackSpeed.setProgress(barPlaybackSpeed.getProgress() + 2); diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/AudioPlayerFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/AudioPlayerFragment.java index 7df0f5577..5ca8b666a 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/AudioPlayerFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/AudioPlayerFragment.java @@ -143,7 +143,7 @@ public class AudioPlayerFragment extends Fragment implements pageIndicator = root.findViewById(R.id.page_indicator); pageIndicator.setViewPager(pager); pageIndicator.setOnClickListener(v -> - pager.setCurrentItem((pager.getCurrentItem() + 1) % pager.getChildCount())); + pager.setCurrentItem((pager.getCurrentItem() + 1) % NUM_CONTENT_FRAGMENTS)); return root; } diff --git a/app/src/main/res/layout/audio_controls.xml b/app/src/main/res/layout/audio_controls.xml index 6cb87282f..9a1c525a7 100644 --- a/app/src/main/res/layout/audio_controls.xml +++ b/app/src/main/res/layout/audio_controls.xml @@ -41,18 +41,22 @@ + android:orientation="horizontal" + android:gravity="center_vertical"> -