diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-04-18 13:53:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-18 13:53:27 +0200 |
commit | 2dee231c8e229c93ba0979d8bee9559b571b9462 (patch) | |
tree | 56579652867f218fc093ce6227afc2bf11ac6e84 /platform/android | |
parent | d1f98ff51b2e62ddea27fb9b1b9b5fb1ec80dbe0 (diff) | |
parent | 5a4b2087a015b105bac656f3679f68488c76abce (diff) |
Merge pull request #28146 from volzhs/unique_id_android
Fix get_unique_id() on Android
Diffstat (limited to 'platform/android')
-rw-r--r-- | platform/android/java/src/org/godotengine/godot/Godot.java | 2 |
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); |