Merge "check ntpserver as empty string instead of null"
automerge: dbcb4a1
* commit 'dbcb4a16d4c91d960359fbdb8c6f1d72a4daca9e':
check ntpserver as empty string instead of null
This commit is contained in:
@@ -22,6 +22,7 @@ import android.content.res.Resources;
|
||||
import android.net.SntpClient;
|
||||
import android.os.SystemClock;
|
||||
import android.provider.Settings;
|
||||
import android.text.TextUtils;
|
||||
|
||||
/**
|
||||
* {@link TrustedTime} that connects with a remote NTP server as its trusted
|
||||
@@ -73,7 +74,7 @@ public class NtpTrustedTime implements TrustedTime {
|
||||
|
||||
@Override
|
||||
public boolean forceRefresh() {
|
||||
if (mServer == null) {
|
||||
if (TextUtils.isEmpty(mServer)) {
|
||||
// missing server, so no trusted time available
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user