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

Commit 11b8248e 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

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

Change-Id: I50dd8d3869944602e05492aaf3d4b9501676067f
parents 1bb1d2a9 aead98d4
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!");
              }