catch exceptions thrown at setting shortcuts

This commit is contained in:
tibbi 2019-03-11 12:18:00 +01:00
parent ccc30c104d
commit 9b98f1d9ad
1 changed files with 5 additions and 2 deletions

View File

@ -284,8 +284,11 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
.setIntent(intent)
.build()
manager.dynamicShortcuts = Arrays.asList(shortcut)
config.lastHandledShortcutColor = appIconColor
try {
manager.dynamicShortcuts = Arrays.asList(shortcut)
config.lastHandledShortcutColor = appIconColor
} catch (ignored: Exception) {
}
}
}