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…
Reference in New Issue