Add proper README

Add a proper readme and other documents for this project.
This commit is contained in:
OxygenCobalt
2020-12-18 17:15:57 -07:00
parent 4413cb1499
commit ed33813112
41 changed files with 234 additions and 27 deletions
@@ -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 {