mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-01-14 01:34:59 +01:00
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
Block a user