Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep on connection updated method #395

Merged
merged 2 commits into from Jun 7, 2022

Conversation

philips77
Copy link
Member

The following method:

public void onConnectionUpdated(@NonNull final BluetoothGatt gatt,
@IntRange(from = 6, to = 3200) final int interval,
@IntRange(from = 0, to = 499) final int latency,
@IntRange(from = 10, to = 3200) final int timeout,
final int status) {

method was being removed by Proguard and R8 as it seems not being used. In fact, it overrides a hidden method in BluetoothGattCallback. Marking it as @Keep will solve the issue.

@philips77 philips77 merged commit 7727d49 into master Jun 7, 2022
@philips77 philips77 deleted the bugfix/keep-on-connection-updated branch June 7, 2022 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant