mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-02-01 16:36:51 +01:00
catch exceptions thrown at creating shortcuts
This commit is contained in:
parent
abed38ddd9
commit
ea73d4a403
@ -258,8 +258,11 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
|
||||
val createNewContact = getCreateNewContactShortcut(appIconColor)
|
||||
|
||||
val manager = getSystemService(ShortcutManager::class.java)
|
||||
manager.dynamicShortcuts = Arrays.asList(launchDialpad, createNewContact)
|
||||
config.lastHandledShortcutColor = appIconColor
|
||||
try {
|
||||
manager.dynamicShortcuts = Arrays.asList(launchDialpad, createNewContact)
|
||||
config.lastHandledShortcutColor = appIconColor
|
||||
} catch (ignored: Exception) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user