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

Commit fef1a815 authored by Brian Stack's avatar Brian Stack
Browse files

Update Step Detector and Step Counter docstring

Explicitly states that the Step Detector and Step Counter require the
android.permission.ACTIVITY_RECOGNITION permission in order to be
used.

Bug: 130640415
Test: Builds
Change-Id: I3c6bb00128343dff8dbb97c71e9fe2a912662ff0
parent c8796371
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -364,6 +364,8 @@ public final class Sensor {
     * count steps if it is not activated. This sensor is ideal for fitness tracking applications.
     * count steps if it is not activated. This sensor is ideal for fitness tracking applications.
     * It is defined as an {@link Sensor#REPORTING_MODE_ON_CHANGE} sensor.
     * It is defined as an {@link Sensor#REPORTING_MODE_ON_CHANGE} sensor.
     * <p>
     * <p>
     * This sensor requires permission {@code android.permission.ACTIVITY_RECOGNITION}.
     * <p>
     * See {@link android.hardware.SensorEvent#values SensorEvent.values} for more details.
     * See {@link android.hardware.SensorEvent#values SensorEvent.values} for more details.
     */
     */
    public static final int TYPE_STEP_COUNTER = 19;
    public static final int TYPE_STEP_COUNTER = 19;
@@ -382,6 +384,8 @@ public final class Sensor {
     * gyroscope. This sensor uses lower power than the other rotation vectors, because it doesn't
     * gyroscope. This sensor uses lower power than the other rotation vectors, because it doesn't
     * use the gyroscope. However, it is more noisy and will work best outdoors.
     * use the gyroscope. However, it is more noisy and will work best outdoors.
     * <p>
     * <p>
     * This sensor requires permission {@code android.permission.ACTIVITY_RECOGNITION}.
     * <p>
     * See {@link android.hardware.SensorEvent#values SensorEvent.values} for more details.
     * See {@link android.hardware.SensorEvent#values SensorEvent.values} for more details.
     */
     */
    public static final int TYPE_GEOMAGNETIC_ROTATION_VECTOR = 20;
    public static final int TYPE_GEOMAGNETIC_ROTATION_VECTOR = 20;