mirror of
https://github.com/tateisu/SubwayTooter
synced 2025-01-31 02:54:57 +01:00
refactor
This commit is contained in:
parent
1cbf22ccfb
commit
ae9093ffe6
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user