Skip to content

Commit f998375

Browse files
author
weiwentan23
committed
add runOnUiThread when updating text
1 parent 596eee7 commit f998375

File tree

1 file changed

+6
-1
lines changed
  • ShimmerAndroidInstrumentDriver/shimmerConnectionTest/src/main/java/shimmerresearch/com/shimmerconnectiontest

1 file changed

+6
-1
lines changed

ShimmerAndroidInstrumentDriver/shimmerConnectionTest/src/main/java/shimmerresearch/com/shimmerconnectiontest/MainActivity.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,12 @@ public void run() {
281281
if (isTestStarted) {
282282
Log.i(LOG_TAG, "Current Iteration: " + currentIteration);
283283
retryCount = 0;
284-
editTextRetryCount.setText(Integer.toString(retryCount));
284+
285+
runOnUiThread(new Runnable() {
286+
public void run() {
287+
editTextRetryCount.setText(Integer.toString(retryCount));
288+
}
289+
});
285290

286291
if (currentIteration >= totalIterationLimit) {
287292
runOnUiThread(new Runnable() {

0 commit comments

Comments
 (0)