isAvailable is true by default in dev options

- isAvailable() is defaulted to return true for all developer options
 preferences
 - child controllers should override for custom hiding logic

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I89921f801c25e74bf78d02c55b5f34cf1d464cd0
This commit is contained in:
jeffreyhuang
2017-09-28 16:00:59 -07:00
parent ae6c29d10f
commit f74a2575a9
18 changed files with 10 additions and 85 deletions

View File

@@ -51,6 +51,16 @@ public abstract class DeveloperOptionsPreferenceController extends
return false;
}
/**
* Child classes should override this method to create custom logic for hiding preferences.
*
* @return true if the preference is to be displayed.
*/
@Override
public boolean isAvailable() {
return true;
}
/**
* Called when developer options is enabled
*/