Skip to content

Commit d32680f

Browse files
committed
Upload file
1 parent 5445d7e commit d32680f

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

krscript/src/main/java/com/omarea/krscript/BgTaskThread.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,13 @@ class BgTaskThread(private var process: Process) : Thread() {
152152
progressTotal = total
153153
updateNotification()
154154
}
155+
156+
override fun onToast(text: String) {
157+
synchronized(notificationMessageRows) {
158+
notificationMessageRows.add(text)
159+
updateNotification()
160+
}
161+
}
155162
}
156163

157164
companion object {

krscript/src/main/java/com/omarea/krscript/HiddenTaskThread.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ class HiddenTaskThread(private var process: Process) : Thread() {
6262
progressCurrent = current
6363
progressTotal = total
6464
}
65+
66+
override fun onToast(text: String) {
67+
Toast.makeText(context, text, Toast.LENGTH_LONG).show()
68+
}
6569
}
6670

6771
companion object {

0 commit comments

Comments
 (0)