meta: remove access_network_state perm [#22]
ExoPlayer's online functionality will cause the library to request the ACCESS_NETWORK_STATE permission. We don't need this since we use ExoPlayer for local playback only. For simplicity [and to remove a weird suspicious permission, we just disable it]
This commit is contained in:
@@ -135,7 +135,7 @@ Contains all the detail UIs for some data types in Auxio. All detail user interf
|
||||
|
||||
#### `.library`
|
||||
|
||||
The UI and adapters for the library view in Auxio, `LibraryViewModel` handles the sorting and which data to display in the fragment, while `LibraryFragment` and `LibraryAdapter` display the data.
|
||||
The UI and adapters for the library view in Auxio, `LibraryViewModel` handles the sorting and which data to display in the fragment, while `LibraryFragment` and `LibraryAdapter` displays the data.
|
||||
|
||||
#### `.music`
|
||||
|
||||
@@ -166,7 +166,7 @@ PlaybackStateManager───────────────────┘
|
||||
|
||||
`PlaybackStateManager` is the shared object that contains the master copy of the playback state, doing all operations on it. This object should ***NEVER*** be used in a UI, as it does not sanitize input and can cause major problems if a Volatile UI interacts with it. It's callback system is also prone to memory leaks if not cleared when done. `PlaybackViewModel` should be used instead, as it exposes stable data and safe functions that UIs can use to interact with the playback state.
|
||||
|
||||
`PlaybackService`'s job is to use the playback state to manage the ExoPlayer instance and notification and also modify the state depending on system events, such as when a button is pressed on a headset. It should **never** be bound to, mostly because there is no need given that `PlaybackViewModel` exposes the same data in a much safer fashion.
|
||||
`PlaybackService`'s job is to use the playback state to manage the ExoPlayer instance and notification and also modify the state depending on system events, such as when a button is pressed on a headset. It should **never** be bound to, mostly because there is no need given that `PlaybackViewModel` exposes the same data in a much safer fashion. `PlaybackService` also controls the `PlaybackSessionConnector` and `AudioReactor` classes, which manage the `MediaSession` and `AudioFocus` state respectively.
|
||||
|
||||
#### `.recycler`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user