mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-02-25 11:46:24 -05:00
Extract last about content
This commit is contained in:
@@ -29,9 +29,9 @@ public class AboutActivity extends CatimaAppCompatActivity {
|
||||
content = new AboutContent(this);
|
||||
|
||||
TextView copyright = binding.creditsSub;
|
||||
copyright.setText(String.format(getString(R.string.app_copyright_fmt), content.getCurrentYear()));
|
||||
copyright.setText(content.getCopyright());
|
||||
TextView versionHistory = binding.versionHistorySub;
|
||||
versionHistory.setText(String.format(getString(R.string.debug_version_fmt), content.getAppVersion()));
|
||||
versionHistory.setText(content.getVersionHistory());
|
||||
|
||||
bindClickListeners();
|
||||
}
|
||||
|
||||
@@ -45,6 +45,10 @@ public class AboutContent {
|
||||
return Calendar.getInstance().get(Calendar.YEAR);
|
||||
}
|
||||
|
||||
public String getCopyright() {
|
||||
return String.format(context.getString(R.string.app_copyright_fmt), getCurrentYear());
|
||||
}
|
||||
|
||||
public String getContributors() {
|
||||
StringBuilder contributors = new StringBuilder().append("<br/>");
|
||||
|
||||
@@ -109,4 +113,8 @@ public class AboutContent {
|
||||
|
||||
return contributorInfo.toString();
|
||||
}
|
||||
|
||||
public String getVersionHistory() {
|
||||
return String.format(context.getString(R.string.debug_version_fmt), getAppVersion());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user