Changeset 4870
- Timestamp:
- Jul 3, 2014 9:43:19 AM (10 years ago)
- 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
r4866 r4870 244 244 View view = li.inflate(R.layout.dlg_account_config, null); 245 245 246 if ( !lastRegStatus.isEmpty()) {246 if (lastRegStatus.length()!=0) { 247 247 TextView tvInfo = (TextView)view.findViewById(R.id.textViewInfo); 248 248 tvInfo.setText("Last status: " + lastRegStatus); … … 289 289 AuthCredInfoVector creds = accCfg.getSipConfig().getAuthCreds(); 290 290 creds.clear(); 291 if ( !username.isEmpty()) {291 if (username.length() != 0) { 292 292 creds.add(new AuthCredInfo("Digest", "*", username, 0, password)); 293 293 } 294 294 StringVector proxies = accCfg.getSipConfig().getProxies(); 295 295 proxies.clear(); 296 if ( !proxy.isEmpty()) {296 if (proxy.length() != 0) { 297 297 proxies.add(proxy); 298 298 } -
pjproject/trunk/pjsip-apps/src/swig/java/android/src/org/pjsip/pjsua2/app/MyApp.java
r4866 r4870 180 180 if (bi.getPresStatus().getStatus() == pjsua_buddy_status.PJSUA_BUDDY_STATUS_ONLINE) { 181 181 status = bi.getPresStatus().getStatusText(); 182 if (status == null || status. isEmpty()) {182 if (status == null || status.length()==0) { 183 183 status = "Online"; 184 184 }
Note: See TracChangeset
for help on using the changeset viewer.