mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 20:30:58 +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)
|
.setIntent(intent)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
|
try {
|
||||||
manager.dynamicShortcuts = Arrays.asList(shortcut)
|
manager.dynamicShortcuts = Arrays.asList(shortcut)
|
||||||
config.lastHandledShortcutColor = appIconColor
|
config.lastHandledShortcutColor = appIconColor
|
||||||
|
} catch (ignored: Exception) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user