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

Commit a62d9a28 authored by Ankit Gupta's avatar Ankit Gupta
Browse files

Settings: disable Cast Screen from QuickSettings

disable cast screen from quick settings tiles under
notification drawer settings if it has been disabled
from system properties.

Issue-id: YAM-141
Change-Id: Ib33cf95c4e50969debe120936fb8e714f1516432
parent 9c5c3992
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ import android.text.TextUtils;
import com.android.internal.util.cm.QSConstants;
import com.android.internal.util.cm.QSUtils;
import com.android.settings.R;
import android.os.SystemProperties;

/**
 * This class holds the icon, the name - or the string the user sees,
@@ -60,6 +61,11 @@ public class QSTileHolder {
                || QSUtils.deviceSupportsDdsSupported(context))) {
            return null;
        }
        if (TextUtils.equals(QSConstants.TILE_CAST, tileType)
                && !context.getResources().getBoolean(com.android.internal.R.bool.config_enableWifiDisplay)
                && (SystemProperties.getInt("persist.debug.wfd.enable", -1) != 1)){
            return null;
        }

        switch (tileType) {
            case TILE_ADD_DELETE: