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

Commit e941ae9e authored by Ying Xu's avatar Ying Xu
Browse files

Check whether Ethernet is connected or not before updating InternetTile

Bug: 266897044
Test: atest -c com.android.systemui.qs.tiles.InternetTileTest
Change-Id: I278ecc4f7f5daf764c5354f644375f12779ced47
parent c8df321b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -531,6 +531,9 @@ public class InternetTile extends QSTileImpl<SignalState> {
        if (DEBUG) {
            Log.d(TAG, "handleUpdateEthernetState: " + "EthernetCallbackInfo = " + cb.toString());
        }
        if (!cb.mConnected) {
            return;
        }
        final Resources r = mContext.getResources();
        state.label = r.getString(R.string.quick_settings_internet_label);
        state.state = Tile.STATE_ACTIVE;