mirror of
https://github.com/ethauvin/android-about-box.git
synced 2025-04-25 02:37:11 -07:00
Added config.author, config.extra and config.extraTitle to general info card.
This commit is contained in:
parent
5f556fe8ce
commit
666ae83137
4 changed files with 20 additions and 0 deletions
|
@ -8,6 +8,9 @@ public class AboutConfig {
|
|||
public String appName;
|
||||
public int appIcon;
|
||||
public String version;
|
||||
public String author;
|
||||
public String extra;
|
||||
public String extraTitle;
|
||||
public String aboutLabelTitle;
|
||||
public String logUiEventName;
|
||||
public String facebookUserName;
|
||||
|
|
|
@ -54,6 +54,21 @@ public class AboutActivity extends MaterialAboutActivity {
|
|||
.text(R.string.egab_version)
|
||||
.subText(config.version)
|
||||
.build());
|
||||
|
||||
if (!TextUtils.isEmpty(config.author)) {
|
||||
generalInfoCardBuilder.addItem(new MaterialAboutActionItem.Builder()
|
||||
.text(R.string.egab_author)
|
||||
.subText(config.author)
|
||||
.build());
|
||||
}
|
||||
|
||||
if (!TextUtils.isEmpty(config.extra) && !TextUtils.isEmpty(config.extraTitle)) {
|
||||
generalInfoCardBuilder.addItem(new MaterialAboutActionItem.Builder()
|
||||
.text(config.extraTitle)
|
||||
.subText(config.extra)
|
||||
.build());
|
||||
}
|
||||
|
||||
return generalInfoCardBuilder.build();
|
||||
}
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
<string name="egab_contact_support">Contactar o Suporte</string>
|
||||
<string name="egab_try_other_apps">Experimentar outras aplicações</string>
|
||||
<string name="egab_version">Versão</string>
|
||||
<string name="egab_author">Autor</string>
|
||||
<string name="egab_facebook_label">Facebook</string>
|
||||
<string name="egab_twitter_label">Twitter</string>
|
||||
<string name="egab_web_label">Web</string>
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
<string name="egab_contact_support">Contact Support</string>
|
||||
<string name="egab_try_other_apps">Try Other Apps</string>
|
||||
<string name="egab_version">Version</string>
|
||||
<string name="egab_author">Author</string>
|
||||
<string name="egab_facebook_label">Facebook</string>
|
||||
<string name="egab_twitter_label">Twitter</string>
|
||||
<string name="egab_web_label">Web</string>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue