TP-82827 | fix | receiver flag updated to type exported for downloadi… (#12454)
This commit is contained in:
committed by
GitHub
parent
3f7281fcbf
commit
153c303f9e
@@ -167,7 +167,7 @@ class NaviDownloadManager(private val activityRef: WeakReference<Activity>) {
|
||||
activityRef,
|
||||
onDownloadComplete,
|
||||
IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE),
|
||||
false
|
||||
true
|
||||
)
|
||||
}
|
||||
isRegistered.set(true)
|
||||
|
||||
@@ -61,7 +61,7 @@ constructor(
|
||||
context,
|
||||
downloadStatusReceiver,
|
||||
downloadCompleteIntentFilter,
|
||||
false
|
||||
true
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ constructor(
|
||||
context,
|
||||
downloadStatusReceiver,
|
||||
downloadCompleteIntentFilter,
|
||||
false
|
||||
true
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -481,12 +481,15 @@ fun DestinationsNavigator.navigateUp(activity: Activity) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param listenToBroadcastsFromOtherApps is false only for broadcast received from inside the app.
|
||||
*/
|
||||
@SuppressLint("UnspecifiedRegisterReceiverFlag")
|
||||
fun registerReceiverWithVersionCheck(
|
||||
context: Context,
|
||||
broadcastReceiver: BroadcastReceiver?,
|
||||
intentFilter: IntentFilter,
|
||||
listenToBroadcastsFromOtherApps: Boolean = false,
|
||||
listenToBroadcastsFromOtherApps: Boolean = true,
|
||||
) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
|
||||
val receiverFlags =
|
||||
|
||||
@@ -100,7 +100,7 @@ class NetworkVM : BaseVM(false) {
|
||||
AppServiceManager.application.applicationContext,
|
||||
downloadCompleteReceiver,
|
||||
IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE),
|
||||
false
|
||||
true
|
||||
)
|
||||
downloadManager?.enqueue(request)
|
||||
}
|
||||
|
||||
@@ -236,7 +236,7 @@ class WebViewFragment : BaseFragment() {
|
||||
it,
|
||||
onDownloadingCompleteListener,
|
||||
IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE),
|
||||
false
|
||||
true
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -194,7 +194,7 @@ class NaviPolicyDocumentDownloadManager(
|
||||
activityRef,
|
||||
onDownloadComplete,
|
||||
IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE),
|
||||
false
|
||||
true
|
||||
)
|
||||
}
|
||||
isRegistered.set(true)
|
||||
|
||||
Reference in New Issue
Block a user