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

View File

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