catch exceptions thrown at setting shortcuts
This commit is contained in:
parent
ccc30c104d
commit
9b98f1d9ad
|
@ -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) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue