Merge changes Ibd1291ff,I5224900b
* changes: Add ability to show/hide System Update. Clean up SystemUpdatePreferences tests.
This commit is contained in:
committed by
Android (Google) Code Review
commit
929f0b7789
@@ -47,7 +47,8 @@ public class SystemUpdatePreferenceController extends BasePreferenceController {
|
||||
|
||||
@Override
|
||||
public int getAvailabilityStatus() {
|
||||
return mUm.isAdminUser()
|
||||
return mContext.getResources().getBoolean(R.bool.config_show_system_update_settings)
|
||||
&& mUm.isAdminUser()
|
||||
? AVAILABLE
|
||||
: DISABLED_UNSUPPORTED;
|
||||
}
|
||||
|
Reference in New Issue
Block a user