mirror of
https://github.com/ethauvin/android-about-box.git
synced 2025-04-25 02:37:11 -07:00
Fixed home page URL cleaning for display.
This commit is contained in:
parent
9d708b650f
commit
852005c24e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue