1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-07 19:53:17 +00:00

Merge pull request #28146 from volzhs/unique_id_android

Fix get_unique_id() on Android
This commit is contained in:
Rémi Verschelde
2019-04-18 13:53:27 +02:00
committed by GitHub

View File

@@ -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);