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

Commit 77add826 authored by Kiran Ramachandra's avatar Kiran Ramachandra
Browse files

Enable Talkback to read 'Blocked' / 'Available' subtitle

Users with Talkback enabled can now hear the 'Blocked' / 'Available' subtitle on the Camera or Mic Quick Settings tile.

Bug: 319200887
Test: Manual + pre-submit
Flag: NA

Change-Id: I9f5f795971b36a90c5d4a610fa6f859de49c8a67
parent 5a0d9d7a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ import android.os.Looper;
import android.provider.Settings;
import android.safetycenter.SafetyCenterManager;
import android.service.quicksettings.Tile;
import android.text.TextUtils;
import android.view.View;
import android.widget.Switch;

@@ -127,7 +128,7 @@ public abstract class SensorPrivacyToggleTile extends QSTileImpl<QSTile.BooleanS
        } else {
            state.secondaryLabel = mContext.getString(R.string.quick_settings_camera_mic_available);
        }
        state.contentDescription = state.label;
        state.contentDescription = TextUtils.concat(state.label, ", ", state.secondaryLabel);
        state.expandedAccessibilityClassName = Switch.class.getName();
    }