mirror of
https://github.com/jrpie/Launcher.git
synced 2025-02-23 14:31:30 +01:00
Merge pull request #19 from toby-bro/fix/disappearing_icons
Fix disappearing icons (#8)
This commit is contained in:
commit
c7068a31ce
3 changed files with 5 additions and 19 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -47,6 +47,7 @@ captures/
|
||||||
.idea/assetWizardSettings.xml
|
.idea/assetWizardSettings.xml
|
||||||
.idea/dictionaries
|
.idea/dictionaries
|
||||||
.idea/libraries
|
.idea/libraries
|
||||||
|
.idea/deploymentTargetSelector.xml
|
||||||
# Android Studio 3 in .gitignore file.
|
# Android Studio 3 in .gitignore file.
|
||||||
.idea/caches
|
.idea/caches
|
||||||
.idea/modules.xml
|
.idea/modules.xml
|
||||||
|
|
18
.idea/deploymentTargetSelector.xml
generated
18
.idea/deploymentTargetSelector.xml
generated
|
@ -1,18 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="deploymentTargetSelector">
|
|
||||||
<selectionStates>
|
|
||||||
<SelectionState runConfigName="app">
|
|
||||||
<option name="selectionMode" value="DROPDOWN" />
|
|
||||||
<DropdownSelection timestamp="2024-08-03T23:51:52.680101889Z">
|
|
||||||
<Target type="DEFAULT_BOOT">
|
|
||||||
<handle>
|
|
||||||
<DeviceId pluginId="LocalEmulator" identifier="path=/home/jrpie/.config/.android/avd/Medium_Phone_API_35.avd" />
|
|
||||||
</handle>
|
|
||||||
</Target>
|
|
||||||
</DropdownSelection>
|
|
||||||
<DialogSelection />
|
|
||||||
</SelectionState>
|
|
||||||
</selectionStates>
|
|
||||||
</component>
|
|
||||||
</project>
|
|
|
@ -81,7 +81,10 @@ class ActionsRecyclerAdapter(val activity: Activity):
|
||||||
fun updateViewHolder() {
|
fun updateViewHolder() {
|
||||||
val app = gesture.getApp(activity)
|
val app = gesture.getApp(activity)
|
||||||
val content = app.first
|
val content = app.first
|
||||||
if (content == ""){
|
viewHolder.img.visibility = View.VISIBLE
|
||||||
|
viewHolder.removeAction.visibility = View.VISIBLE
|
||||||
|
viewHolder.chooseButton.visibility = View.INVISIBLE
|
||||||
|
if (content.isEmpty()){
|
||||||
viewHolder.img.visibility = View.INVISIBLE
|
viewHolder.img.visibility = View.INVISIBLE
|
||||||
viewHolder.removeAction.visibility = View.GONE
|
viewHolder.removeAction.visibility = View.GONE
|
||||||
viewHolder.chooseButton.visibility = View.VISIBLE
|
viewHolder.chooseButton.visibility = View.VISIBLE
|
||||||
|
|
Loading…
Add table
Reference in a new issue