mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-22 07:57:30 +00:00
formatting
This commit is contained in:
parent
6b18f66e19
commit
acffda1ab8
@ -59,19 +59,19 @@ public class MmsCommunication {
|
|||||||
throw new MmsException("No carrier MMS information available.");
|
throw new MmsException("No carrier MMS information available.");
|
||||||
|
|
||||||
do {
|
do {
|
||||||
String mmsc = cursor.getString(cursor.getColumnIndexOrThrow("mmsc"));
|
String mmsc = cursor.getString(cursor.getColumnIndexOrThrow("mmsc"));
|
||||||
String proxy = cursor.getString(cursor.getColumnIndexOrThrow("mmsproxy"));
|
String proxy = cursor.getString(cursor.getColumnIndexOrThrow("mmsproxy"));
|
||||||
String port = cursor.getString(cursor.getColumnIndexOrThrow("mmsport"));
|
String port = cursor.getString(cursor.getColumnIndexOrThrow("mmsport"));
|
||||||
|
|
||||||
if (mmsc != null && !mmsc.equals(""))
|
if (mmsc != null && !mmsc.equals(""))
|
||||||
return new MmsConnectionParameters(mmsc, proxy, port);
|
return new MmsConnectionParameters(mmsc, proxy, port);
|
||||||
|
|
||||||
} while (cursor.moveToNext());
|
} while (cursor.moveToNext());
|
||||||
|
|
||||||
throw new MmsException("No carrier MMS information available.");
|
throw new MmsException("No carrier MMS information available.");
|
||||||
} finally {
|
} finally {
|
||||||
if (cursor != null)
|
if (cursor != null)
|
||||||
cursor.close();
|
cursor.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -155,7 +155,7 @@ public class MmsCommunication {
|
|||||||
|
|
||||||
public int getPort() {
|
public int getPort() {
|
||||||
if (port == null || port.trim().length() == 0)
|
if (port == null || port.trim().length() == 0)
|
||||||
return 80;
|
return 80;
|
||||||
|
|
||||||
return Integer.parseInt(port);
|
return Integer.parseInt(port);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user