mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-01-24 16:07:04 +00:00
Fix Sonar reported code smell
This commit is contained in:
parent
de7057ac3a
commit
c744f6756b
@ -758,10 +758,10 @@ public class RouterActivity extends AppCompatActivity {
|
|||||||
while (buffer.size() > 0) {
|
while (buffer.size() > 0) {
|
||||||
final ResultRunnable runnable = buffer.elementAt(0);
|
final ResultRunnable runnable = buffer.elementAt(0);
|
||||||
buffer.removeElementAt(0);
|
buffer.removeElementAt(0);
|
||||||
getActivityContext().runOnUiThread(() -> {
|
getActivityContext().runOnUiThread(() ->
|
||||||
// execute queued task with new context, in case activity has been recreated
|
// execute queued task with new context, in case activity has been recreated
|
||||||
runnable.run(getActivityContext());
|
runnable.run(getActivityContext())
|
||||||
});
|
);
|
||||||
}
|
}
|
||||||
done();
|
done();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user