Changeset 4840
- Timestamp:
- May 9, 2014 8:47:06 AM (11 years ago)
- Location:
- pjproject/trunk/pjsip-apps/src/swig/java/android/src/org/pjsip/pjsua2/app
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/swig/java/android/src/org/pjsip/pjsua2/app/CallActivity.java
r4704 r4840 84 84 System.out.println(e); 85 85 } 86 87 MainActivity.currentCall = null;88 86 } 89 87 } … … 137 135 buttonHangup.setText("OK"); 138 136 call_state = "Call disconnected: " + ci.getLastReason(); 139 MainActivity.currentCall = null;140 137 } 141 138 } -
pjproject/trunk/pjsip-apps/src/swig/java/android/src/org/pjsip/pjsua2/app/MainActivity.java
r4734 r4840 173 173 m2.sendToTarget(); 174 174 } 175 176 if (ci.getState() == pjsip_inv_state.PJSIP_INV_STATE_DISCONNECTED)177 currentCall = null;178 175 179 176 } else if (m.what == MSG_TYPE.BUDDY_STATE) { … … 340 337 call.makeCall(buddy_uri, prm); 341 338 } catch (Exception e) { 342 c urrentCall = null;339 call.delete(); 343 340 return; 344 341 } -
pjproject/trunk/pjsip-apps/src/swig/java/android/src/org/pjsip/pjsua2/app/MyApp.java
r4734 r4840 49 49 public void onCallState(OnCallStateParam prm) { 50 50 MyApp.observer.notifyCallState(this); 51 try { 52 CallInfo ci = getInfo(); 53 if (ci.getState() == pjsip_inv_state.PJSIP_INV_STATE_DISCONNECTED) { 54 this.delete(); 55 MainActivity.currentCall = null; 56 } 57 } catch (Exception e) { 58 return; 59 } 51 60 } 52 61 … … 101 110 bud.create(this, bud_cfg); 102 111 } catch (Exception e) { 112 bud.delete(); 103 113 bud = null; 104 114 } … … 117 127 public void delBuddy(MyBuddy buddy) { 118 128 buddyList.remove(buddy); 129 buddy.delete(); 119 130 } 120 131 121 132 public void delBuddy(int index) { 133 MyBuddy bud = buddyList.get(index); 122 134 buddyList.remove(index); 135 bud.delete(); 123 136 } 124 137
Note: See TracChangeset
for help on using the changeset viewer.