mirror of
https://github.com/SimpleMobileTools/Simple-Launcher.git
synced 2025-02-18 12:30:38 +01:00
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>
|
).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()) {
|
if (hiddenIcons.isNotEmpty()) {
|
||||||
val intent = Intent(Intent.ACTION_MAIN, null)
|
val intent = Intent(Intent.ACTION_MAIN, null)
|
||||||
intent.addCategory(Intent.CATEGORY_LAUNCHER)
|
intent.addCategory(Intent.CATEGORY_LAUNCHER)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user