From c54a18a5a28b0b9decf3753f429083a16dfd5566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Sun, 7 Sep 2014 23:05:25 +0200 Subject: [PATCH] Rename isServiceAvailable to isAvailable --- src/android/Printer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/android/Printer.java b/src/android/Printer.java index edc4363..5c8fb2c 100644 --- a/src/android/Printer.java +++ b/src/android/Printer.java @@ -44,8 +44,8 @@ public class Printer extends CordovaPlugin { @Override public boolean execute (String action, JSONArray args, CallbackContext callbackContext) throws JSONException { // Es soll überprüft werden, ob ein Dienst zum Ausdrucken von Inhalten zur Verfügung steht - if (action.equalsIgnoreCase("isServiceAvailable")) { - isServiceAvailable(callbackContext); + if (action.equalsIgnoreCase("isAvailable")) { + isAvailable(callbackContext); return true; } @@ -64,7 +64,7 @@ public class Printer extends CordovaPlugin { /** * Überprüft, ob ein Drucker zur Verfügung steht. */ - private void isServiceAvailable (CallbackContext ctx) { + private void isAvailable (CallbackContext ctx) { Boolean supported = Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT; PluginResult result = new PluginResult(PluginResult.Status.OK, supported);