am 7b065464
: Move BT settings appliance check after foreground check.
* commit '7b065464c996b792c1ecdd9d8c93db1bf0538b8d': Move BT settings appliance check after foreground check.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user