summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/bluetooth/BluetoothDeviceNamePreferenceController.java
diff options
context:
space:
mode:
authorMatthew Fritze <mfritze@google.com>2018-05-03 16:46:51 -0700
committerMatthew Fritze <mfritze@google.com>2018-05-09 08:36:59 -0700
commitf87a1f3f41b52bd3b64a259fcfc457164aad67b5 (patch)
treeb2bbd17405b2d9233e36a5fc7be49f6df660893b /src/com/android/settings/bluetooth/BluetoothDeviceNamePreferenceController.java
parent1220c364c4e6da3587fc356bb30d3cba99ab7946 (diff)
downloadpackages_apps_Settings-f87a1f3f41b52bd3b64a259fcfc457164aad67b5.tar.gz
packages_apps_Settings-f87a1f3f41b52bd3b64a259fcfc457164aad67b5.tar.bz2
packages_apps_Settings-f87a1f3f41b52bd3b64a259fcfc457164aad67b5.zip
Establish permanently unavailable settings
Distinguish between settings which are permanently unavailable on the device, and temporarily unavailable. This enables us to restrict which setting slices are exposed in onSliceGetDescendants. The primary changes in this CL are renaming: "DISABLED_UNSUPPORTED" -> "UNSUPPORTED_ON_DEVICE" to be more clear the the setting will cannot be accessed on the device, and, adding a new enum to encapsulate settings which are currently unavailable, but could be enabled in the future. Also remove UNAVAILABLE_UNKNOWN. Devs should never need this enum. Bug: 78910582 Bug: 79245656 Test: robotests Change-Id: I58821a6cfd6134b3b351657b6edf5f74ead00643
Diffstat (limited to 'src/com/android/settings/bluetooth/BluetoothDeviceNamePreferenceController.java')
-rw-r--r--src/com/android/settings/bluetooth/BluetoothDeviceNamePreferenceController.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/settings/bluetooth/BluetoothDeviceNamePreferenceController.java b/src/com/android/settings/bluetooth/BluetoothDeviceNamePreferenceController.java
index 6ce07d31da..dd93d7b281 100644
--- a/src/com/android/settings/bluetooth/BluetoothDeviceNamePreferenceController.java
+++ b/src/com/android/settings/bluetooth/BluetoothDeviceNamePreferenceController.java
@@ -99,7 +99,7 @@ public class BluetoothDeviceNamePreferenceController extends BasePreferenceContr
@Override
public int getAvailabilityStatus() {
- return mLocalAdapter != null ? AVAILABLE : DISABLED_UNSUPPORTED;
+ return mLocalAdapter != null ? AVAILABLE : UNSUPPORTED_ON_DEVICE;
}
@Override