fix [2475541] Deprecate Sensor.TYPE_ORIENTATION
It's much better to use SensorManager.getRotation() instead.
This commit is contained in:
@@ -73111,7 +73111,7 @@
|
||||
value="3"
|
||||
static="true"
|
||||
final="true"
|
||||
deprecated="not deprecated"
|
||||
deprecated="deprecated"
|
||||
visibility="public"
|
||||
>
|
||||
</field>
|
||||
|
||||
@@ -41,7 +41,10 @@ public class Sensor {
|
||||
* A constant describing an orientation sensor type.
|
||||
* See {@link android.hardware.SensorEvent SensorEvent}
|
||||
* for more details.
|
||||
* @deprecated use {@link android.hardware.SensorManager#getOrientation
|
||||
* SensorManager.getOrientation()} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public static final int TYPE_ORIENTATION = 3;
|
||||
|
||||
/** A constant describing a gyroscope sensor type */
|
||||
|
||||
Reference in New Issue
Block a user