mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-19 08:09:12 +01:00
Use Bluetooth headset mic to record voice notes.
This commit is contained in:
@@ -6,6 +6,7 @@ import android.app.AlarmManager;
|
||||
import android.app.KeyguardManager;
|
||||
import android.app.NotificationManager;
|
||||
import android.app.job.JobScheduler;
|
||||
import android.bluetooth.BluetoothManager;
|
||||
import android.content.ClipboardManager;
|
||||
import android.content.Context;
|
||||
import android.hardware.SensorManager;
|
||||
@@ -107,4 +108,8 @@ public class ServiceUtil {
|
||||
public static KeyguardManager getKeyguardManager(@NotNull Context context) {
|
||||
return ContextCompat.getSystemService(context, KeyguardManager.class);
|
||||
}
|
||||
|
||||
public static BluetoothManager getBluetoothManager(@NotNull Context context) {
|
||||
return ContextCompat.getSystemService(context, BluetoothManager.class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user