Open andreikr79 opened 5 years ago
"OmniVirt.api.sendMessage('deviceorientation', " + String.format("{alpha: %f, beta: %f, gamma: %f, orientation: %d}", alpha, beta, gamma, Integer.valueOf(screenOrientation)) + ", document.getElementsByTagName('iframe')[0], false)"
But in some locales (for example Russian) String.format("%f") return number with a comma not a dot. So device orientation not working in some locales
Yes confirm for polish locale the same issue.
"OmniVirt.api.sendMessage('deviceorientation', " + String.format("{alpha: %f, beta: %f, gamma: %f, orientation: %d}", alpha, beta, gamma, Integer.valueOf(screenOrientation)) + ", document.getElementsByTagName('iframe')[0], false)"
But in some locales (for example Russian) String.format("%f") return number with a comma not a dot. So device orientation not working in some locales