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

Commit 87a7934e authored by Mathew Inwood's avatar Mathew Inwood
Browse files

Remove duplicate compat logging.

The call to Compatibility.isChangeEnabled also logs so no need to
make an explicit call to Compatibility.reportChange().

Bug: 183512729
Test: TH
Change-Id: I062a9cfa364c36868180cce3be49da020dd91341
parent 20d62125
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -575,7 +575,6 @@ public class SystemSensorManager extends SensorManager {
                && rate > CAPPED_SAMPLING_RATE_LEVEL
                && mIsPackageDebuggable
                && !mHasHighSamplingRateSensorsPermission) {
            Compatibility.reportChange(CHANGE_ID_SAMPLING_RATE_SENSORS_PERMISSION);
            throw new SecurityException("To use the sampling rate level " + rate
                    + ", app needs to declare the normal permission"
                    + " HIGH_SAMPLING_RATE_SENSORS.");
@@ -787,7 +786,6 @@ public class SystemSensorManager extends SensorManager {
                    && rateUs < CAPPED_SAMPLING_PERIOD_US
                    && mManager.mIsPackageDebuggable
                    && !mManager.mHasHighSamplingRateSensorsPermission) {
                Compatibility.reportChange(CHANGE_ID_SAMPLING_RATE_SENSORS_PERMISSION);
                throw new SecurityException("To use the sampling rate of " + rateUs
                        + " microseconds, app needs to declare the normal permission"
                        + " HIGH_SAMPLING_RATE_SENSORS.");