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 - Android remove reflection for HIDDeviceBLESteamControlle
Summary: Android remove reflection for HIDDeviceBLESteamControlle
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: don't know
Hardware: All All
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-16 20:14 UTC by Sylvain
Modified: 2018-11-03 00:25 UTC (History)
0 users

See Also:


Attachments
patch (1.68 KB, patch)
2018-10-16 20:16 UTC, Sylvain
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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