1
0
Fork 0
mirror of https://github.com/ethauvin/android-about-box.git synced 2025-04-24 18:27:11 -07:00

Fixed home page URL cleaning for display.

This commit is contained in:
Erik C. Thauvin 2017-08-21 14:52:44 -07:00
parent 9d708b650f
commit 852005c24e

View file

@ -184,7 +184,7 @@ public class AboutActivity extends MaterialAboutActivity {
if (!TextUtils.isEmpty(config.webHomePage)) {
card.addItem(new MaterialAboutActionItem.Builder()
.text(R.string.egab_web_label)
.subText(config.webHomePage.replace("https://", "").replace("http://", "").replace("/", ""))
.subText(config.webHomePage.replaceFirst("^https?://", "").replaceAll("/$", ""))
.icon(R.drawable.ic_web_black_24dp)
.setOnClickListener(new MaterialAboutItemOnClickListener() {
@Override