Changeset 4697 for pjproject/branches/projects/pjsua2/pjsip-apps/src/swig/java/android/src/org/pjsip/pjsua2/app/MyApp.java
- Timestamp:
- Dec 18, 2013 11:42:04 AM (10 years ago)
- Location:
- pjproject/branches/projects/pjsua2/pjsip-apps/src/swig/java/android
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/pjsua2/pjsip-apps/src/swig/java/android
- Property svn:ignore
-
old new 1 1 bin 2 2 gen 3 obj 4 .cproject
-
- Property svn:ignore
-
pjproject/branches/projects/pjsua2/pjsip-apps/src/swig/java/android/src/org/pjsip/pjsua2/app/MyApp.java
r4696 r4697 168 168 if (bi.getPresStatus().getStatus() == pjsua_buddy_status.PJSUA_BUDDY_STATUS_ONLINE) { 169 169 status = bi.getPresStatus().getStatusText(); 170 if (status == null || status == "") {170 if (status == null || status.isEmpty()) { 171 171 status = "Online"; 172 172 } … … 340 340 public void delAcc(MyAccount acc) { 341 341 accList.remove(acc); 342 /* GC will delete the acc soon? */343 342 } 344 343 … … 369 368 System.out.println(e); 370 369 } 370 371 /* Suggest to delete, as we found this causes crash when the Java 372 * deletes it later after lib has been destroyed. 373 */ 374 json.delete(); 371 375 } 372 376 … … 410 414 json.saveFile(filename); 411 415 } catch (Exception e) {} 416 417 /* Suggest to delete, as we found this causes crash when the Java 418 * deletes it later after lib has been destroyed. 419 */ 420 json.delete(); 412 421 } 413 422 … … 415 424 String configPath = appDir + "/" + configName; 416 425 saveConfig(configPath); 426 427 /* Try force GC to avoid late destroy of PJ objects as they should be 428 * deleted before lib is destroyed. 429 */ 430 System.gc(); 431 417 432 try { 418 433 ep.libDestroy();
Note: See TracChangeset
for help on using the changeset viewer.