Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d92b459c authored by Jyoti Bhayana's avatar Jyoti Bhayana Committed by Android (Google) Code Review
Browse files

Merge "Fix bug when camera privacy toggle is unsupported" into main

parents 878e6719 5882b032
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5114,7 +5114,7 @@ bool CameraService::SensorPrivacyPolicy::isCameraPrivacyEnabled() {

bool CameraService::SensorPrivacyPolicy::isCameraPrivacyEnabled(const String16& packageName) {
    if (!hasCameraPrivacyFeature()) {
        return SensorPrivacyManager::DISABLED;
        return false;
    }
    return mSpm.isCameraPrivacyEnabled(packageName);
}