Skip to content

Commit

Permalink
Fix Android
Browse files Browse the repository at this point in the history
  • Loading branch information
fortuna committed Dec 3, 2024
1 parent a6b4c88 commit 8b1e3cb
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
import org.outline.vpn.VpnServiceStarter;
import org.outline.vpn.VpnTunnelService;
import outline.Outline;
import outline.InvokeMethod;
import outline.InvokeMethodResult;
import platerrors.Platerrors;
import platerrors.PlatformError;
Expand Down Expand Up @@ -195,13 +194,13 @@ private void executeAsync(
if (Action.INVOKE_METHOD.is(action)) {
final String methodName = args.getString(0);
final String input = args.getString(1);
LOG.debug(String.format(Locale.ROOT, "Calling InvokeMethod(%s, %s)", methodName, input));
final InvokeMethodResult result = outline.InvokeMethod(methodName, input);
LOG.fine(String.format(Locale.ROOT, "Calling InvokeMethod(%s, %s)", methodName, input));
final InvokeMethodResult result = Outline.InvokeMethod(methodName, input);
if (result.getError() != null) {
LOG.warning(String.format(Locale.ROOT, "InvokeMethod(%s) failed: %s", methodName, result.getError()));
sendActionResult(callback, result.getError());
} else {
LOG.debug(String.format(Locale.ROOT, "InvokeMethod result: %s", result.getValue()));
LOG.fine(String.format(Locale.ROOT, "InvokeMethod result: %s", result.getValue()));
callback.success(result.getValue());
}

Expand Down

0 comments on commit 8b1e3cb

Please sign in to comment.