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

Commit ab141ea3 authored by Fabian Kozynski's avatar Fabian Kozynski
Browse files

Add WifiTile secondaryLabel to content description

Test: Manual, add label and observe Talkback
Fixes: 126136586
Change-Id: Ia646494c320a6461d218b3c6151e4ec7d2f3013a
parent 8e95f0bf
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ import android.content.pm.PackageManager;
import android.content.res.Resources;
import android.provider.Settings;
import android.service.quicksettings.Tile;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
@@ -208,6 +209,9 @@ public class WifiTile extends QSTileImpl<SignalState> {
            if (wifiConnected) {
                minimalContentDescription.append(cb.wifiSignalContentDescription).append(",");
                minimalContentDescription.append(removeDoubleQuotes(cb.ssid));
                if (!TextUtils.isEmpty(state.secondaryLabel)) {
                    minimalContentDescription.append(",").append(state.secondaryLabel);
                }
            }
        }
        state.contentDescription = minimalContentDescription.toString();