1
0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2024-11-25 04:22:30 +01:00

Fix Sonar reported code smell

This commit is contained in:
devlearner 2022-12-02 17:41:43 +00:00 committed by Stypox
parent de7057ac3a
commit c744f6756b
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23

View File

@ -758,10 +758,10 @@ public class RouterActivity extends AppCompatActivity {
while (buffer.size() > 0) {
final ResultRunnable runnable = buffer.elementAt(0);
buffer.removeElementAt(0);
getActivityContext().runOnUiThread(() -> {
getActivityContext().runOnUiThread(() ->
// execute queued task with new context, in case activity has been recreated
runnable.run(getActivityContext());
});
runnable.run(getActivityContext())
);
}
done();
}