diff options
| author | 2021-04-06 10:52:21 +0000 | |
|---|---|---|
| committer | 2021-04-06 10:53:02 +0000 | |
| commit | 87a7934e7c9c161f12cce965cd2a8ad0e9632a39 (patch) | |
| tree | c8053af23de3d71cc070d39a0c81f3047c83242e | |
| parent | 20d621256861bfdfdcffcf532d19a378010e0971 (diff) | |
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
| -rw-r--r-- | core/java/android/hardware/SystemSensorManager.java | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/core/java/android/hardware/SystemSensorManager.java b/core/java/android/hardware/SystemSensorManager.java index 365dea691489..3c11d8ed97b1 100644 --- a/core/java/android/hardware/SystemSensorManager.java +++ b/core/java/android/hardware/SystemSensorManager.java @@ -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."); |