Skip to content

Commit b648a83

Browse files
committed
Upload file
1 parent cd7a62b commit b648a83

9 files changed

Lines changed: 11 additions & 12 deletions

File tree

common/src/main/java/com/omarea/common/shared/ObjectStorage.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ open class ObjectStorage<T : Serializable>(private val context: Context) {
4848
objectOutputStream.writeObject(obj)
4949
return true
5050
} catch (ex: Exception) {
51-
Toast.makeText(context, "存储配置失败!", Toast.LENGTH_SHORT).show()
51+
Toast.makeText(context, "Storage configuration failed!", Toast.LENGTH_SHORT).show()
5252
return false
5353
} finally {
5454
try {

common/src/main/java/com/omarea/common/shell/KeepShell.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class KeepShell(private var rootMode: Boolean = true) {
137137
fun doCmdSync(cmd: String): String {
138138
if (mLock.isLocked && enterLockTime > 0 && System.currentTimeMillis() - enterLockTime > LOCK_TIMEOUT) {
139139
tryExit()
140-
Log.e("doCmdSync-Lock", "线程等待超时${System.currentTimeMillis()} - $enterLockTime > $LOCK_TIMEOUT")
140+
Log.e("doCmdSync-Lock", "Thread wait timeout ${System.currentTimeMillis()} - $enterLockTime > $LOCK_TIMEOUT")
141141
}
142142
getRuntimeShell()
143143

common/src/main/java/com/omarea/common/shell/ShellExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ private static String getEnvPath() {
3333
if (!path.isEmpty()) {
3434
defaultEnvPath = path;
3535
} else {
36-
throw new RuntimeException("未能获取到$PATH参数");
36+
throw new RuntimeException("Unable to obtain $PATH parameter");
3737
}
3838
} catch (Exception ex) {
3939
defaultEnvPath = "/sbin:/system/sbin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin";

common/src/main/java/com/omarea/common/ui/ProgressBarDialog.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ open class ProgressBarDialog(private var context: Activity, private var uniqueId
9090
}
9191
}
9292

93-
fun showDialog(text: String = "正在加载,请稍等..."): ProgressBarDialog {
93+
fun showDialog(text: String = "Loading, please wait..."): ProgressBarDialog {
9494
if (textView != null && alert != null) {
9595
textView!!.text = text
9696
} else {

common/src/main/java/com/omarea/common/ui/ProgressCircle.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import androidx.core.content.withStyledAttributes
1414

1515
class ProgressCircle : View {
1616
//-------------必须给的数据相关-------------
17-
private val str = arrayOf("已用", "可用")
17+
private val str = arrayOf("Already used", "Available")
1818
private var ratio = 0
1919
private var ratioState = 0
2020

common/src/main/res/layout/dialog_app_chooser.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
android:layout_margin="6dp"
5555
android:text="@string/select_all"
5656
android:layoutDirection="rtl"
57+
style="@style/textTitle"
5758
android:layout_width="wrap_content"
5859
android:layout_height="wrap_content" />
5960
</RelativeLayout>

common/src/main/res/layout/dialog_item_chooser.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
android:layout_margin="6dp"
7979
android:text="@string/select_all"
8080
android:layoutDirection="rtl"
81+
style="@style/textTitle"
8182
android:layout_alignParentEnd="true"
8283
android:layout_width="wrap_content"
8384
android:layout_height="wrap_content" />

krscript/src/main/java/com/omarea/krscript/ui/PageLayoutRender.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class PageLayoutRender(private val mContext: Context,
6464
try {
6565
val item = findItemByDynamicIndex(key, itemConfigList)
6666
if (item == null) {
67-
Log.e("onItemClick", "找不到指定ID的项 index: $key")
67+
Log.e("onItemClick", "Item with the specified ID not found index: $key")
6868
return
6969
} else {
7070
onItemClick(item, listItemView)
@@ -114,7 +114,7 @@ class PageLayoutRender(private val mContext: Context,
114114
parent.addView(uiRender)
115115
}
116116
} catch (ex: Exception) {
117-
Toast.makeText(mContext, it.title + "界面渲染异常" + ex.message, Toast.LENGTH_SHORT).show()
117+
Toast.makeText(mContext, it.title + "Interface rendering error" + ex.message, Toast.LENGTH_SHORT).show()
118118
}
119119
}
120120
}

pio/src/main/assets/home/etc/tool-tree.rc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -341,10 +341,7 @@ $shella5"
341341
}
342342

343343
Update(){
344-
if [ -f "$TEMP/update" ];then
345-
show_update=1
346-
show_update_text="§"
347-
fi
344+
[ -f "$TEMP/update" ] && show_update=1
348345
xml_print '<group>
349346
<page icon="'`urlpng like`'" link="https://zenlua.github.io/Tool-Tree/website/Information.html" >
350347
<title>Kakathic</title>
@@ -389,7 +386,7 @@ fi
389386
</set>
390387
</action>
391388
<text>
392-
<desc>'"$(cat $TEMP/version.txt 2>/dev/null)"$show_update_text'</desc>
389+
<desc>'"$(cat $TEMP/version.txt 2>/dev/null)"'</desc>
393390
</text>
394391
</group>'
395392
}

0 commit comments

Comments
 (0)