Fix get_unique_id() on Android
This commit is contained in:
parent
10c7742df3
commit
5a4b2087a0
|
@ -425,7 +425,7 @@ public class Godot extends Activity implements SensorEventListener, IDownloaderC
|
|||
}
|
||||
|
||||
io = new GodotIO(this);
|
||||
io.unique_id = Secure.ANDROID_ID;
|
||||
io.unique_id = Secure.getString(getContentResolver(), Secure.ANDROID_ID);
|
||||
GodotLib.io = io;
|
||||
mSensorManager = (SensorManager)getSystemService(Context.SENSOR_SERVICE);
|
||||
mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
|
||||
|
|
Loading…
Reference in New Issue