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

Commit 0053932b authored by weitan's avatar weitan Committed by Gerrit - the friendly Code Review server
Browse files

CSVT: Send silence ring intent to Circuit Switched Video Telephony(CSVT).

      CSVT App can silence incoming ring after pressing PowerKey down.

Change-Id: I8ac2e57bd5a035ac66bcfca46610f8582c699fed
CRs-Fixd: 769560
parent ae01042e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -176,6 +176,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
    static public final String SYSTEM_DIALOG_REASON_RECENT_APPS = "recentapps";
    static public final String SYSTEM_DIALOG_REASON_HOME_KEY = "homekey";
    static public final String SYSTEM_DIALOG_REASON_ASSIST = "assist";
    static public final String POWER_KEYDOWN_MUTE = "org.codeaurora.PowerKeyDown.Mute";

    // Available custom actions to perform on a key press.
    // Must match values for KEY_HOME_LONG_PRESS_ACTION in:
@@ -4832,6 +4833,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                            // Otherwise, if "Power button ends call" is enabled,
                            // the Power button will hang up any current active call.
                            hungUp = telecomManager.endCall();
                        }  else {
                            mContext.sendBroadcast(new Intent(POWER_KEYDOWN_MUTE));
                        }
                    }
                    interceptPowerKeyDown(!interactive || hungUp