mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2025-01-30 12:37:33 +01:00
Omit RPIs in log (#1464)
This commit is contained in:
parent
aee45c22be
commit
9eb0adda9d
@ -138,8 +138,7 @@ class AdvertiserService : LifecycleService() {
|
|||||||
database.generateCurrentPayload(aemBytes)
|
database.generateCurrentPayload(aemBytes)
|
||||||
}
|
}
|
||||||
val data = AdvertiseData.Builder().addServiceUuid(SERVICE_UUID).addServiceData(SERVICE_UUID, payload).build()
|
val data = AdvertiseData.Builder().addServiceUuid(SERVICE_UUID).addServiceData(SERVICE_UUID, payload).build()
|
||||||
val (uuid, _) = ByteBuffer.wrap(payload).let { UUID(it.long, it.long) to it.int }
|
Log.i(TAG, "Starting advertiser")
|
||||||
Log.i(TAG, "Starting advertiser for RPI $uuid")
|
|
||||||
if (Build.VERSION.SDK_INT >= 26) {
|
if (Build.VERSION.SDK_INT >= 26) {
|
||||||
setCallback = SetCallback()
|
setCallback = SetCallback()
|
||||||
val params = AdvertisingSetParameters.Builder()
|
val params = AdvertisingSetParameters.Builder()
|
||||||
@ -201,8 +200,7 @@ class AdvertiserService : LifecycleService() {
|
|||||||
@Synchronized
|
@Synchronized
|
||||||
private fun stopOrRestartAdvertising() {
|
private fun stopOrRestartAdvertising() {
|
||||||
if (!advertising) return
|
if (!advertising) return
|
||||||
val (uuid, _) = ByteBuffer.wrap(sendingBytes).let { UUID(it.long, it.long) to it.int }
|
Log.i(TAG, "Stopping advertiser")
|
||||||
Log.i(TAG, "Stopping advertiser for RPI $uuid")
|
|
||||||
advertising = false
|
advertising = false
|
||||||
if (Build.VERSION.SDK_INT >= 26) {
|
if (Build.VERSION.SDK_INT >= 26) {
|
||||||
wantStartAdvertising = true
|
wantStartAdvertising = true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user