mirror of
https://github.com/Michatec/Radio.git
synced 2026-05-31 06:52:40 +02:00
refactor(helpers): minor code cleanup and documentation fixes
This commit is contained in:
@@ -370,7 +370,7 @@ object DownloadHelper {
|
||||
private fun determineAllowedNetworkTypes(type: Int, ignoreWifiRestriction: Boolean): Int {
|
||||
var allowedNetworkTypes: Int =
|
||||
(DownloadManager.Request.NETWORK_WIFI or DownloadManager.Request.NETWORK_MOBILE)
|
||||
// restrict download of audio files to WiFi if necessary
|
||||
// restrict download of audio files to Wi-Fi if necessary
|
||||
if (type == Keys.FILE_TYPE_AUDIO) {
|
||||
if (!ignoreWifiRestriction && !PreferencesHelper.downloadOverMobile()) {
|
||||
allowedNetworkTypes = DownloadManager.Request.NETWORK_WIFI
|
||||
|
||||
Reference in New Issue
Block a user