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

Commit 9825aaaf authored by Grace Jia's avatar Grace Jia Committed by Automerger Merge Worker
Browse files

Merge "Add new API for unavailable display name." am: aead98d4 am:...

Merge "Add new API for unavailable display name." am: aead98d4 am: 11b8248e am: 2e98b1d7 am: 6978be5b

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Dialer/+/1806646

Change-Id: I898e055217c7ab344b6530aed28cde4f54007d10
parents b9a5559e 6978be5b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -202,6 +202,9 @@ public class PhoneNumberHelper {
    if (presentation == CallLog.Calls.PRESENTATION_RESTRICTED) {
      return false;
    }
    if (presentation == CallLog.Calls.PRESENTATION_UNAVAILABLE) {
      return false;
    }
    if (presentation == CallLog.Calls.PRESENTATION_PAYPHONE) {
      return false;
    }
+4 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ import android.widget.EditText;
public final class SimulatorDialogFragment extends DialogFragment {

  private final String[] callerIdPresentationItems = {
    "ALLOWED", "PAYPHONE", "RESTRICTED", "UNKNOWN"
    "ALLOWED", "PAYPHONE", "RESTRICTED", "UNKNOWN", "UNAVAILABLE"
  };
  private int callerIdPresentationChoice = 1;

@@ -68,6 +68,9 @@ public final class SimulatorDialogFragment extends DialogFragment {
                case 3:
                  callerIdPresentationChoice = TelecomManager.PRESENTATION_UNKNOWN;
                  break;
                case 4:
                  callerIdPresentationChoice = TelecomManager.PRESENTATION_UNAVAILABLE;
                  break;
                default:
                  throw new IllegalStateException("Unknown presentation choice selected!");
              }