telephony: Return NOT_SUPPORTED for RIL_REQUEST_GET_NEIGHBORING_CELL_IDS.

Currently, RIL_REQUEST_GET_NEIGHBORING_CELL_IDS causes the RIL to crash,
due to backward compatibility issues.
This fix is a temporary hack to make the API return REQUEST_NOT_SUPPORTED
Command Exception till the compatibility issues are fixed.
This commit is contained in:
Jaikumar Ganesh
2009-01-14 18:37:35 -08:00
parent e570a0fa86
commit 562bb3db4f

View File

@@ -1577,12 +1577,22 @@ public final class RIL extends BaseCommands implements CommandsInterface
* {@inheritDoc}
*/
public void getNeighboringCids(Message response) {
RILRequest rr = RILRequest.obtain(
/* TODO: Remove this hack when backward compatibility issue is fixed.
* RIL_REQUEST_GET_NEIGHBORING_CELL_IDS currently returns REQUEST_NOT_SUPPORTED
*/
AsyncResult.forMessage(response).exception =
new CommandException(CommandException.Error.REQUEST_NOT_SUPPORTED);
response.sendToTarget();
response = null;
/* RILRequest rr = RILRequest.obtain(
RILConstants.RIL_REQUEST_GET_NEIGHBORING_CELL_IDS, response);
if (RILJ_LOGD) riljLog(rr.serialString() + "> " + requestToString(rr.mRequest));
send(rr);
*/
}
/**