Merge pull request #82 from esensar/fix/hidden-apps-crash
Fix crash when removing last hidden icon from HiddenIconsActivity
This commit is contained in:
commit
6f1ce87af0
|
@ -46,7 +46,11 @@ class HiddenIconsActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
|||
})
|
||||
).toMutableList() as ArrayList<HiddenIcon>
|
||||
|
||||
manage_hidden_icons_placeholder.beVisibleIf(hiddenIcons.isEmpty())
|
||||
val hiddenIconsEmpty = hiddenIcons.isEmpty()
|
||||
runOnUiThread {
|
||||
manage_hidden_icons_placeholder.beVisibleIf(hiddenIconsEmpty)
|
||||
}
|
||||
|
||||
if (hiddenIcons.isNotEmpty()) {
|
||||
val intent = Intent(Intent.ACTION_MAIN, null)
|
||||
intent.addCategory(Intent.CATEGORY_LAUNCHER)
|
||||
|
|
Loading…
Reference in New Issue