info: update docs
Update information here and there.
This commit is contained in:
@@ -83,6 +83,10 @@ class MainActivity : AppCompatActivity() {
|
||||
}
|
||||
|
||||
if (intent.getBooleanExtra(KEY_INTENT_USED, false)) {
|
||||
// Don't commit the action, but also return that the intent was applied.
|
||||
// This is because onStart can run multiple times, and thus we really don't
|
||||
// want to return false and override the original delayed action with a
|
||||
// RestoreState action.
|
||||
return true
|
||||
}
|
||||
|
||||
@@ -110,8 +114,6 @@ class MainActivity : AppCompatActivity() {
|
||||
// the point where most phones should have an automatic option for light/dark theming.
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) {
|
||||
AppCompatDelegate.setDefaultNightMode(settings.theme)
|
||||
} else {
|
||||
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM)
|
||||
}
|
||||
|
||||
// The black theme has a completely separate set of styles since style attributes cannot
|
||||
|
||||
@@ -23,7 +23,6 @@ import org.oxycblt.auxio.R
|
||||
import org.oxycblt.auxio.databinding.FragmentHomeListBinding
|
||||
import org.oxycblt.auxio.music.Album
|
||||
import org.oxycblt.auxio.music.Music
|
||||
import org.oxycblt.auxio.music.resolveYear
|
||||
import org.oxycblt.auxio.ui.DisplayMode
|
||||
import org.oxycblt.auxio.ui.Sort
|
||||
import org.oxycblt.auxio.ui.recycler.AlbumViewHolder
|
||||
|
||||
@@ -151,8 +151,8 @@ abstract class BaseFetcher : Fetcher {
|
||||
return null
|
||||
}
|
||||
|
||||
// The metadata extraction process of ExoPlayer is normalized into a superclass.
|
||||
// That means we have to iterate through and find the cover art ourselves.
|
||||
// The metadata extraction process of ExoPlayer results in a dump of all metadata
|
||||
// it found, which must be iterated through.
|
||||
val metadata = tracks[0].getFormat(0).metadata
|
||||
|
||||
if (metadata == null || metadata.length() == 0) {
|
||||
|
||||
@@ -502,11 +502,7 @@ sealed class ReleaseType {
|
||||
// it isn't. There are technically two other types, but those are unrelated to music
|
||||
// and thus we don't support them.
|
||||
return when {
|
||||
// Album (+ Other and Broadcast, which don't have meaning in Auxio) correspond to
|
||||
// Album.
|
||||
primary.equals("album", true) ||
|
||||
primary.equals("other", true) ||
|
||||
primary.equals("broadcast", true) -> types.parseSecondaryTypes(1) { Album(it) }
|
||||
primary.equals("album", true) -> types.parseSecondaryTypes(1) { Album(it) }
|
||||
primary.equals("ep", true) -> types.parseSecondaryTypes(1) { EP(it) }
|
||||
primary.equals("single", true) -> types.parseSecondaryTypes(1) { Single(it) }
|
||||
else -> types.parseSecondaryTypes(0) { Album(it) }
|
||||
|
||||
@@ -141,7 +141,9 @@ class SearchViewModel(application: Application) :
|
||||
|
||||
private fun List<Song>.filterSongsBy(value: String) =
|
||||
baseFilterBy(value) {
|
||||
it.rawSortName?.contains(value) == true || it.path.name.contains(value)
|
||||
logD(it.rawSortName)
|
||||
it.rawSortName?.contains(value, ignoreCase = true) == true ||
|
||||
it.path.name.contains(value)
|
||||
}
|
||||
|
||||
private fun List<Album>.filterAlbumsBy(value: String) =
|
||||
|
||||
@@ -185,8 +185,6 @@ private fun RemoteViews.applyFullControls(
|
||||
R.id.widget_shuffle,
|
||||
context.newBroadcastPendingIntent(PlaybackService.ACTION_INVERT_SHUFFLE))
|
||||
|
||||
// Like notifications, use the remote variants of icons since we really don't want to hack
|
||||
// indicators.
|
||||
val shuffleRes =
|
||||
when {
|
||||
state.isShuffled -> R.drawable.ic_shuffle_on_24
|
||||
|
||||
Reference in New Issue
Block a user