Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

am f66603e: am 3f3ce8a: am bf3e62b: Merge "Make SimpleSessionDescript…

…ion locale safe"

* commit 'f66603e109d439e3a537cd3804706609ce86970e':
  Make SimpleSessionDescription locale safe
  • Loading branch information...
commit fb3ec448f1208d75edebff0e93fa97a8913ff29e 2 parents 49a7387 + f66603e
Jean-Baptiste Queru authored Android Git Automerger committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  voip/java/android/net/sip/SimpleSessionDescription.java
View
3  voip/java/android/net/sip/SimpleSessionDescription.java
@@ -18,6 +18,7 @@
import java.util.ArrayList;
import java.util.Arrays;
+import java.util.Locale;
/**
* An object used to manipulate messages of Session Description Protocol (SDP).
@@ -66,7 +67,7 @@
public SimpleSessionDescription(long sessionId, String address) {
address = (address.indexOf(':') < 0 ? "IN IP4 " : "IN IP6 ") + address;
mFields.parse("v=0");
- mFields.parse(String.format("o=- %d %d %s", sessionId,
+ mFields.parse(String.format(Locale.US, "o=- %d %d %s", sessionId,
System.currentTimeMillis(), address));
mFields.parse("s=-");
mFields.parse("t=0 0");
Please sign in to comment.
Something went wrong with that request. Please try again.