sforkowany z mirror/meshtastic-android
don't incorrectly ask for CAMERA permission
rodzic
a9c9dac3ab
commit
b753d52b93
|
@ -33,6 +33,9 @@
|
|||
<!-- Needed to open our bluetooth connection to our paired device (after reboot) -->
|
||||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
||||
|
||||
<!-- the xing library will try to bring this permission in but we don't want it -->
|
||||
<uses-permission android:name="android.permission.CAMERA" tools:node="remove" />
|
||||
|
||||
<uses-feature
|
||||
android:name="android.hardware.bluetooth_le"
|
||||
android:required="true" />
|
||||
|
|
|
@ -57,7 +57,7 @@ data class BTScanEntry(val name: String, val macAddress: String, val bonded: Boo
|
|||
|
||||
@Composable
|
||||
fun BTScanScreen() {
|
||||
val context = ambient(ContextAmbient)
|
||||
val context = ContextAmbient.current
|
||||
|
||||
/// Note: may be null on platforms without a bluetooth driver (ie. the emulator)
|
||||
val bluetoothAdapter =
|
||||
|
|
Ładowanie…
Reference in New Issue