Consider that inactive Modem can be activated in run time

The number of the active Modems can be changed in run time. In order to
avoid ArrayIndexOutOfBoundsException thrown, the length of the array for
caching the last selected configuration entries must be determined based
on the number of the Modems supported on the device.

Bug: 148240558
Test: Manual

Change-Id: I810db3194a8762f0157395624ccde21ff3e71e76
1 file changed