Merge "Establish permanently unavailable settings"

This commit is contained in:
android-build-team Robot
2018-05-09 18:14:32 +00:00
committed by Android (Google) Code Review
113 changed files with 185 additions and 207 deletions

View File

@@ -67,7 +67,7 @@ public class GameControllerPreferenceController extends TogglePreferenceControll
public int getAvailabilityStatus() {
// If device explicitly wants to hide this, return early.
if (!mContext.getResources().getBoolean(R.bool.config_show_vibrate_input_devices)) {
return DISABLED_UNSUPPORTED;
return UNSUPPORTED_ON_DEVICE;
}
final int[] devices = mIm.getInputDeviceIds();
@@ -77,7 +77,7 @@ public class GameControllerPreferenceController extends TogglePreferenceControll
return AVAILABLE;
}
}
return DISABLED_UNSUPPORTED;
return CONDITIONALLY_UNAVAILABLE;
}
@Override