diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-03-14 17:57:36 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-16 07:58:20 -0700 |
commit | b0eccec8ed330d000e88b01404a30cc610d93ee2 (patch) | |
tree | cb28b26e4f8af3c35692239790daabfe3c3299c3 /android-mobile | |
parent | c19e3bd5ba1fa18d90c14643bf4321029f7b01fe (diff) | |
download | subsurface-b0eccec8ed330d000e88b01404a30cc610d93ee2.tar.gz |
android/usb: pass the usbDevice for intent handling
Instead of creating a string with all the object information, simply pass
the actual object to the C++ code.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'android-mobile')
-rw-r--r-- | android-mobile/src/org/subsurfacedivelog/mobile/SubsurfaceMobileActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/android-mobile/src/org/subsurfacedivelog/mobile/SubsurfaceMobileActivity.java b/android-mobile/src/org/subsurfacedivelog/mobile/SubsurfaceMobileActivity.java index 52f401b71..c50dfb237 100644 --- a/android-mobile/src/org/subsurfacedivelog/mobile/SubsurfaceMobileActivity.java +++ b/android-mobile/src/org/subsurfacedivelog/mobile/SubsurfaceMobileActivity.java @@ -27,7 +27,7 @@ public class SubsurfaceMobileActivity extends QtActivity public static boolean isIntentPending; public static boolean isInitialized; private static final String TAG = "subsurfacedivelog.mobile"; - public static native void setDeviceString(String deviceString); + public static native void setUsbDevice(UsbDevice usbDevice); private static Context appContext; // we need to provide two endpoints: @@ -105,7 +105,7 @@ public class SubsurfaceMobileActivity extends QtActivity return; } Log.i(TAG + " processIntent device name", device.getDeviceName()); - setDeviceString(device.toString()); + setUsbDevice(device); } // processIntent |