File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
app/src/main/java/io/neoterm/setup Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -65,15 +65,12 @@ public void run() {
65
65
final int totalReadBytesFinal = totalReadBytes ;
66
66
final int totalBytesFinal = totalBytes ;
67
67
68
- activity .runOnUiThread (new Runnable () {
69
- @ Override
70
- public void run () {
71
- try {
72
- double progressFloat = ((double ) totalReadBytesFinal ) / ((double ) totalBytesFinal ) * 100.0 ;
73
- progressDialog .setProgress ((int ) progressFloat );
74
- } catch (RuntimeException ignore ) {
75
- // activity dismissed
76
- }
68
+ activity .runOnUiThread (() -> {
69
+ try {
70
+ double progressFloat = ((double ) totalReadBytesFinal ) / ((double ) totalBytesFinal ) * 100.0 ;
71
+ progressDialog .setProgress ((int ) progressFloat );
72
+ } catch (RuntimeException ignore ) {
73
+ // activity dismissed
77
74
}
78
75
});
79
76
You can’t perform that action at this time.
0 commit comments