diff options
author | 2019-06-17 14:15:13 +0000 | |
---|---|---|
committer | 2019-06-17 14:15:13 +0000 | |
commit | 08793a3b646c8335feeb9f82d8cfe4df1bcf01fb (patch) | |
tree | 5728fdde552d50335473f4487c8595da1fac3403 | |
parent | d0311132903786ff7c6ebed9762fb1e963b60f59 (diff) | |
parent | accf7105b65ae99dc86d78bb22ae1d2b973ca886 (diff) |
Merge changes I80bebcd0,I35f3718f into qt-dev
* changes:
Simplification of code to prevent a Log.wtf in expected cases.
Suppress the wtf log for notifications that are expected
-rw-r--r-- | services/core/java/com/android/server/connectivity/NetworkNotificationManager.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/connectivity/NetworkNotificationManager.java b/services/core/java/com/android/server/connectivity/NetworkNotificationManager.java index f6735d983466..077c4057a3a0 100644 --- a/services/core/java/com/android/server/connectivity/NetworkNotificationManager.java +++ b/services/core/java/com/android/server/connectivity/NetworkNotificationManager.java @@ -232,6 +232,11 @@ public class NetworkNotificationManager { title = r.getString(R.string.network_switch_metered, toTransport); details = r.getString(R.string.network_switch_metered_detail, toTransport, fromTransport); + } else if (notifyType == NotificationType.NO_INTERNET + || notifyType == NotificationType.PARTIAL_CONNECTIVITY) { + // NO_INTERNET and PARTIAL_CONNECTIVITY notification for non-WiFi networks + // are sent, but they are not implemented yet. + return; } else { Slog.wtf(TAG, "Unknown notification type " + notifyType + " on network transport " + getTransportName(transportType)); |