diff options
Diffstat (limited to 'src/com/android/settings/bluetooth/LocalBluetoothPreferences.java')
-rw-r--r-- | src/com/android/settings/bluetooth/LocalBluetoothPreferences.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/settings/bluetooth/LocalBluetoothPreferences.java b/src/com/android/settings/bluetooth/LocalBluetoothPreferences.java index 7e62b0e..36bc7c8 100644 --- a/src/com/android/settings/bluetooth/LocalBluetoothPreferences.java +++ b/src/com/android/settings/bluetooth/LocalBluetoothPreferences.java @@ -19,6 +19,7 @@ package com.android.settings.bluetooth; import android.app.QueuedWork; import android.content.Context; import android.content.SharedPreferences; +import android.content.res.Configuration; /** * LocalBluetoothPreferences provides an interface to the preferences @@ -63,6 +64,12 @@ final class LocalBluetoothPreferences { return false; } + // 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; |