Merge "Set default phonebook access to ACCESS_REJECTED when user didn't choose one" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
4e4b2875d5
@@ -27,6 +27,7 @@ import android.content.SharedPreferences;
|
|||||||
import android.os.ParcelUuid;
|
import android.os.ParcelUuid;
|
||||||
import android.os.SystemClock;
|
import android.os.SystemClock;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
import android.util.EventLog;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
import androidx.annotation.VisibleForTesting;
|
import androidx.annotation.VisibleForTesting;
|
||||||
@@ -804,10 +805,9 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice>
|
|||||||
== BluetoothClass.Device.AUDIO_VIDEO_HANDSFREE ||
|
== BluetoothClass.Device.AUDIO_VIDEO_HANDSFREE ||
|
||||||
mDevice.getBluetoothClass().getDeviceClass()
|
mDevice.getBluetoothClass().getDeviceClass()
|
||||||
== BluetoothClass.Device.AUDIO_VIDEO_WEARABLE_HEADSET) {
|
== BluetoothClass.Device.AUDIO_VIDEO_WEARABLE_HEADSET) {
|
||||||
mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_ALLOWED);
|
EventLog.writeEvent(0x534e4554, "138529441", -1, "");
|
||||||
} else {
|
|
||||||
mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_REJECTED);
|
|
||||||
}
|
}
|
||||||
|
mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_REJECTED);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user