Build fix. Additional conversions of subId from Long to Integer.
Change-Id: I7e59e853c7d7ea7f935629fc8d97e49b1cfffdfd
diff --git a/Common/src/com/googlecode/android_scripting/facade/tele/PhoneFacade.java b/Common/src/com/googlecode/android_scripting/facade/tele/PhoneFacade.java
index cc6bdcd..a8ff026 100755
--- a/Common/src/com/googlecode/android_scripting/facade/tele/PhoneFacade.java
+++ b/Common/src/com/googlecode/android_scripting/facade/tele/PhoneFacade.java
@@ -405,7 +405,7 @@
@Rpc(description = "Returns the current RAT in use on the device" +
" for a given Subscription.")
public String getNetworkTypeForSubscriber(
- @RpcParameter(name = "subId") Long subId) {
+ @RpcParameter(name = "subId") Integer subId) {
Log.d("sl4a:getNetworkTypeForSubscriber() is deprecated!" +
"Please use getVoiceNetworkType()" +
@@ -423,7 +423,7 @@
@Rpc(description = "Returns the current voice RAT for" +
" the chosen voice subscription.")
public String getVoiceNetworkTypeForSubscriber(
- @RpcParameter(name = "subId") Long subId) {
+ @RpcParameter(name = "subId") Integer subId) {
return getNetworkTypeString(mTelephonyManager.getVoiceNetworkType(subId));
}
@@ -436,7 +436,7 @@
@Rpc(description = "Returns the current data RAT for" +
" the defaut data subscription")
public String getDataNetworkTypeForSubscriber(
- @RpcParameter(name = "subId") Long subId) {
+ @RpcParameter(name = "subId") Integer subId) {
return getNetworkTypeString(mTelephonyManager.getDataNetworkType(subId));
}