mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-31 14:15:14 +00:00
Use lambdas where possible
Summary: Let Android Studio replace anonymous types with lambdas. No manual code change. Test Plan: Compile and superficial behaviour test Reviewers: #kde_connect, philipc Reviewed By: #kde_connect, philipc Subscribers: philipc, #kde_connect Tags: #kde_connect Differential Revision: https://phabricator.kde.org/D12229
This commit is contained in:
@@ -638,12 +638,7 @@ public class Device implements BaseLink.PacketReceiver {
|
||||
|
||||
//Async
|
||||
public void sendPacket(final NetworkPacket np, final SendPacketStatusCallback callback) {
|
||||
new Thread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
sendPacketBlocking(np, callback);
|
||||
}
|
||||
}).start();
|
||||
new Thread(() -> sendPacketBlocking(np, callback)).start();
|
||||
}
|
||||
|
||||
public boolean sendPacketBlocking(final NetworkPacket np, final SendPacketStatusCallback callback) {
|
||||
|
Reference in New Issue
Block a user