Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
c21f2412
Commit
c21f2412
authored
Oct 21, 2019
by
Sylvain Berfini
🐮
Browse files
Prevent DNS servers list to be emptied
parent
38f4c55f
Changes
1
Hide whitespace changes
Inline
Side-by-side
wrappers/java/classes/tools/AndroidPlatformHelper.java
View file @
c21f2412
...
...
@@ -585,8 +585,12 @@ public class AndroidPlatformHelper {
}
public
synchronized
void
updateDnsServers
(
ArrayList
<
String
>
dnsServers
)
{
mDnsServers
=
new
String
[
dnsServers
.
size
()];
dnsServers
.
toArray
(
mDnsServers
);
// Do not replace previous list of DNS by an empty one, keep them to be able to try a resolution while in DOZE mode
if
(
dnsServers
!=
null
&&
!
dnsServers
.
isEmpty
())
{
mDnsServers
=
new
String
[
dnsServers
.
size
()];
dnsServers
.
toArray
(
mDnsServers
);
Log
.
i
(
"[Platform Helper] DNS servers list updated"
);
}
}
public
synchronized
void
updateNetworkReachability
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment