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

Commit 854632a3 authored by calderwoodra's avatar calderwoodra Committed by android-build-merger
Browse files

Merge "Check if dialpad is already open when handleing new intents."

am: b75ca565

Change-Id: I643712bd4b1145b2ba1e7f9df3ce444a6200678c
parents 4f8d9b23 b75ca565
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -110,6 +110,15 @@ public class MainSearchController implements SearchBarListener {
  /** Should be called if we're showing the dialpad because of a new ACTION_DIAL intent. */
  public void showDialpadFromNewIntent() {
    LogUtil.enterBlock("MainSearchController.showDialpadFromNewIntent");
    if (isDialpadVisible()) {
      // One scenario where this can happen is if the user has the dialpad open when the receive a
      // call and press add call in the in call ui which calls this method.
      LogUtil.i("MainSearchController.showDialpadFromNewIntent", "Dialpad is already visible.");

      // Mark started from new intent in case there is a phone number in the intent
      getDialpadFragment().setStartedFromNewIntent(true);
      return;
    }
    showDialpad(/* animate=*/ false, /* fromNewIntent=*/ true);
  }