1
0
mirror of https://github.com/tateisu/SubwayTooter synced 2025-01-31 02:54:57 +01:00
This commit is contained in:
tateisu 2019-12-31 05:40:10 +09:00
parent 1cbf22ccfb
commit ae9093ffe6

View File

@ -758,10 +758,8 @@ class ActMediaViewer : AppCompatActivity(), View.OnClickListener {
request.setTitle(fileName)
request.setAllowedNetworkTypes(DownloadManager.Request.NETWORK_MOBILE or DownloadManager.Request.NETWORK_WIFI)
@Suppress("ControlFlowWithEmptyBody")
if(Build.VERSION.SDK_INT >= 29) {
// Android 10 以降では allowScanningByMediaScanner は無視される
} else {
// Android 10 以降では allowScanningByMediaScanner は無視される
if(Build.VERSION.SDK_INT < 29) {
//メディアスキャンを許可する
@Suppress("DEPRECATION")
request.allowScanningByMediaScanner()