Mercurial > 510Connectbot
comparison src/com/five_ten_sg/connectbot/HelpActivity.java @ 256:29a431920007
help shows full version info
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 14 Jul 2014 14:11:09 -0700 |
parents | 0ce5cc452d02 |
children | 071eccdff8ea |
comparison
equal
deleted
inserted
replaced
255:67f9a819157e | 256:29a431920007 |
---|---|
48 this.setTitle(String.format("%s: %s", | 48 this.setTitle(String.format("%s: %s", |
49 getResources().getText(R.string.app_name), | 49 getResources().getText(R.string.app_name), |
50 getResources().getText(R.string.title_help))); | 50 getResources().getText(R.string.title_help))); |
51 AssetManager am = this.getAssets(); | 51 AssetManager am = this.getAssets(); |
52 LinearLayout content = (LinearLayout)this.findViewById(R.id.topics); | 52 LinearLayout content = (LinearLayout)this.findViewById(R.id.topics); |
53 TextView appVersionView = (TextView) this.findViewById(R.id.topics).findViewById(R.id.app_version); | |
54 | |
55 // get package version | |
56 try { | |
57 appVersionView.setText(getPackageManager().getPackageInfo(getPackageName(), 0).versionName); | |
58 } | |
59 catch (NameNotFoundException e) { | |
60 Log.e(TAG, "Problem retrieving application version", e); | |
61 } | |
62 | |
63 try { | 53 try { |
64 for (String name : am.list(HELPDIR)) { | 54 for (String name : am.list(HELPDIR)) { |
65 if (name.endsWith(SUFFIX)) { | 55 if (name.endsWith(SUFFIX)) { |
66 Button button = new Button(this); | 56 Button button = new Button(this); |
67 final String topic = name.substring(0, name.length() - SUFFIX.length()); | 57 final String topic = name.substring(0, name.length() - SUFFIX.length()); |