Update MediaAdapter.kt

This commit is contained in:
Tibor Kaputa 2021-12-05 23:30:02 +01:00 committed by GitHub
parent 8c0f047809
commit 05fa21a085
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -389,6 +389,7 @@ class MediaAdapter(
if (!isOreoPlus()) {
return
}
val manager = activity.getSystemService(ShortcutManager::class.java)
if (manager.isRequestPinShortcutSupported) {
val path = getSelectedPaths().first()