Merge "Hide battery saver warning and camera privacy lock on devices that do not support smart-auto-rotate" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f1b07d7ddd
@@ -50,7 +50,7 @@ public class SmartAutoRotateBatterySaverController extends BasePreferenceControl
|
||||
if (mPreference == null) {
|
||||
return;
|
||||
}
|
||||
mPreference.setVisible(isPowerSaveMode());
|
||||
mPreference.setVisible(isAvailable());
|
||||
updateState(mPreference);
|
||||
}
|
||||
};
|
||||
|
@@ -45,7 +45,7 @@ public class SmartAutoRotateCameraStateController extends BasePreferenceControll
|
||||
mPrivacyManager = SensorPrivacyManager.getInstance(context);
|
||||
mPrivacyManager.addSensorPrivacyListener(CAMERA, (sensor, enabled) -> {
|
||||
if (mPreference != null) {
|
||||
mPreference.setVisible(enabled);
|
||||
mPreference.setVisible(isAvailable());
|
||||
}
|
||||
updateState(mPreference);
|
||||
});
|
||||
|
Reference in New Issue
Block a user