diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsDetailImageDialogFragment.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsDetailImageDialogFragment.java index 06ad0d1ec..9df6bbf1d 100644 --- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsDetailImageDialogFragment.java +++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsDetailImageDialogFragment.java @@ -31,6 +31,7 @@ import android.widget.Toast; import androidx.core.app.ActivityCompat; +import androidx.core.content.ContextCompat; import androidx.core.content.PermissionChecker; import androidx.fragment.app.DialogFragment; @@ -483,7 +484,7 @@ public void onReceive(Context context, Intent intent) { } }; IntentFilter intentFilter = new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE); - requireActivity().registerReceiver(downloadCompleteReceiver, intentFilter); + ContextCompat.registerReceiver(requireActivity(), downloadCompleteReceiver, intentFilter, ContextCompat.RECEIVER_NOT_EXPORTED); } public boolean isExternalStorageWritable() {