Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixed
- Fixed player crash when clearing app from recents ([#298])
- Fixed overlap between current track and system bars

## [1.5.0] - 2025-10-29
### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,14 @@ class MainActivity : SimpleMusicActivity() {
appLaunched(BuildConfig.APPLICATION_ID)
setupOptionsMenu()
refreshMenuItems()
setupEdgeToEdge(padBottomImeAndSystem = listOf(binding.mainTabsHolder))
setupEdgeToEdge(
padBottomImeAndSystem = buildList {
add(binding.mainTabsHolder)
if (getVisibleTabs().size == 1) {
add(binding.currentTrackBar.root)
}
}
)
storeStateVariables()
setupTabs()
setupCurrentTrackBar(binding.currentTrackBar.root)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ abstract class SimpleMusicActivity : SimpleControllerActivity(), Player.Listener
startActivity(this)
}
} else {
PermissionRequiredDialog(this, org.fossify.commons.R.string.allow_notifications_music_player, { openNotificationSettings() })
PermissionRequiredDialog(
activity = this,
textId = org.fossify.commons.R.string.allow_notifications_music_player,
positiveActionCallback = { openNotificationSettings() }
)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package org.fossify.musicplayer.views
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.graphics.drawable.ColorDrawable
import android.provider.MediaStore
import android.util.AttributeSet
import android.widget.RelativeLayout
Expand All @@ -16,6 +15,7 @@ import org.fossify.commons.extensions.*
import org.fossify.musicplayer.R
import org.fossify.musicplayer.databinding.ViewCurrentTrackBarBinding
import org.fossify.musicplayer.extensions.*
import androidx.core.graphics.drawable.toDrawable

class CurrentTrackBar(context: Context, attributeSet: AttributeSet) : RelativeLayout(context, attributeSet) {
private val binding by viewBinding(ViewCurrentTrackBarBinding::bind)
Expand All @@ -27,7 +27,7 @@ class CurrentTrackBar(context: Context, attributeSet: AttributeSet) : RelativeLa
}

fun updateColors() {
background = ColorDrawable(context.getProperBackgroundColor())
background = context.getProperBackgroundColor().toDrawable()
binding.currentTrackLabel.setTextColor(context.getProperTextColor())
}

Expand Down
Loading