Skip to content

Commit d09ba0e

Browse files
committed
Update
1 parent 77f2763 commit d09ba0e

4 files changed

Lines changed: 11 additions & 7 deletions

File tree

Version.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
**Beta**
44

5-
+ Fixes errors when changing app language
5+
+ Fixed check online
6+
+ Fixed errors when changing app language
67
+ Update add-on patch ROM
78
+ Redesign the interface to be more user-friendly
89
+ Optimize the source code

app/src/main/assets/home/bin/checkonline

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/data/data/com.tool.tree/files/home/bin/bash
22

3-
if ping -c 1 google.com >/dev/null; then
3+
if nc -z google.com 80 &>/dev/null; then
44
exit 0
5-
elif ping -c 1 baidu.com >/dev/null; then
5+
elif nc -z baidu.com 80 &>/dev/null; then
66
exit 0
77
else
88
exit 1
0 Bytes
Binary file not shown.

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,17 @@ class DialogLogFragment : DialogFragment() {
137137
binding.actionProgress.isIndeterminate = true
138138

139139
return MyShellHandler(requireContext().applicationContext, object : IActionEventHandler {
140+
// Thay chỗ này trong openExecutor -> onCompleted()
140141
override fun onCompleted() {
141142
running = false
142143
onExit.run()
143144
offScreen()
144-
binding.btnHide.visibility = View.GONE
145-
binding.btnCancel.visibility = View.GONE
146-
binding.btnExit.visibility = View.VISIBLE
147-
binding.actionProgress.visibility = View.GONE
145+
_binding?.let { b ->
146+
b.btnHide.visibility = View.GONE
147+
b.btnCancel.visibility = View.GONE
148+
b.btnExit.visibility = View.VISIBLE
149+
b.actionProgress.visibility = View.GONE
150+
}
148151
isCancelable = true
149152
}
150153

0 commit comments

Comments
 (0)