From 5a4b2087a015b105bac656f3679f68488c76abce Mon Sep 17 00:00:00 2001 From: volzhs Date: Thu, 18 Apr 2019 08:07:03 +0900 Subject: Fix get_unique_id() on Android --- platform/android/java/src/org/godotengine/godot/Godot.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform/android/java/src/org') diff --git a/platform/android/java/src/org/godotengine/godot/Godot.java b/platform/android/java/src/org/godotengine/godot/Godot.java index a9edc2f2f4..5ef72bab6c 100644 --- a/platform/android/java/src/org/godotengine/godot/Godot.java +++ b/platform/android/java/src/org/godotengine/godot/Godot.java @@ -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); -- cgit v1.2.3