Minor improvements
This commit is contained in:
parent
e422b41704
commit
76e2d3bf97
4 changed files with 6 additions and 6 deletions
|
@ -356,6 +356,7 @@ public class LinphoneManager implements SensorEventListener {
|
|||
}
|
||||
|
||||
public void restartCore() {
|
||||
Log.w("[Manager] Restarting Core");
|
||||
mCore.stop();
|
||||
mCore.start();
|
||||
}
|
||||
|
@ -363,8 +364,8 @@ public class LinphoneManager implements SensorEventListener {
|
|||
private void destroyCore() {
|
||||
Log.w("[Manager] Destroying Core");
|
||||
if (LinphonePreferences.instance() != null) {
|
||||
// We set network reachable at false before destroy LC to not send register with expires
|
||||
// at 0
|
||||
// We set network reachable at false before destroying the Core
|
||||
// to not send a register with expires at 0
|
||||
if (LinphonePreferences.instance().isPushNotificationEnabled()) {
|
||||
Log.w(
|
||||
"[Manager] Setting network reachability to False to prevent unregister and allow incoming push notifications");
|
||||
|
|
|
@ -55,8 +55,8 @@ public class CallStatsFragment extends Fragment {
|
|||
new CoreListenerStub() {
|
||||
@Override
|
||||
public void onCallStateChanged(
|
||||
Core lc, Call call, Call.State cstate, String message) {
|
||||
if (cstate == Call.State.End || cstate == Call.State.Error) {
|
||||
Core core, Call call, Call.State state, String message) {
|
||||
if (state == Call.State.End || state == Call.State.Error) {
|
||||
mAdapter.updateListItems(
|
||||
Arrays.asList(LinphoneManager.getCore().getCalls()));
|
||||
}
|
||||
|
|
|
@ -349,7 +349,7 @@ public class ChatMessagesFragment extends Fragment
|
|||
new CoreListenerStub() {
|
||||
@Override
|
||||
public void onCallStateChanged(
|
||||
Core lc, Call call, Call.State state, String message) {
|
||||
Core core, Call call, Call.State state, String message) {
|
||||
displayChatRoomHeader();
|
||||
}
|
||||
};
|
||||
|
|
|
@ -33,7 +33,6 @@ import org.linphone.core.Address;
|
|||
import org.linphone.core.Core;
|
||||
import org.linphone.core.Friend;
|
||||
import org.linphone.core.FriendCapability;
|
||||
import org.linphone.core.FriendList;
|
||||
import org.linphone.core.PresenceBasicStatus;
|
||||
import org.linphone.core.PresenceModel;
|
||||
import org.linphone.core.SubscribePolicy;
|
||||
|
|
Loading…
Reference in a new issue