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

Commit e5e8e34c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "API fix: getProprietaryCallExtras should not return null" into rvc-dev

parents 853abf03 816fdbb2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -12246,7 +12246,7 @@ package android.telephony.ims {
    method public int getEmergencyServiceCategories();
    method @NonNull public java.util.List<java.lang.String> getEmergencyUrns();
    method public android.telephony.ims.ImsStreamMediaProfile getMediaProfile();
    method @Nullable public android.os.Bundle getProprietaryCallExtras();
    method @NonNull public android.os.Bundle getProprietaryCallExtras();
    method public int getRestrictCause();
    method public int getServiceType();
    method public static int getVideoStateFromCallType(int);
+1 −1
Original line number Diff line number Diff line
@@ -3845,7 +3845,7 @@ package android.telephony.ims {
    method public int getEmergencyServiceCategories();
    method @NonNull public java.util.List<java.lang.String> getEmergencyUrns();
    method public android.telephony.ims.ImsStreamMediaProfile getMediaProfile();
    method @Nullable public android.os.Bundle getProprietaryCallExtras();
    method @NonNull public android.os.Bundle getProprietaryCallExtras();
    method public int getRestrictCause();
    method public int getServiceType();
    method public static int getVideoStateFromCallType(int);
+8 −4
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@ package android.telephony.ims;

import android.annotation.IntDef;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.SystemApi;
import android.annotation.TestApi;
import android.compat.annotation.UnsupportedAppUsage;
@@ -718,11 +717,16 @@ public final class ImsCallProfile implements Parcelable {
     * @return A {@link Bundle} containing proprietary call extras that were not set by the
     * platform.
     */
    public @Nullable Bundle getProprietaryCallExtras() {
    public @NonNull Bundle getProprietaryCallExtras() {
        if (mCallExtras == null) {
            return null;
            return new Bundle();
        }
        Bundle proprietaryExtras = mCallExtras.getBundle(EXTRA_OEM_EXTRAS);
        if (proprietaryExtras == null) {
            return new Bundle();
        }
        return mCallExtras.getBundle(EXTRA_OEM_EXTRAS);
        // Make a copy so users do not accidentally change this copy of the extras.
        return new Bundle(proprietaryExtras);
    }

    public ImsStreamMediaProfile getMediaProfile() {