nit: fix typos

Fix miscellanious typos.
This commit is contained in:
OxygenCobalt 2022-04-28 22:03:15 -06:00
parent 3d03bf9b7e
commit 60367c45c3
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47
5 changed files with 5 additions and 10 deletions

View file

@ -47,6 +47,8 @@ import org.oxycblt.auxio.util.systemBarInsetsCompat
* TODO: Rework some fragments to use listeners *even more*
*
* TODO: Unify all member variables under an m prefix
*
* TODO: Fix how selection works in the RecyclerViews (doing it poorly right now)
*/
class MainActivity : AppCompatActivity() {
private val playbackModel: PlaybackViewModel by viewModels()

View file

@ -198,7 +198,6 @@ class PlaybackStateManager private constructor() {
/** Shuffle all songs. */
fun shuffleAll() {
logD("RETARD. ${musicStore.library}")
val library = musicStore.library ?: return
mQueue = library.songs.toMutableList()

View file

@ -447,12 +447,6 @@ class PlaybackService :
initialHeadsetPlugEventHandled = true
}
AudioManager.ACTION_SCO_AUDIO_STATE_UPDATED -> {
when (intent.getIntExtra(AudioManager.EXTRA_SCO_AUDIO_STATE, -1)) {
AudioManager.SCO_AUDIO_STATE_DISCONNECTED -> pauseFromPlug()
AudioManager.SCO_AUDIO_STATE_CONNECTED -> maybeResumeFromPlug()
}
}
AudioManager.ACTION_AUDIO_BECOMING_NOISY -> pauseFromPlug()
// --- AUXIO EVENTS ---

View file

@ -104,7 +104,7 @@ objects.
- `sortName` is used in the fast scroller indicators and sorting. Avoid it wherever else.
- `resolveName()` should be used when displaying any kind of music data to the user.
- For songs, `individualArtistRawName` and `resolveIndividualArtistName` should always be used when displaying the artist of
a song, as it will always show collaborator information first before deatiling to the album artist.
a song, as it will always show collaborator information first before defaulting to the album artist.
#### Music Access
All music on a system is asynchronously loaded into the shared object `MusicStore`. Because of this, **`MusicStore` may not be available at all times**.
@ -175,7 +175,7 @@ an accent.
This should be enough to cover most use cases in Auxio.
Internally, multiple fetchers are provided to transform `Music` instances into images. All of these fetchers inherit `AuxioFetcher`, which implements
Internally, multiple fetchers are provided to transform `Music` instances into images. All of these fetchers inherit `BaseFetcher`, which implements
the necessary methods for loading album artwork and creating the mosaics shown in artist/genre images.
#### `.detail`

View file

@ -5,5 +5,5 @@ Auxio uses a number of third-party libraries, which are listed below with their
|--------------|-----------|---------|---------|
| [ExoPlayer](https://github.com/google/ExoPlayer) | [Google](https://github.com/google) | Music Playback | Apache-2.0 |
| [Coil](https://github.com/coil-kt/coil) | [Square](https://github.com/coil-kt) | Image Loading | Apache-2.0 |
| [Spotless](https://github.com/diffplug/spotless) | [CiffPlug](https://github.com/diffplug) | Formatting | Apache-2.0 |
| [Spotless](https://github.com/diffplug/spotless) | [DiffPlug](https://github.com/diffplug) | Formatting | Apache-2.0 |
| [ktfmt](https://github.com/facebookincubator/ktfmt) | [Meta](https://github.com/facebookincubator) | Formatting | Apache-2.0 |