mirror of
				https://github.com/SimpleMobileTools/Simple-Launcher.git
				synced 2025-06-05 21:59:15 +02:00 
			
		
		
		
	remove invalid hidden icons
This commit is contained in:
		@@ -66,6 +66,12 @@ class HiddenIconsActivity : SimpleActivity(), RefreshRecyclerViewListener {
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            val iconsToRemove = hiddenIcons.filter { it.drawable == null }
 | 
			
		||||
            if (iconsToRemove.isNotEmpty()) {
 | 
			
		||||
                hiddenIconsDB.removeHiddenIcons(iconsToRemove)
 | 
			
		||||
                hiddenIcons.removeAll(iconsToRemove)
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            runOnUiThread {
 | 
			
		||||
                HiddenIconsAdapter(this, hiddenIcons, this, manage_hidden_icons_list) {
 | 
			
		||||
                }.apply {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user