Merge "Change null behavior of getCellBandwidths" into pi-dev

This commit is contained in:
Eric Schwarzenbach
2018-03-23 18:31:43 +00:00
committed by Android (Google) Code Review

View File

@@ -17,7 +17,6 @@
package android.telephony;
import android.annotation.IntDef;
import android.annotation.Nullable;
import android.annotation.SystemApi;
import android.annotation.TestApi;
import android.os.Bundle;
@@ -496,9 +495,8 @@ public class ServiceState implements Parcelable {
*
* @return Current serving cell bandwidths
*/
@Nullable
public int[] getCellBandwidths() {
return mCellBandwidths;
return mCellBandwidths == null ? new int[0] : mCellBandwidths;
}
/**