mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-10 23:21:59 +01:00
polish stream quality settings
- label the rows 'Stream quality: Wi-Fi' / 'Stream quality: Mobile' - default mobile to 192kbps/mp3 while Wi-Fi stays unlimited/server default - apply the selection only when Done is pressed, cancelling discards the draft - fade the bottom of the dialog list so the remaining options are visible as scrollable
This commit is contained in:
@@ -50,7 +50,7 @@ class UserPreferencesTest {
|
||||
val prefs = UserPreferences(store)
|
||||
|
||||
assertEquals(StreamQuality(), prefs.streamQuality(NetworkMode.Wifi).first())
|
||||
assertEquals(StreamQuality(), prefs.streamQuality(NetworkMode.Mobile).first())
|
||||
assertEquals(StreamQuality(192, "mp3"), prefs.streamQuality(NetworkMode.Mobile).first())
|
||||
|
||||
prefs.setStreamQuality(NetworkMode.Wifi, StreamQuality(320, null))
|
||||
prefs.setStreamQuality(NetworkMode.Mobile, StreamQuality(96, "opus"))
|
||||
|
||||
Reference in New Issue
Block a user