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

Commit f41d1605 authored by Daichi Ueura's avatar Daichi Ueura
Browse files

Show Wifi 'Off' status properly just after boot

If Wifi is not enabled at boot, WIFI_STATE_CHANGED_ACTION
sticky intent is not present. This results in Wifi 'Off'
status is not shown. This patch handles such case by calling
notifyChangeIfNeeded at register to refresh status.

Bug: 110373099
Test: manual - Check status after device boot with wifi off
Change-Id: I009386b03ef3269b00ce403b86087664b295f397
parent 40796778
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -66,6 +66,7 @@ public final class WifiSummaryUpdater extends SummaryUpdater {
    @Override
    public void register(boolean register) {
        if (register) {
            notifyChangeIfNeeded();
            mContext.registerReceiver(mReceiver, INTENT_FILTER);
        } else {
            mContext.unregisterReceiver(mReceiver);