Merge "Use Empty List for Default PhysicalChannelConfig" into pi-dev

am: 6e2ed97e80

Change-Id: I1cb14020b2bd87db143aab9b3401379b560df18b
This commit is contained in:
Nathan Harold
2018-04-26 16:24:57 -07:00
committed by android-build-merger
2 changed files with 4 additions and 2 deletions

View File

@@ -351,7 +351,7 @@ class TelephonyRegistry extends ITelephonyRegistry.Stub {
mCallForwarding[i] = false;
mCellLocation[i] = new Bundle();
mCellInfo.add(i, null);
mPhysicalChannelConfigs.add(i, null);
mPhysicalChannelConfigs.add(i, new ArrayList<PhysicalChannelConfig>());
}
// Note that location can be null for non-phone builds like

View File

@@ -16,6 +16,7 @@
package android.telephony;
import android.annotation.NonNull;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
@@ -583,7 +584,8 @@ public class PhoneStateListener {
* @param configs List of the current {@link PhysicalChannelConfig}s
* @hide
*/
public void onPhysicalChannelConfigurationChanged(List<PhysicalChannelConfig> configs) {
public void onPhysicalChannelConfigurationChanged(
@NonNull List<PhysicalChannelConfig> configs) {
// default implementation empty
}