mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-02-25 19:56:19 -05:00
Extract page title to about content
This commit is contained in:
@@ -21,12 +21,12 @@ public class AboutActivity extends CatimaAppCompatActivity {
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
binding = AboutActivityBinding.inflate(getLayoutInflater());
|
||||
setTitle(String.format(getString(R.string.about_title_fmt), getString(R.string.app_name)));
|
||||
content = new AboutContent(this);
|
||||
setTitle(content.getPageTitle());
|
||||
setContentView(binding.getRoot());
|
||||
setSupportActionBar(binding.toolbar);
|
||||
enableToolbarBackButton();
|
||||
|
||||
content = new AboutContent(this);
|
||||
|
||||
TextView copyright = binding.creditsSub;
|
||||
copyright.setText(content.getCopyright());
|
||||
|
||||
@@ -26,6 +26,10 @@ public class AboutContent {
|
||||
this.context = null;
|
||||
}
|
||||
|
||||
public String getPageTitle() {
|
||||
return String.format(context.getString(R.string.about_title_fmt), context.getString(R.string.app_name));
|
||||
}
|
||||
|
||||
public String getAppVersion() {
|
||||
String version = "?";
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user