Add connect / disconnect action when connect / disconnect to bluetooth device
Bug: 215299757 Test: build pass Change-Id: Ib6fd592f63d4035674dc60cd54f16ffd5550ecff
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package com.android.settings.bluetooth;
|
||||
|
||||
import android.app.settings.SettingsEnums;
|
||||
import android.bluetooth.BluetoothAdapter;
|
||||
import android.bluetooth.BluetoothDevice;
|
||||
import android.content.Context;
|
||||
@@ -116,6 +117,8 @@ public class SavedBluetoothDeviceUpdater extends BluetoothDeviceUpdater
|
||||
if (device.isConnected()) {
|
||||
return device.setActive();
|
||||
}
|
||||
mMetricsFeatureProvider.action(mPrefContext,
|
||||
SettingsEnums.ACTION_SETTINGS_BLUETOOTH_CONNECT);
|
||||
device.connect();
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user