fix bad merges and rename some methods
This commit is contained in:
parent
cb9ac80f39
commit
cf06d2af7b
4 changed files with 13 additions and 10 deletions
|
@ -393,7 +393,7 @@ public class LinphoneService extends Service implements LinphoneCoreListener {
|
|||
//init network state
|
||||
ConnectivityManager lConnectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||
NetworkInfo lInfo = lConnectivityManager.getActiveNetworkInfo();
|
||||
mLinphoneCore.setNetworkStateReachable( lInfo !=null? lConnectivityManager.getActiveNetworkInfo().getState() ==NetworkInfo.State.CONNECTED:false);
|
||||
mLinphoneCore.setNetworkReachable( lInfo !=null? lConnectivityManager.getActiveNetworkInfo().getState() ==NetworkInfo.State.CONNECTED:false);
|
||||
|
||||
} catch (LinphoneCoreException e) {
|
||||
throw new LinphoneConfigException(getString(R.string.wrong_settings),e);
|
||||
|
|
|
@ -40,9 +40,9 @@ public class NetworkManager extends BroadcastReceiver {
|
|||
return;
|
||||
}
|
||||
if (lNoConnectivity| ((lNetworkInfo.getState() == NetworkInfo.State.DISCONNECTED) /*&& !lIsFailOver*/)) {
|
||||
LinphoneService.instance().getLinphoneCore().setNetworkStateReachable(false);
|
||||
LinphoneService.instance().getLinphoneCore().setNetworkReachable(false);
|
||||
} else if (lNetworkInfo.getState() == NetworkInfo.State.CONNECTED){
|
||||
LinphoneService.instance().getLinphoneCore().setNetworkStateReachable(true);
|
||||
LinphoneService.instance().getLinphoneCore().setNetworkReachable(true);
|
||||
} else {
|
||||
//unhandled event
|
||||
}
|
||||
|
|
|
@ -385,9 +385,6 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
|
||||
return updateCall(nativePtr, ptrCall, ptrParams);
|
||||
}
|
||||
<<<<<<< HEAD
|
||||
|
||||
|
||||
public void setUploadBandwidth(int bw) {
|
||||
setUploadBandwidth(nativePtr, bw);
|
||||
}
|
||||
|
@ -406,14 +403,20 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
VideoSize vSize = new VideoSize();
|
||||
vSize.setWidth(nativeSize[0]);
|
||||
vSize.setHeight(nativeSize[1]);
|
||||
|
||||
return vSize;
|
||||
=======
|
||||
}
|
||||
public void setRing(String path) {
|
||||
setRing(nativePtr, path);
|
||||
}
|
||||
public String getRing() {
|
||||
return getRing(nativePtr);
|
||||
>>>>>>> c95431295dc09c5558d38c6de49fa071c957d926
|
||||
}
|
||||
public boolean isNetworkReachable() {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
public void setNetworkReachable(boolean isReachable) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit a9db49b15aee38098d23086fd574adb99a1afda3
|
||||
Subproject commit a5d821c32ea57fa44d8cec86ca0d9b805a3b3f4a
|
Loading…
Reference in a new issue