You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Fix get_unique_id() on Android
This commit is contained in:
@@ -425,7 +425,7 @@ public class Godot extends Activity implements SensorEventListener, IDownloaderC
|
|||||||
}
|
}
|
||||||
|
|
||||||
io = new GodotIO(this);
|
io = new GodotIO(this);
|
||||||
io.unique_id = Secure.ANDROID_ID;
|
io.unique_id = Secure.getString(getContentResolver(), Secure.ANDROID_ID);
|
||||||
GodotLib.io = io;
|
GodotLib.io = io;
|
||||||
mSensorManager = (SensorManager)getSystemService(Context.SENSOR_SERVICE);
|
mSensorManager = (SensorManager)getSystemService(Context.SENSOR_SERVICE);
|
||||||
mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
|
mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
|
||||||
|
|||||||
Reference in New Issue
Block a user