+ // Only populate `versionOrbotTextView` if Orbot is installed.
+ if (!orbot.equals("")) {
+ String orbotLabel = getString(R.string.orbot) + " ";
+ SpannableStringBuilder orbotStringBuilder = new SpannableStringBuilder(orbotLabel + orbot);
+ orbotStringBuilder.setSpan(blueColorSpan, orbotLabel.length(), orbotStringBuilder.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE);
+ versionOrbotTextView.setText(orbotStringBuilder);
+ } else { // Orbot is not installed, so the `versionOrbotTextView` should be hidden.
+ versionOrbotTextView.setVisibility(View.GONE);
+ }
+