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

Commit aead98d4 authored by Grace Jia's avatar Grace Jia Committed by Gerrit Code Review
Browse files

Merge "Add new API for unavailable display name."

parents 1bb1d2a9 0c2c8e76
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!");
              }