diff options
| author | 2021-12-11 01:09:03 +0000 | |
|---|---|---|
| committer | 2021-12-11 01:09:03 +0000 | |
| commit | 559dbb9079c13b3b479e7aa042a193685184998a (patch) | |
| tree | 26c72f3f9f468519d152b1db5173c6a9827b2694 | |
| parent | 752334d0c3b3f070221b169c5c91656c6ffb4dfc (diff) | |
| parent | 53a7330fe15600c87d8cc1efdf87044719312b93 (diff) | |
Merge "Remove unnecessary null check to make code consistent" into sc-v2-dev
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/InternetDialogController.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/InternetDialogController.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/InternetDialogController.java index 7dd24b48ace2..4908d4fb214e 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/InternetDialogController.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/InternetDialogController.java @@ -878,10 +878,8 @@ public class InternetDialogController implements AccessPointController.AccessPoi if (accessPoints == null || accessPoints.size() == 0) { mConnectedEntry = null; mWifiEntriesCount = 0; - if (mCallback != null) { - mCallback.onAccessPointsChanged(null /* wifiEntries */, null /* connectedEntry */, - false /* hasMoreEntry */); - } + mCallback.onAccessPointsChanged(null /* wifiEntries */, null /* connectedEntry */, + false /* hasMoreEntry */); return; } @@ -913,9 +911,7 @@ public class InternetDialogController implements AccessPointController.AccessPoi mConnectedEntry = connectedEntry; mWifiEntriesCount = wifiEntries.size(); - if (mCallback != null) { - mCallback.onAccessPointsChanged(wifiEntries, mConnectedEntry, hasMoreEntry); - } + mCallback.onAccessPointsChanged(wifiEntries, mConnectedEntry, hasMoreEntry); } @Override |