mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-22 18:07:55 +00:00
don't wait for future get as its blocking
This commit is contained in:
parent
93883f02ed
commit
796fa20aec
@ -395,12 +395,8 @@ public class SMSPlugin extends Plugin {
|
|||||||
switch (np.getType()) {
|
switch (np.getType()) {
|
||||||
case PACKET_TYPE_SMS_REQUEST_CONVERSATIONS:
|
case PACKET_TYPE_SMS_REQUEST_CONVERSATIONS:
|
||||||
Callable<Boolean> callable = () -> this.handleRequestAllConversations(np);
|
Callable<Boolean> callable = () -> this.handleRequestAllConversations(np);
|
||||||
Future future = ThreadHelper.executeCallable(callable);
|
ThreadHelper.executeCallable(callable);
|
||||||
try {
|
return true;
|
||||||
return (boolean) future.get();
|
|
||||||
} catch (InterruptedException | ExecutionException e) {
|
|
||||||
Log.d("SMSPlugin", "Error while getting result from callable: " + e.getMessage());
|
|
||||||
}
|
|
||||||
|
|
||||||
case PACKET_TYPE_SMS_REQUEST_CONVERSATION:
|
case PACKET_TYPE_SMS_REQUEST_CONVERSATION:
|
||||||
return this.handleRequestSingleConversation(np);
|
return this.handleRequestSingleConversation(np);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user