Skip to content

Commit

Permalink
1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
nift4 committed May 24, 2024
1 parent 742097e commit 9bc388f
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ android {
// keep support for it for a while.
minSdk = 21
targetSdk = 34
versionCode = 7
versionName = "1.0.5"
versionCode = 8
versionName = "1.0.6"
if (releaseType != "Release") {
versionNameSuffix = myVersionName
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,13 @@ class SongAdapter(
}

override fun getReleaseDate(item: MediaItem): Long {
if (item.mediaMetadata.releaseYear == null && item.mediaMetadata.releaseMonth == null
&& item.mediaMetadata.releaseDay == null) {
return GregorianCalendar((item.mediaMetadata.recordingYear ?: 0) + 1900,
(item.mediaMetadata.recordingMonth ?: 1) - 1,
item.mediaMetadata.recordingDay ?: 0, 0, 0, 0)
.timeInMillis
}
return GregorianCalendar((item.mediaMetadata.releaseYear ?: 0) + 1900,
(item.mediaMetadata.releaseMonth ?: 1) - 1,
item.mediaMetadata.releaseDay ?: 0, 0, 0, 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ class DetailDialogFragment : BaseFragment(false) {
if (mediaMetadata.genre != null) {
genreTextView.text = mediaMetadata.genre
}
if (mediaMetadata.releaseYear != null) {
yearTextView.text = mediaMetadata.releaseYear?.toString()
if (mediaMetadata.releaseYear != null || mediaMetadata.recordingYear != null) {
yearTextView.text = (mediaMetadata.releaseYear ?: mediaMetadata.recordingYear)?.toString()
}
durationTextView.text = convertDurationToTimeStamp(mediaMetadata.extras!!.getLong("Duration"))
mimeTypeTextView.text = mediaItem.localConfiguration?.mimeType ?: "(null)"
Expand Down
7 changes: 3 additions & 4 deletions app/src/main/res/layout/adapter_grid_card.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,11 @@
android:layout_height="48dp"
android:padding="12dp"
app:tint="?attr/colorControlNormal"
android:layout_gravity="end|center_vertical"
android:contentDescription="@string/now_playing"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/more"
app:layout_constraintTop_toTopOf="parent" />
app:layout_constraintTop_toTopOf="@id/linearLayout"
app:layout_constraintBottom_toBottomOf="@id/linearLayout"
app:layout_constraintEnd_toStartOf="@id/more" />

<com.google.android.material.button.MaterialButton
android:id="@+id/more"
Expand Down
11 changes: 11 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/8.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Highlights of this release:
- Reverted back to old icon
- Show sleep timer end time in tooltip and remaining time in dialog
- New shuffle implementation
- Multi-level sorting (eg albums>track number)
- better old (<9) Android and A12 compatibility
- Nicely animated now playing indicator in song list
- Added AboutLibraries
- Migrated to Coil3 image loader
- Fixed issue where thumbnails are too big while scrolling list
- Many more bug fixes I forgot about

0 comments on commit 9bc388f

Please sign in to comment.