diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2012-05-30 15:32:54 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2012-05-30 15:32:54 +0200 |
| commit | 5054f41ed42d8659f0be85be2c71e9a9291a5ba1 (patch) | |
| tree | 9604a4c2e9db1d95656b4ac67719f003f6c347aa /main/src/cgeo/geocaching/AboutActivity.java | |
| parent | cf9c4e486fc756db881c9ea38870ba3aebc60497 (diff) | |
| download | cgeo-5054f41ed42d8659f0be85be2c71e9a9291a5ba1.zip cgeo-5054f41ed42d8659f0be85be2c71e9a9291a5ba1.tar.gz cgeo-5054f41ed42d8659f0be85be2c71e9a9291a5ba1.tar.bz2 | |
Refactoring: cleanup application startup
This cleanup:
- do not pass the cgeoapplication singleton to cgData
- do not pretend that CacheCache is a singleton, it only occurs to
have one instance in cgData
- start version updater thread in cgeoapplication.onCreate(), once the
object has been created, to avoid risking accessing the sole
instance before it is fully initialized, this could lead to a crash
at initialization time
- use an available context object to access version information, which
is not accessed frequently
Diffstat (limited to 'main/src/cgeo/geocaching/AboutActivity.java')
| -rw-r--r-- | main/src/cgeo/geocaching/AboutActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/AboutActivity.java b/main/src/cgeo/geocaching/AboutActivity.java index cef5830..b7a14ff 100644 --- a/main/src/cgeo/geocaching/AboutActivity.java +++ b/main/src/cgeo/geocaching/AboutActivity.java @@ -20,7 +20,7 @@ public class AboutActivity extends AbstractActivity { setContentView(R.layout.about); setTitle(res.getString(R.string.about)); - ((TextView) findViewById(R.id.about_version_string)).setText(Version.getVersionName()); + ((TextView) findViewById(R.id.about_version_string)).setText(Version.getVersionName(this)); ((TextView) findViewById(R.id.contributors)).setMovementMethod(LinkMovementMethod.getInstance()); ((TextView) findViewById(R.id.changelog)).setMovementMethod(LinkMovementMethod.getInstance()); } |
