Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bcba2182 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by android-build-merger
Browse files

Merge "check ntpserver as empty string instead of null" automerge: dbcb4a16

automerge: 387da776

* commit '387da776':
  check ntpserver as empty string instead of null
parents 5df729ad 387da776
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
        }