Skip to content

Commit

Permalink
Hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrave-dev committed Aug 11, 2024
1 parent e82e765 commit 8c0d054
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 34 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ android {
applicationId = "com.maxrave.simpmusic"
minSdk = 26
targetSdk = 35
versionCode = 19
versionName = "0.2.3"
versionCode = 20
versionName = "0.2.3-hotfix"
vectorDrawables.useSupportLibrary = true

ksp {
Expand Down
18 changes: 2 additions & 16 deletions app/src/main/java/com/maxrave/simpmusic/extension/AllExt.kt
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ fun LocalDateTime.formatTimeAgo(context: Context): String {
hoursDiff >= 24 -> context.getString(R.string.day_s_ago, daysDiff)
hoursDiff > 1 -> context.getString(R.string.hour_s_ago, hoursDiff)
hoursDiff <= 1 -> context.getString(R.string.recently)
else -> context.getString(androidx.media3.ui.R.string.exo_track_unknown)
else -> context.getString(R.string.unknown)
}
}

Expand All @@ -875,21 +875,7 @@ fun formatDuration(duration: Long): String {
TimeUnit.SECONDS.convert(duration, TimeUnit.MILLISECONDS) -
minutes * TimeUnit.SECONDS.convert(1, TimeUnit.MINUTES)
)
return "%02d:%02d".format(minutes, seconds)
}

fun String?.format(vararg data: Any): String {
return try {
if (this != null) {
String.format(Locale.getDefault(), this, data)
}
else {
""
}
}
catch (e: Exception) {
""
}
return String.format(Locale.ENGLISH, "%02d:%02d", minutes, seconds)
}

fun parseTimestampToMilliseconds(timestamp: String): Double {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1431,6 +1431,9 @@ class SimpleMediaServiceHandler(
)
Log.d("MusicSource", "updateCatalog: ${track.title}")
}
if (!player.isPlaying) {
player.playWhenReady = false
}
_queueData.value = _queueData.value?.addTrackList(catalogMetadata)
_stateFlow.value = StateSource.STATE_INITIALIZED
}
Expand Down
30 changes: 15 additions & 15 deletions app/src/main/res/raw/aboutlibraries.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@
"name": "The Android Open Source Project"
}
],
"artifactVersion": "1.8.0",
"artifactVersion": "1.8.1",
"description": "Provides source annotations for tooling and readability.",
"scm": {
"connection": "scm:git:https://android.googlesource.com/platform/frameworks/support",
"url": "https://cs.android.com/androidx/platform/frameworks/support"
},
"name": "Annotation",
"website": "https://developer.android.com/jetpack/androidx/releases/annotation#1.8.0",
"website": "https://developer.android.com/jetpack/androidx/releases/annotation#1.8.1",
"licenses": [
"Apache-2.0"
],
Expand Down Expand Up @@ -1105,7 +1105,7 @@
"developers": [

],
"artifactVersion": "8.5.1",
"artifactVersion": "8.5.2",
"description": "",
"name": "androidx.databinding:viewbinding",
"licenses": [
Expand Down Expand Up @@ -2549,14 +2549,14 @@
"name": "The Android Open Source Project"
}
],
"artifactVersion": "3.3.1",
"artifactVersion": "3.3.2",
"description": "Android Paging-Common",
"scm": {
"connection": "scm:git:https://android.googlesource.com/platform/frameworks/support",
"url": "https://cs.android.com/androidx/platform/frameworks/support"
},
"name": "Paging-Common",
"website": "https://developer.android.com/jetpack/androidx/releases/paging#3.3.1",
"website": "https://developer.android.com/jetpack/androidx/releases/paging#3.3.2",
"licenses": [
"Apache-2.0"
],
Expand All @@ -2574,14 +2574,14 @@
"name": "The Android Open Source Project"
}
],
"artifactVersion": "3.3.1",
"artifactVersion": "3.3.2",
"description": "Kotlin extensions for 'paging-common' artifact",
"scm": {
"connection": "scm:git:https://android.googlesource.com/platform/frameworks/support",
"url": "https://cs.android.com/androidx/platform/frameworks/support"
},
"name": "Paging-Common Kotlin Extensions",
"website": "https://developer.android.com/jetpack/androidx/releases/paging#3.3.1",
"website": "https://developer.android.com/jetpack/androidx/releases/paging#3.3.2",
"licenses": [
"Apache-2.0"
],
Expand All @@ -2599,14 +2599,14 @@
"name": "The Android Open Source Project"
}
],
"artifactVersion": "3.3.1",
"artifactVersion": "3.3.2",
"description": "Android Paging-Runtime",
"scm": {
"connection": "scm:git:https://android.googlesource.com/platform/frameworks/support",
"url": "https://cs.android.com/androidx/platform/frameworks/support"
},
"name": "Paging-Runtime",
"website": "https://developer.android.com/jetpack/androidx/releases/paging#3.3.1",
"website": "https://developer.android.com/jetpack/androidx/releases/paging#3.3.2",
"licenses": [
"Apache-2.0"
],
Expand All @@ -2624,14 +2624,14 @@
"name": "The Android Open Source Project"
}
],
"artifactVersion": "3.3.1",
"artifactVersion": "3.3.2",
"description": "Kotlin extensions for 'paging-runtime' artifact",
"scm": {
"connection": "scm:git:https://android.googlesource.com/platform/frameworks/support",
"url": "https://cs.android.com/androidx/platform/frameworks/support"
},
"name": "Paging-Runtime Kotlin Extensions",
"website": "https://developer.android.com/jetpack/androidx/releases/paging#3.3.1",
"website": "https://developer.android.com/jetpack/androidx/releases/paging#3.3.2",
"licenses": [
"Apache-2.0"
],
Expand Down Expand Up @@ -3221,14 +3221,14 @@
"name": "The Android Open Source Project"
}
],
"artifactVersion": "2.9.0",
"artifactVersion": "2.9.1",
"description": "Android WorkManager runtime library",
"scm": {
"connection": "scm:git:https://android.googlesource.com/platform/frameworks/support",
"url": "https://cs.android.com/androidx/platform/frameworks/support"
},
"name": "WorkManager Runtime",
"website": "https://developer.android.com/jetpack/androidx/releases/work#2.9.0",
"website": "https://developer.android.com/jetpack/androidx/releases/work#2.9.1",
"licenses": [
"Apache-2.0"
],
Expand All @@ -3246,14 +3246,14 @@
"name": "The Android Open Source Project"
}
],
"artifactVersion": "2.9.0",
"artifactVersion": "2.9.1",
"description": "Android WorkManager Kotlin Extensions",
"scm": {
"connection": "scm:git:https://android.googlesource.com/platform/frameworks/support",
"url": "https://cs.android.com/androidx/platform/frameworks/support"
},
"name": "WorkManager Kotlin Extensions",
"website": "https://developer.android.com/jetpack/androidx/releases/work#2.9.0",
"website": "https://developer.android.com/jetpack/androidx/releases/work#2.9.1",
"licenses": [
"Apache-2.0"
],
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
<string name="no_equalizer">Your device doesn\'t have equalizer</string>
<string name="open_system_equalizer">Open system equalizer</string>
<string name="use_your_system_equalizer">Use your system equalizer</string>
<string name="version_name" translatable="false">v0.2.3</string>
<string name="version_name" translatable="false">v0.2.3-hotfix</string>
<string name="streaming_data_provider_piped">Streaming data provider (Piped)</string>
<string name="itag">Itag</string>
<string name="mime_type">Mime Type</string>
Expand Down
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-US/changelogs/20.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fix bugs
1 change: 1 addition & 0 deletions fastlane/metadata/android/vi-VN/changelogs/20.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Sửa lỗi

0 comments on commit 8c0d054

Please sign in to comment.