Skip to content

Commit c744f67

Browse files
devlearnerStypox
authored andcommitted
Fix Sonar reported code smell
1 parent de7057a commit c744f67

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/src/main/java/org/schabi/newpipe/RouterActivity.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -758,10 +758,10 @@ private void playback() {
758758
while (buffer.size() > 0) {
759759
final ResultRunnable runnable = buffer.elementAt(0);
760760
buffer.removeElementAt(0);
761-
getActivityContext().runOnUiThread(() -> {
761+
getActivityContext().runOnUiThread(() ->
762762
// execute queued task with new context, in case activity has been recreated
763-
runnable.run(getActivityContext());
764-
});
763+
runnable.run(getActivityContext())
764+
);
765765
}
766766
done();
767767
}

0 commit comments

Comments
 (0)