Fix get_unique_id() on Android

(cherry picked from commit 5a4b2087a0)
This commit is contained in:
volzhs 2019-04-18 08:07:03 +09:00 committed by Rémi Verschelde
parent 7b8e7d6514
commit 3c635b4bdf
1 changed files with 1 additions and 1 deletions

View File

@ -429,7 +429,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);