Skip to content

Commit a926769

Browse files
committed
Update
1 parent ddf9568 commit a926769

File tree

2 files changed

+22
-18
lines changed

2 files changed

+22
-18
lines changed

app/src/main/java/com/omarea/krscript/ui/DialogLogFragment.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@ class DialogLogFragment : DialogFragment() {
125125
if (nodeInfo.title.isNotEmpty()) {
126126
binding.title.text = nodeInfo.title
127127
} else {
128-
binding.title.visibility = View.GONE
128+
binding.title.visibility = View.INVISIBLE
129129
}
130130

131131
if (nodeInfo.desc.isNotEmpty()) {
132132
binding.desc.text = nodeInfo.desc
133133
} else {
134-
binding.desc.visibility = View.GONE
134+
binding.desc.visibility = View.INVISIBLE
135135
}
136136

137137
binding.actionProgress.isIndeterminate = true
@@ -227,7 +227,7 @@ class DialogLogFragment : DialogFragment() {
227227
shellProgress?.visibility = View.VISIBLE
228228
shellProgress?.isIndeterminate = true
229229
}
230-
current >= total -> shellProgress?.visibility = View.INVISIBLE
230+
current >= total -> shellProgress?.visibility = View.GONE
231231
else -> {
232232
shellProgress?.visibility = View.VISIBLE
233233
shellProgress?.isIndeterminate = false

app/src/main/res/layout/kr_dialog_log.xml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,33 @@
2525

2626
<TextView
2727
android:id="@+id/title"
28+
android:paddingStart="0dp"
29+
android:paddingEnd="0dp"
30+
android:paddingTop="0dp"
2831
style="@style/dialogTitle" />
2932

3033
<TextView
3134
android:id="@+id/desc"
35+
android:paddingStart="0dp"
36+
android:paddingEnd="0dp"
37+
android:paddingTop="0dp"
3238
style="@style/dialogDesc" />
3339

3440
</LinearLayout>
35-
41+
<ProgressBar
42+
android:id="@+id/action_progress"
43+
android:layout_marginTop="4dp"
44+
style="?android:attr/progressBarStyleHorizontal"
45+
android:layout_width="match_parent"
46+
android:layout_height="8dp"
47+
android:paddingStart="1dp"
48+
android:paddingEnd="1dp"
49+
android:layout_below="@+id/btn_hide"
50+
android:indeterminate="true"
51+
android:max="100"
52+
android:progress="0" />
3653
<com.omarea.common.ui.OverScrollView
37-
android:layout_marginTop="16dp"
54+
android:layout_marginTop="12dp"
3855
android:background="@drawable/krscript_item_ripple_kon"
3956
android:layout_width="match_parent"
4057
android:layout_height="match_parent"
@@ -77,17 +94,4 @@
7794
android:text="@string/btn_exit" />
7895

7996
</LinearLayout>
80-
81-
<ProgressBar
82-
android:id="@+id/action_progress"
83-
android:layout_marginTop="4dp"
84-
style="?android:attr/progressBarStyleHorizontal"
85-
android:layout_width="match_parent"
86-
android:layout_height="8dp"
87-
android:paddingStart="1dp"
88-
android:paddingEnd="1dp"
89-
android:layout_below="@+id/top_bar"
90-
android:indeterminate="true"
91-
android:max="100"
92-
android:progress="0" />
9397
</RelativeLayout>

0 commit comments

Comments
 (0)