mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
catch exceptions thrown at setting shortcuts
This commit is contained in:
@@ -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) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user