Fix IllegalArgumentException when trying to repin a disabled shortcut

This commit is contained in:
Cameron Gutman committed 2020-03-21 13:25:55 -07:00
1 parent eefc08db47
commit 977a1d4a3c
2 files changed
+15

No files matched your search

@@ -192,4 +192,13 @@ public class ShortcutHelper {
}
}
}
public void enableAppShortcut(ComputerDetails computer, NvApp app) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N_MR1) {
String id = getShortcutIdForGame(computer, app);
if (getInfoForId(id) != null) {
sm.enableShortcuts(Collections.singletonList(id));
}
}
}
}