Changeset 4866


Ignore:
Timestamp:
Jul 2, 2014 2:58:01 AM (10 years ago)
Author:
ming
Message:

Re #1768: move access to MainActivity? class from MyApp? to avoid undefined symbol error when not compiling for Android app

Location:
pjproject/trunk/pjsip-apps/src/swig/java/android/src/org/pjsip/pjsua2/app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/swig/java/android/src/org/pjsip/pjsua2/app/MainActivity.java

    r4844 r4866  
    495495                Message m = Message.obtain(handler, MSG_TYPE.CALL_STATE, ci); 
    496496                m.sendToTarget(); 
     497                 
     498                if (ci != null && 
     499                        ci.getState() == pjsip_inv_state.PJSIP_INV_STATE_DISCONNECTED) 
     500                { 
     501                        currentCall = null; 
     502                } 
    497503        } 
    498504         
  • pjproject/trunk/pjsip-apps/src/swig/java/android/src/org/pjsip/pjsua2/app/MyApp.java

    r4840 r4866  
    5353                        if (ci.getState() == pjsip_inv_state.PJSIP_INV_STATE_DISCONNECTED) { 
    5454                                this.delete(); 
    55                                 MainActivity.currentCall = null; 
    5655                        } 
    5756                } catch (Exception e) { 
Note: See TracChangeset for help on using the changeset viewer.