@@ -62,7 +62,7 @@ class DialogLogFragment : DialogFragment() {
6262
6363 nodeInfo?.let { node ->
6464 if (node.reloadPage) {
65- binding.btnHide.visibility = View .INVISIBLE
65+ binding.btnHide.visibility = View .GONE
6666 }
6767
6868 val shellHandler = openExecutor(node)
@@ -118,20 +118,20 @@ class DialogLogFragment : DialogFragment() {
118118 binding.btnHide.visibility = View .VISIBLE
119119 binding.btnCancel.visibility = View .VISIBLE
120120 } else {
121- binding.btnHide.visibility = View .INVISIBLE
121+ binding.btnHide.visibility = View .GONE
122122 binding.btnCancel.visibility = View .GONE
123123 }
124124
125125 if (nodeInfo.title.isNotEmpty()) {
126126 binding.title.text = nodeInfo.title
127127 } else {
128- binding.title.visibility = View .INVISIBLE
128+ binding.title.visibility = View .GONE
129129 }
130130
131131 if (nodeInfo.desc.isNotEmpty()) {
132132 binding.desc.text = nodeInfo.desc
133133 } else {
134- binding.desc.visibility = View .INVISIBLE
134+ binding.desc.visibility = View .GONE
135135 }
136136
137137 binding.actionProgress.isIndeterminate = true
@@ -143,10 +143,10 @@ class DialogLogFragment : DialogFragment() {
143143 onExit.run ()
144144 offScreen()
145145 _binding ?.let { b ->
146- b.btnHide.visibility = View .INVISIBLE
146+ b.btnHide.visibility = View .GONE
147147 b.btnCancel.visibility = View .GONE
148148 b.btnExit.visibility = View .VISIBLE
149- b.actionProgress.visibility = View .INVISIBLE
149+ b.actionProgress.visibility = View .GONE
150150 }
151151 isCancelable = true
152152 }
@@ -227,7 +227,7 @@ class DialogLogFragment : DialogFragment() {
227227 shellProgress?.visibility = View .VISIBLE
228228 shellProgress?.isIndeterminate = true
229229 }
230- current >= total -> shellProgress?.visibility = View .GONE
230+ current >= total -> shellProgress?.visibility = View .INVISIBLE
231231 else -> {
232232 shellProgress?.visibility = View .VISIBLE
233233 shellProgress?.isIndeterminate = false
0 commit comments