Source:
<code>private void reportAnalytics() { if (getCustomApiUrl() == null && getCurrentRegion() != null) { ObaAnalytics.reportEventWithCategory(ObaAnalytics.ObaEventCategory.APP_SETTINGS.toString(), getString(R.string.analytics_action_configured_region), getString(R.string.analytics_label_region) + getCurrentRegion().getName()); } else { String customUrl = null; MessageDigest digest = null; try { digest = MessageDigest.getInstance("SHA-1"); digest.update(getCustomApiUrl().getBytes()); customUrl = Application.getHex(digest.digest()); } catch (Exception e) { customUrl = Application.get().getString(R.string.analytics_label_custom_url); } ObaAnalytics.reportEventWithCategory(ObaAnalytics.ObaEventCategory.APP_SETTINGS.toString(), getString(R.string.analytics_action_configured_region), getString(R.string.analytics_label_region) + customUrl); } if (getCurrentRegion() != null) { Boolean showExperimentalRegions = getCurrentRegion().getExperimental(); ObaAnalytics.reportEventWithCategory(ObaAnalytics.ObaEventCategory.APP_SETTINGS.toString(), getString(R.string.analytics_action_configured_region), getString(R.string.analytics_label_region) + (showExperimentalRegions ? "YES" : "NO")); } Boolean experimentalRegions = getPrefs().getBoolean(getString(R.string.preference_key_experimental_regions), Boolean.FALSE); Boolean autoRegion = getPrefs().getBoolean(getString(R.string.preference_key_auto_select_region), Boolean.FALSE); ObaAnalytics.reportEventWithCategory(ObaAnalytics.ObaEventCategory.APP_SETTINGS.toString(), getString(R.string.analytics_action_edit_general), getString(R.string.analytics_label_experimental) + (experimentalRegions ? "YES" : "NO")); ObaAnalytics.reportEventWithCategory(ObaAnalytics.ObaEventCategory.APP_SETTINGS.toString(), getString(R.string.analytics_action_edit_general), getString(R.string.analytics_label_region_auto) + (autoRegion ? "YES" : "NO")); <START> <END> }</code><technical_language>Whitespace formatting - please remove this extra line</technical_language>

Target:
private void reportAnalytics() { if (getCustomApiUrl() == null && getCurrentRegion() != null) { ObaAnalytics.reportEventWithCategory(ObaAnalytics.ObaEventCategory.APP_SETTINGS.toString(), getString(R.string.analytics_action_configured_region), getString(R.string.analytics_label_region) + getCurrentRegion().getName()); } else { String customUrl = null; MessageDigest digest = null; try { digest = MessageDigest.getInstance("SHA-1"); digest.update(getCustomApiUrl().getBytes()); customUrl = getString(R.string.analytics_label_custom_url) + ": " + getHex(digest.digest()); } catch (Exception e) { customUrl = Application.get().getString(R.string.analytics_label_custom_url); } ObaAnalytics.reportEventWithCategory(ObaAnalytics.ObaEventCategory.APP_SETTINGS.toString(), getString(R.string.analytics_action_configured_region), getString(R.string.analytics_label_region) + customUrl); } if (getCurrentRegion() != null) { Boolean showExperimentalRegions = getCurrentRegion().getExperimental(); ObaAnalytics.reportEventWithCategory(ObaAnalytics.ObaEventCategory.APP_SETTINGS.toString(), getString(R.string.analytics_action_configured_region), getString(R.string.analytics_label_region) + (showExperimentalRegions ? "YES" : "NO")); } Boolean experimentalRegions = getPrefs().getBoolean(getString(R.string.preference_key_experimental_regions), Boolean.FALSE); Boolean autoRegion = getPrefs().getBoolean(getString(R.string.preference_key_auto_select_region), Boolean.FALSE); ObaAnalytics.reportEventWithCategory(ObaAnalytics.ObaEventCategory.APP_SETTINGS.toString(), getString(R.string.analytics_action_edit_general), getString(R.string.analytics_label_experimental) + (experimentalRegions ? "YES" : "NO")); ObaAnalytics.reportEventWithCategory(ObaAnalytics.ObaEventCategory.APP_SETTINGS.toString(), getString(R.string.analytics_action_edit_general), getString(R.string.analytics_label_region_auto) + (autoRegion ? "YES" : "NO")); }