We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4320

Summary: Android remove reflection for HIDDeviceBLESteamControlle
Product: SDL Reporter: Sylvain <sylvain.becker>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: don't know   
Hardware: All   
OS: All   
Attachments: patch

Description Sylvain 2018-10-16 20:14:04 UTC
Uneeded use of reflection to access connectGatt method in HIDDeviceBLESteamController.java

The method is API 23

https://developer.android.com/reference/android/bluetooth/BluetoothDevice.html#connectGatt(android.content.Context,%20boolean,%20android.bluetooth.BluetoothGattCallback,%20int)
Comment 1 Sylvain 2018-10-16 20:16:42 UTC
Created attachment 3379 [details]
patch

Patch. Only compilation is tested (sorry).
Comment 2 Sam Lantinga 2018-11-03 00:25:16 UTC
Patch added, thanks!
https://hg.libsdl.org/SDL/rev/5817dbd75619