public void reportSyncStatus(String status, int error, String strDetails) { synchronized (m_mxSyncNotifications) { if (m_syncStatusListener != null && (isReportingEnabled() || error == RhoAppAdapter.ERR_SYNCVERSION)) { if (error == RhoAppAdapter.ERR_SYNCVERSION) status = RhoAppAdapter.getErrorText(error); else { if (strDetails.length() == 0) strDetails = RhoAppAdapter.getErrorText(error); status += (strDetails.length() > 0 ? RhoAppAdapter.getMessageText("details") + strDetails : ""); } LOG.INFO("Status: " + status); m_syncStatusListener.reportStatus(status, error); } } }