platform/android/Rhodes/src/com/rhomobile/rhodes/camera/Camera.java in rhodes-3.2.3 vs platform/android/Rhodes/src/com/rhomobile/rhodes/camera/Camera.java in rhodes-3.3.0.beta.1

- old
+ new

@@ -38,10 +38,11 @@ import com.rhomobile.rhodes.Logger; import com.rhomobile.rhodes.RhodesActivity; import com.rhomobile.rhodes.RhodesAppOptions; import com.rhomobile.rhodes.RhodesService; import com.rhomobile.rhodes.util.PerformOnUiThread; +import com.rhomobile.rhodes.util.Utils; public class Camera { private static final String TAG = "Camera"; @@ -73,9 +74,17 @@ else { Logger.I(TAG, "Camera capability is not enabled !"); } } return ourCameraService; + } + + public static boolean ENABLE_DEBUG_LOGGING = false; + + public static void logDebug(String tag, String message) { + if (ENABLE_DEBUG_LOGGING) { + Utils.platformLog(tag, message); + } } private static void reportFail(String name, Exception e) { Logger.E(TAG, "Call of \"" + name + "\" failed: " + e.getMessage()); }