Skip to content

Commit

Permalink
4.6.2 commit with Android Auto
Browse files Browse the repository at this point in the history
  • Loading branch information
XilinJia committed Apr 9, 2024
1 parent ec8a7bf commit aebf030
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 13 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
// from common.gradle
android {
defaultConfig {
minSdk 21
minSdk 23
compileSdk 34
targetSdk 34

Expand Down Expand Up @@ -149,8 +149,8 @@ android {
// Version code schema (not used):
// "1.2.3-beta4" -> 1020304
// "1.2.3" -> 1020395
versionCode 3020126
versionName "4.6.1"
versionCode 3020127
versionName "4.6.2"

def commit = ""
try {
Expand Down
4 changes: 3 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
xmlns:tools="http://schemas.android.com/tools"
android:installLocation="auto">

<!-- <uses-sdk android:minSdkVersion="23" android:targetSdkVersion="34" />-->

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
Expand Down Expand Up @@ -51,7 +53,7 @@
android:foregroundServiceType="mediaPlayback"
android:label="@string/app_name"
android:enabled="true"
android:exported="false"
android:exported="true"
tools:ignore="ExportedService">

<intent-filter>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1578,14 +1578,12 @@ class PlaybackService : MediaBrowserServiceCompat() {
fun skipIntroEndingPresetChanged(event: SkipIntroEndingChangedEvent) {
if (playable is FeedMedia) {
if ((playable as FeedMedia).item?.feed?.id == event.feedId) {
// if (event.skipEnding != 0) {
val feedPreferences = (playable as FeedMedia).item?.feed?.preferences
if (feedPreferences != null) {
Log.d(TAG, "skipIntroEndingPresetChanged ${event.skipIntro} ${event.skipEnding}")
feedPreferences.feedSkipIntro = event.skipIntro
feedPreferences.feedSkipEnding = event.skipEnding
}
// }
val feedPreferences = (playable as FeedMedia).item?.feed?.preferences
if (feedPreferences != null) {
Log.d(TAG, "skipIntroEndingPresetChanged ${event.skipIntro} ${event.skipEnding}")
feedPreferences.feedSkipIntro = event.skipIntro
feedPreferences.feedSkipEnding = event.skipEnding
}
}
}
}
Expand Down
6 changes: 5 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,4 +236,8 @@
## 4.6.1

* fixed bug on intro- and end- skipping
* new notice on need of notifications for Android 13 and newer (in selected languages only )
* new notice on need of notifications for Android 13 and newer (in selected languages only )

## 4.6.2

* it should now work on Android Auto
4 changes: 4 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/3020127.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

Version 4.6.2 brings several changes:

* it should now work on Android Auto

0 comments on commit aebf030

Please sign in to comment.