Remove else block with rtl and ltr combine

This commit is contained in:
androiddevkotlin 2021-04-05 09:29:16 +03:00
parent a5fce381d5
commit f8cd551085

View file

@ -187,13 +187,7 @@ public class TerrainFragment extends BaseOsmAndFragment implements View.OnClickL
getString(R.string.slope_read_more), getString(R.string.slope_read_more),
wikiString wikiString
); );
boolean isArabicLocale = Locale.getDefault().getLanguage().equals("ar"); String emptyStateText = getString(R.string.terrain_empty_state_text) + "\n" + PLUGIN_URL;
String emptyStateText;
if (isArabicLocale) {
emptyStateText = getString(R.string.terrain_empty_state_text) + "\n" + PLUGIN_URL;
} else {
emptyStateText = String.format(getString(R.string.ltr_or_rtl_combine_via_space), getString(R.string.terrain_empty_state_text), PLUGIN_URL);
}
setupClickableText(slopeReadMoreTv, readMoreText, wikiString, SLOPES_WIKI_URL, false); setupClickableText(slopeReadMoreTv, readMoreText, wikiString, SLOPES_WIKI_URL, false);
setupClickableText(emptyStateDescriptionTv, emptyStateText, PLUGIN_URL, PLUGIN_URL, true); setupClickableText(emptyStateDescriptionTv, emptyStateText, PLUGIN_URL, PLUGIN_URL, true);