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

Unverified Commit b43f7c0a authored by Dhina17's avatar Dhina17 Committed by Michael Bestas
Browse files

PhoneWindowManager: Pass correct assistInvocationType for KEYCODE_ASSIST

GTS expects correct invocation type on assistant launch.

Change-Id: Ia73f4f7d5498ec9924844460c8717c8da068d16a
parent 4c9e9e1a
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -4056,7 +4056,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                            }
                            }
                            performHapticFeedback(HapticFeedbackConstants.LONG_PRESS, false,
                            performHapticFeedback(HapticFeedbackConstants.LONG_PRESS, false,
                                    "Assist - Long Press");
                                    "Assist - Long Press");
                            performKeyAction(mAssistLongPressAction, event);
                            performKeyAction(mAssistLongPressAction, event,
                                    AssistUtils.INVOCATION_TYPE_ASSIST_BUTTON);
                            mAssistPressed = false;
                            mAssistPressed = false;
                        }
                        }
                    }
                    }
@@ -4067,7 +4068,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                        }
                        }
                        mAssistPressed = false;
                        mAssistPressed = false;
                        if (!canceled) {
                        if (!canceled) {
                            performKeyAction(mAssistPressAction, event);
                            performKeyAction(mAssistPressAction, event,
                                    AssistUtils.INVOCATION_TYPE_ASSIST_BUTTON);
                        }
                        }
                    }
                    }
                }
                }