Add proper README
Add a proper readme and other documents for this project.
This commit is contained in:
@@ -430,7 +430,7 @@ class PlaybackStateManager private constructor() {
|
||||
|
||||
logD("Shuffling queue with seed $newSeed")
|
||||
|
||||
val lastSong = mQueue[mIndex]
|
||||
val lastSong = if (mIsInUserQueue) mQueue[mIndex] else mSong
|
||||
|
||||
mShuffleSeed = newSeed
|
||||
|
||||
@@ -452,7 +452,7 @@ class PlaybackStateManager private constructor() {
|
||||
private fun resetShuffle() {
|
||||
mShuffleSeed = -1L
|
||||
|
||||
val lastSong = mQueue[mIndex]
|
||||
val lastSong = if (mIsInUserQueue) mQueue[mIndex] else mSong
|
||||
|
||||
setupOrderedQueue()
|
||||
|
||||
|
||||
@@ -17,12 +17,8 @@ import org.oxycblt.auxio.databinding.FragmentAboutBinding
|
||||
import org.oxycblt.auxio.logD
|
||||
import org.oxycblt.auxio.logE
|
||||
import org.oxycblt.auxio.music.MusicStore
|
||||
import org.oxycblt.auxio.settings.SettingsManager
|
||||
import org.oxycblt.auxio.ui.createToast
|
||||
import org.oxycblt.auxio.ui.isEdgeOn
|
||||
import org.oxycblt.auxio.ui.isIrregularLandscape
|
||||
import org.oxycblt.auxio.ui.isLandscape
|
||||
import org.oxycblt.auxio.ui.toColor
|
||||
import java.lang.Exception
|
||||
|
||||
class AboutDialog : BottomSheetDialogFragment() {
|
||||
@@ -35,15 +31,6 @@ class AboutDialog : BottomSheetDialogFragment() {
|
||||
): View {
|
||||
val binding = FragmentAboutBinding.inflate(layoutInflater)
|
||||
val musicStore = MusicStore.getInstance()
|
||||
val settingsManager = SettingsManager.getInstance()
|
||||
|
||||
// --- UI SETUP ---
|
||||
if (isEdgeOn() && !requireActivity().isIrregularLandscape()) {
|
||||
requireDialog().window?.apply {
|
||||
navigationBarColor = R.color.background.toColor(requireContext())
|
||||
// handleTransparentSystemNavBar(resources.configuration)
|
||||
}
|
||||
}
|
||||
|
||||
binding.aboutVersion.text = BuildConfig.VERSION_NAME
|
||||
|
||||
@@ -55,7 +42,7 @@ class AboutDialog : BottomSheetDialogFragment() {
|
||||
R.string.format_songs_loaded, musicStore.songs.size.toString()
|
||||
)
|
||||
binding.aboutAuthor.text = getString(
|
||||
R.string.format_author, getString(R.string.author_oxycblt)
|
||||
R.string.format_author, getString(R.string.label_author_oxycblt)
|
||||
)
|
||||
|
||||
if (isLandscape(resources)) {
|
||||
|
||||
@@ -6,15 +6,20 @@ package org.oxycblt.auxio.ui
|
||||
import android.annotation.TargetApi
|
||||
import android.app.Activity
|
||||
import android.content.Context
|
||||
import android.content.res.Configuration
|
||||
import android.graphics.Point
|
||||
import android.os.Build
|
||||
import android.util.DisplayMetrics
|
||||
import android.view.View
|
||||
import android.view.Window
|
||||
import android.view.WindowInsetsController
|
||||
import android.view.WindowManager
|
||||
import org.oxycblt.auxio.logD
|
||||
|
||||
/**
|
||||
* Check if we are in the "Irregular" landscape mode [e.g landscape, but nav bar is on the sides]
|
||||
* Used to disable most of edge-to-edge if that's the case, as I cant get it to work on this mode yet.
|
||||
* TODO: Make edge-to-edge work in irregular mode
|
||||
* TODO: Make edge-to-edge work better in irregular mode
|
||||
* @return True if we are in the irregular landscape mode, false if not.
|
||||
*/
|
||||
fun Activity.isIrregularLandscape(): Boolean {
|
||||
|
||||
@@ -26,4 +26,12 @@
|
||||
<item name="md_color_button_text">@color/control_color</item>
|
||||
<item name="md_font_title">@font/inter_black</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.BottomSheetFix" parent="@style/Theme.Design.BottomSheetDialog">
|
||||
<item name="android:windowIsFloating">false</item>
|
||||
<item name="android:statusBarColor">@android:color/transparent</item>
|
||||
<item name="android:navigationBarColor">@color/background</item>
|
||||
<item name="android:windowLightStatusBar">false</item>
|
||||
<item name="bottomSheetStyle">@style/Theme.BottomSheetHeightFix</item>
|
||||
</style>
|
||||
</resources>
|
||||
@@ -26,4 +26,12 @@
|
||||
<item name="md_color_button_text">@color/control_color</item>
|
||||
<item name="md_font_title">@font/inter_black</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.BottomSheetFix" parent="@style/Theme.Design.BottomSheetDialog">
|
||||
<item name="android:windowIsFloating">false</item>
|
||||
<item name="android:statusBarColor">@android:color/transparent</item>
|
||||
<item name="android:navigationBarColor">@color/background</item>
|
||||
<item name="android:windowLightStatusBar">false</item>
|
||||
<item name="bottomSheetStyle">@style/Theme.BottomSheetHeightFix</item>
|
||||
</style>
|
||||
</resources>
|
||||
@@ -1,4 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="author_oxycblt">OxygenCobalt</string>
|
||||
<string name="label_author_oxycblt">OxygenCobalt</string>
|
||||
|
||||
<!-- Format Namespace | Value formatting/plurals -->
|
||||
<string name="format_info">%1$s / %2$s</string>
|
||||
<string name="format_double_info">%1$s / %2$s / %3$s</string>
|
||||
<string name="format_double_counts">%1$s, %2$s</string>
|
||||
<string name="format_accent_summary"><b>%1$s</b>: %2$s</string>
|
||||
</resources>
|
||||
@@ -156,11 +156,7 @@
|
||||
<string name="color_label_neutral">Neutral</string>
|
||||
|
||||
<!-- Format Namespace | Value formatting/plurals -->
|
||||
<string name="format_info">%1$s / %2$s</string>
|
||||
<string name="format_double_info">%1$s / %2$s / %3$s</string>
|
||||
<string name="format_double_counts">%1$s, %2$s</string>
|
||||
<string name="format_next_from">Next From: %s</string>
|
||||
<string name="format_accent_summary"><b>%1$s</b>: %2$s</string>
|
||||
<string name="format_songs_loaded">Songs Loaded: %s</string>
|
||||
<string name="format_author">Created by %s</string>
|
||||
|
||||
|
||||
@@ -172,10 +172,10 @@
|
||||
<style name="Theme.BottomSheetFix" parent="@style/Theme.Design.BottomSheetDialog">
|
||||
<item name="android:windowIsFloating">false</item>
|
||||
<item name="android:statusBarColor">@android:color/transparent</item>
|
||||
<item name="bottomSheetStyle">@style/bottomSheetStyleWrapper</item>
|
||||
<item name="bottomSheetStyle">@style/Theme.BottomSheetHeightFix</item>
|
||||
</style>
|
||||
|
||||
<style name="bottomSheetStyleWrapper" parent="Widget.Design.BottomSheet.Modal">
|
||||
<style name="Theme.BottomSheetHeightFix" parent="Widget.Design.BottomSheet.Modal">
|
||||
<item name="behavior_peekHeight">500dp</item>
|
||||
</style>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user