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

Commit bab3b106 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix video call from search stripping + prefix"

parents 5f3a727a f3291fb8
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -444,11 +444,12 @@ public class MainSearchController implements SearchBarListener {

  /** @see OnDialpadQueryChangedListener#onDialpadQueryChanged(java.lang.String) */
  public void onDialpadQueryChanged(String query) {
    query = SmartDialNameMatcher.normalizeNumber(/* context = */ activity, query);
    String normalizedQuery = SmartDialNameMatcher.normalizeNumber(/* context = */ activity, query);
    if (searchFragment != null) {
      searchFragment.setQuery(query, CallInitiationType.Type.DIALPAD);
      searchFragment.setRawNumber(query);
      searchFragment.setQuery(normalizedQuery, CallInitiationType.Type.DIALPAD);
    }
    dialpadFragment.process_quote_emergency_unquote(query);
    dialpadFragment.process_quote_emergency_unquote(normalizedQuery);
  }

  @Override
+5 −0
Original line number Diff line number Diff line
@@ -251,6 +251,11 @@ public final class NewSearchFragment extends Fragment
    this.rawNumber = rawNumber;
  }

  @VisibleForTesting
  public String getRawNumber() {
    return rawNumber;
  }

  public void setQuery(String query, CallInitiationType.Type callInitiationType) {
    this.query = query;
    this.callInitiationType = callInitiationType;