diff --git a/src/com/android/settings/bluetooth/LocalBluetoothPreferences.java b/src/com/android/settings/bluetooth/LocalBluetoothPreferences.java index 36bc7c8bd76..6f4a76584fc 100644 --- a/src/com/android/settings/bluetooth/LocalBluetoothPreferences.java +++ b/src/com/android/settings/bluetooth/LocalBluetoothPreferences.java @@ -64,17 +64,17 @@ final class LocalBluetoothPreferences { return false; } + // If Bluetooth Settings is visible + if (manager.isForegroundActivity()) { + return true; + } + // If in appliance mode, do not show dialog in foreground. if ((context.getResources().getConfiguration().uiMode & Configuration.UI_MODE_TYPE_APPLIANCE) == Configuration.UI_MODE_TYPE_APPLIANCE) { return false; } - // If Bluetooth Settings is visible - if (manager.isForegroundActivity()) { - return true; - } - long currentTimeMillis = System.currentTimeMillis(); SharedPreferences sharedPreferences = getSharedPreferences(context);