diff --git a/app/build.gradle b/app/build.gradle index 874395016..9061cf473 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -13,8 +13,8 @@ android { applicationId 'com.github.libretube' minSdk 21 targetSdk 33 - versionCode 20 - versionName '0.6.1' + versionCode 21 + versionName '0.7.0' multiDexEnabled true testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner' resValue "string", "app_name", "LibreTube" diff --git a/app/src/main/java/com/github/libretube/ui/adapters/PlayingQueueAdapter.kt b/app/src/main/java/com/github/libretube/ui/adapters/PlayingQueueAdapter.kt index 488dc7628..2ff4020a6 100644 --- a/app/src/main/java/com/github/libretube/ui/adapters/PlayingQueueAdapter.kt +++ b/app/src/main/java/com/github/libretube/ui/adapters/PlayingQueueAdapter.kt @@ -38,8 +38,11 @@ class PlayingQueueAdapter : RecyclerView.Adapter() { DateUtils.formatElapsedTime(streamItem.duration ?: 0) root.setBackgroundColor( - if (currentIndex == position) ThemeHelper.getThemeColor(root.context, android.R.attr.colorControlHighlight) - else Color.TRANSPARENT + if (currentIndex == position) { + ThemeHelper.getThemeColor(root.context, android.R.attr.colorControlHighlight) + } else { + Color.TRANSPARENT + } ) } } diff --git a/app/src/main/java/com/github/libretube/ui/sheets/PlayingQueueSheet.kt b/app/src/main/java/com/github/libretube/ui/sheets/PlayingQueueSheet.kt index cb8f61c7c..8b89871e0 100644 --- a/app/src/main/java/com/github/libretube/ui/sheets/PlayingQueueSheet.kt +++ b/app/src/main/java/com/github/libretube/ui/sheets/PlayingQueueSheet.kt @@ -50,7 +50,8 @@ class PlayingQueueSheet : BottomSheetDialogFragment() { val currentIndex = PlayingQueue.currentIndex() val streams = PlayingQueue.getStreams().filterIndexed { - position, _ -> position <= currentIndex + position, _ -> + position <= currentIndex } PlayingQueue.setStreams(streams) diff --git a/app/src/main/java/com/github/libretube/util/DoubleTapListener.kt b/app/src/main/java/com/github/libretube/util/DoubleTapListener.kt index fcadf77dc..28645bfbc 100644 --- a/app/src/main/java/com/github/libretube/util/DoubleTapListener.kt +++ b/app/src/main/java/com/github/libretube/util/DoubleTapListener.kt @@ -3,7 +3,6 @@ package com.github.libretube.util import android.os.Handler import android.os.Looper import android.os.SystemClock -import android.util.Log import android.view.View abstract class DoubleTapListener : View.OnClickListener {