From be29dce7b7bf1d27b7c8dbf8e9fd6ec279acf231 Mon Sep 17 00:00:00 2001 From: Alex Hart Date: Tue, 3 Aug 2021 13:33:45 -0300 Subject: [PATCH] Add lint suppression for API31 bluetooth permissions. --- .../securesms/webrtc/audio/BluetoothStateManager.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/org/thoughtcrime/securesms/webrtc/audio/BluetoothStateManager.java b/app/src/main/java/org/thoughtcrime/securesms/webrtc/audio/BluetoothStateManager.java index 9092f5b31d..6156550b71 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/webrtc/audio/BluetoothStateManager.java +++ b/app/src/main/java/org/thoughtcrime/securesms/webrtc/audio/BluetoothStateManager.java @@ -1,5 +1,6 @@ package org.thoughtcrime.securesms.webrtc.audio; +import android.annotation.SuppressLint; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothHeadset; @@ -19,6 +20,10 @@ import org.thoughtcrime.securesms.util.ServiceUtil; import java.util.List; import java.util.concurrent.atomic.AtomicBoolean; +/** + * Note: We will need to start handling new permissions once we move to target API 31 + */ +@SuppressLint("MissingPermission") public class BluetoothStateManager { private static final String TAG = Log.tag(BluetoothStateManager.class);