diff --git a/README.md b/README.md index f235e3356..bd1ec8dfd 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ ## About -Auxio is a local music player designed to be simple, straightfoward, and customizable. It has a fast, reliable UI/UX, and it is not bloated with useless features. In short, **It plays music.** +Auxio is a local music player designed to be simple, straightfoward, and customizable. It has a fast, reliable UI/UX, and it is not bloated with useless features. In short, **It plays music.** Auxio is still configurable however, with both the UI and behavior able to be changed to ones liking. Unlike other music players, Auxio is based off of [ExoPlayer](https://exoplayer.dev/), allowing for much better listening experience compared to the native MediaPlayer API. Auxio's codebase is also designed to be extendable, allowing for the addition of features that are not included in the main app. @@ -78,4 +78,4 @@ Auxio is Free Software: You can use, study share and improve it at your will. Specifically you can redistribute and/or modify it under the terms of the [GNU General Public License](https://www.gnu.org/licenses/gpl.html) as published by the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. \ No newline at end of file +(at your option) any later version. \ No newline at end of file diff --git a/app/src/main/java/org/oxycblt/auxio/MainActivity.kt b/app/src/main/java/org/oxycblt/auxio/MainActivity.kt index eb8031187..e51e3c914 100644 --- a/app/src/main/java/org/oxycblt/auxio/MainActivity.kt +++ b/app/src/main/java/org/oxycblt/auxio/MainActivity.kt @@ -43,9 +43,8 @@ class MainActivity : AppCompatActivity() { override fun onStart() { super.onStart() - Intent(this, PlaybackService::class.java).also { - startService(it) - } + // Start PlaybackService + startService(Intent(this, PlaybackService::class.java)) } @Suppress("DEPRECATION") diff --git a/app/src/main/java/org/oxycblt/auxio/playback/PlaybackService.kt b/app/src/main/java/org/oxycblt/auxio/playback/PlaybackService.kt index bb3658a15..ea730cc63 100644 --- a/app/src/main/java/org/oxycblt/auxio/playback/PlaybackService.kt +++ b/app/src/main/java/org/oxycblt/auxio/playback/PlaybackService.kt @@ -60,7 +60,7 @@ import org.oxycblt.auxio.settings.SettingsManager * @author OxygenCobalt */ class PlaybackService : Service(), Player.EventListener, PlaybackStateManager.Callback, SettingsManager.Callback { - private val player: SimpleExoPlayer by lazy { newPlayer() } + private val player: SimpleExoPlayer by lazy(::newPlayer) private val playbackManager = PlaybackStateManager.getInstance() private val settingsManager = SettingsManager.getInstance() @@ -456,8 +456,7 @@ class PlaybackService : Service(), Player.EventListener, PlaybackStateManager.Ca * Handle a media button intent. */ private fun handleMediaButtonEvent(event: Intent): Boolean { - val item = event - .getParcelableExtra(Intent.EXTRA_KEY_EVENT) as KeyEvent + val item = event.getParcelableExtra(Intent.EXTRA_KEY_EVENT) as KeyEvent if (item.action == KeyEvent.ACTION_DOWN) { return when (item.keyCode) { diff --git a/app/src/main/java/org/oxycblt/auxio/settings/SettingsListFragment.kt b/app/src/main/java/org/oxycblt/auxio/settings/SettingsListFragment.kt index 55d0b4ca1..dfe769dbc 100644 --- a/app/src/main/java/org/oxycblt/auxio/settings/SettingsListFragment.kt +++ b/app/src/main/java/org/oxycblt/auxio/settings/SettingsListFragment.kt @@ -53,9 +53,8 @@ class SettingsListFragment : PreferenceFragmentCompat() { pref.isVisible = true } - pref.children.forEach { - recursivelyHandleChildren(it) - } + // If this preference is a category of its own, handle its own children + pref.children.forEach { recursivelyHandleChildren(it) } } else { handlePreference(pref) } diff --git a/app/src/main/java/org/oxycblt/auxio/songs/SongsFragment.kt b/app/src/main/java/org/oxycblt/auxio/songs/SongsFragment.kt index b6510948e..25d76276f 100644 --- a/app/src/main/java/org/oxycblt/auxio/songs/SongsFragment.kt +++ b/app/src/main/java/org/oxycblt/auxio/songs/SongsFragment.kt @@ -189,8 +189,6 @@ class SongsFragment : Fragment() { ) } - binding.songFastScrollThumb.apply { - setupWithFastScroller(binding.songFastScroll) - } + binding.songFastScrollThumb.setupWithFastScroller(binding.songFastScroll) } } diff --git a/app/src/main/java/org/oxycblt/auxio/ui/Accent.kt b/app/src/main/java/org/oxycblt/auxio/ui/Accent.kt index f8cb5b895..999b072ea 100644 --- a/app/src/main/java/org/oxycblt/auxio/ui/Accent.kt +++ b/app/src/main/java/org/oxycblt/auxio/ui/Accent.kt @@ -57,8 +57,6 @@ data class Accent( /** * Get the name (in bold) and the hex value of a accent. - * @param context [Context] required - * @return A rendered span with the name in bold + the hex value of the accent. */ @SuppressLint("ResourceType") fun getDetailedSummary(context: Context): Spanned { diff --git a/app/src/main/java/org/oxycblt/auxio/ui/InterfaceUtils.kt b/app/src/main/java/org/oxycblt/auxio/ui/InterfaceUtils.kt index 78dc23587..dd6cf591b 100644 --- a/app/src/main/java/org/oxycblt/auxio/ui/InterfaceUtils.kt +++ b/app/src/main/java/org/oxycblt/auxio/ui/InterfaceUtils.kt @@ -26,8 +26,6 @@ import com.google.android.material.button.MaterialButton import org.oxycblt.auxio.R import org.oxycblt.auxio.logE -// A Variety of shortcut, convenience, hacks, and extension functions used across Auxio. - // --- VIEW CONFIGURATION --- /** @@ -35,10 +33,7 @@ import org.oxycblt.auxio.logE */ fun ImageButton.disable() { if (isEnabled) { - imageTintList = ColorStateList.valueOf( - R.color.inactive_color.toColor(context) - ) - + imageTintList = R.color.inactive_color.toStateList(context) isEnabled = false } } diff --git a/app/src/main/res/layout-land/fragment_playback.xml b/app/src/main/res/layout-land/fragment_playback.xml index 3eea1ea56..c4e0fa242 100644 --- a/app/src/main/res/layout-land/fragment_playback.xml +++ b/app/src/main/res/layout-land/fragment_playback.xml @@ -160,6 +160,31 @@ app:layout_constraintTop_toBottomOf="@+id/playback_seek_bar" tools:text="16:16" /> + + + + - - - \ No newline at end of file diff --git a/app/src/main/res/layout-large-land/fragment_playback.xml b/app/src/main/res/layout-large-land/fragment_playback.xml index 7a4a26018..70cab04f4 100644 --- a/app/src/main/res/layout-large-land/fragment_playback.xml +++ b/app/src/main/res/layout-large-land/fragment_playback.xml @@ -162,6 +162,30 @@ app:layout_constraintTop_toBottomOf="@+id/playback_seek_bar" tools:text="16:16" /> + + + + - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_playback.xml b/app/src/main/res/layout/fragment_playback.xml index 11645e05f..4b0cb92dc 100644 --- a/app/src/main/res/layout/fragment_playback.xml +++ b/app/src/main/res/layout/fragment_playback.xml @@ -149,6 +149,30 @@ app:layout_constraintEnd_toEndOf="parent" tools:text="16:16" /> + + + + - - - - \ No newline at end of file diff --git a/fastlane/metadata/android/en-US/full_description.txt b/fastlane/metadata/android/en-US/full_description.txt index f50be846f..f2b5bbf76 100644 --- a/fastlane/metadata/android/en-US/full_description.txt +++ b/fastlane/metadata/android/en-US/full_description.txt @@ -1,6 +1,4 @@ -Auxio is a local music player designed to be simple, straightfoward, and customizable. It has a fast, reliable UI/UX, and it is not bloated with useless features. In short, It plays music. - -Unlike other music players, Auxio is based off of Exoplayer, allowing for much better listening experience compared to the native MediaPlayer API. Auxio's codebase is also designed to be extendable, allowing for the addition of features that are not included in the main app. +Auxio is a local music player designed to be simple, straightfoward, and customizable. It has a fast, reliable UI/UX, and it is not bloated with useless features. In short, It plays music. Auxio is still configurable however, with both the UI and behavior able to be changed to ones liking. Unlike other music players, Auxio is also based off of Exoplayer, allowing for much better listening experience compared to the native MediaPlayer API. Features diff --git a/fastlane/metadata/android/en-US/images/featureGraphic.png b/fastlane/metadata/android/en-US/images/featureGraphic.png index d21ad3372..70d61ea40 100644 Binary files a/fastlane/metadata/android/en-US/images/featureGraphic.png and b/fastlane/metadata/android/en-US/images/featureGraphic.png differ diff --git a/fastlane/metadata/android/en-US/images/phoneScreenshots/shot7.png b/fastlane/metadata/android/en-US/images/phoneScreenshots/shot7.png old mode 100644 new mode 100755 index 3c2ad75d7..07f4fb2ec Binary files a/fastlane/metadata/android/en-US/images/phoneScreenshots/shot7.png and b/fastlane/metadata/android/en-US/images/phoneScreenshots/shot7.png differ diff --git a/fastlane/metadata/android/en-US/images/phoneScreenshots/shot8.png b/fastlane/metadata/android/en-US/images/phoneScreenshots/shot8.png old mode 100755 new mode 100644 index 07f4fb2ec..3c2ad75d7 Binary files a/fastlane/metadata/android/en-US/images/phoneScreenshots/shot8.png and b/fastlane/metadata/android/en-US/images/phoneScreenshots/shot8.png differ