summaryrefslogtreecommitdiff
path: root/platform/android
diff options
context:
space:
mode:
authorvolzhs <volzhs@gmail.com>2019-04-18 08:07:03 +0900
committervolzhs <volzhs@gmail.com>2019-04-18 08:07:03 +0900
commit5a4b2087a015b105bac656f3679f68488c76abce (patch)
tree88175669338710edd774511d868b480bb9dda74a /platform/android
parent10c7742df3eed6c0e0d244d3a8646456beb09d49 (diff)
Fix get_unique_id() on Android
Diffstat (limited to 'platform/android')
-rw-r--r--platform/android/java/src/org/godotengine/godot/Godot.java2
1 files changed, 1 insertions, 1 deletions
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);