Skip to content

Commit

Permalink
Fix initial download method dialog (#1341)
Browse files Browse the repository at this point in the history
fix download method dialog to properly display all three options
  • Loading branch information
taitsmith authored Apr 23, 2024
1 parent 33a690d commit c245695
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/org/jellyfin/mobile/utils/SystemUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,17 @@ suspend fun MainActivity.requestDownload(uri: Uri, title: String, filename: Stri
AlertDialog.Builder(this)
.setTitle(R.string.network_title)
.setMessage(R.string.network_message)
.setNegativeButton(R.string.wifi_only) { _, _ ->
.setPositiveButton(R.string.wifi_only) { _, _ ->
val selectedDownloadMethod = DownloadMethod.WIFI_ONLY
appPreferences.downloadMethod = selectedDownloadMethod
continuation.resume(selectedDownloadMethod)
}
.setPositiveButton(R.string.mobile_data) { _, _ ->
.setNegativeButton(R.string.mobile_data) { _, _ ->
val selectedDownloadMethod = DownloadMethod.MOBILE_DATA
appPreferences.downloadMethod = selectedDownloadMethod
continuation.resume(selectedDownloadMethod)
}
.setPositiveButton(R.string.mobile_data_and_roaming) { _, _ ->
.setNeutralButton(R.string.mobile_data_and_roaming) { _, _ ->
val selectedDownloadMethod = DownloadMethod.MOBILE_AND_ROAMING
appPreferences.downloadMethod = selectedDownloadMethod
continuation.resume(selectedDownloadMethod)
Expand Down

0 comments on commit c245695

Please sign in to comment.