Snap for 9195661 from 062b18c736
to tm-qpr2-release
Change-Id: I596f85339f888ea43a6dea6be127197299661b06
This commit is contained in:
@@ -152,6 +152,11 @@ public class Settings extends SettingsActivity {
|
|||||||
/** Redirects to SafetyCenter if enabled. */
|
/** Redirects to SafetyCenter if enabled. */
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
public void handleSafetyCenterRedirection() {
|
public void handleSafetyCenterRedirection() {
|
||||||
|
if (isFinishing()) {
|
||||||
|
// Don't trampoline if already exiting this activity.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (SafetyCenterManagerWrapper.get().isEnabled(this)) {
|
if (SafetyCenterManagerWrapper.get().isEnabled(this)) {
|
||||||
try {
|
try {
|
||||||
startActivity(new Intent(Intent.ACTION_SAFETY_CENTER));
|
startActivity(new Intent(Intent.ACTION_SAFETY_CENTER));
|
||||||
@@ -213,6 +218,11 @@ public class Settings extends SettingsActivity {
|
|||||||
/** Redirects to SafetyCenter if enabled. */
|
/** Redirects to SafetyCenter if enabled. */
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
public void handleSafetyCenterRedirection() {
|
public void handleSafetyCenterRedirection() {
|
||||||
|
if (isFinishing()) {
|
||||||
|
// Don't trampoline if already exiting this activity.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (ACTION_PRIVACY_SETTINGS.equals(getIntent().getAction())
|
if (ACTION_PRIVACY_SETTINGS.equals(getIntent().getAction())
|
||||||
&& SafetyCenterManagerWrapper.get().isEnabled(this)) {
|
&& SafetyCenterManagerWrapper.get().isEnabled(this)) {
|
||||||
try {
|
try {
|
||||||
|
@@ -87,9 +87,7 @@ public final class BluetoothPairingRequest extends BroadcastReceiver {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mBluetoothManager.getCachedDeviceManager().shouldPairByCsip(device, groupId)) {
|
mBluetoothManager.getCachedDeviceManager().pairDeviceByCsip(device, groupId);
|
||||||
device.createBond(BluetoothDevice.TRANSPORT_LE);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user