Mercurial > 510Connectbot
changeset 386:e481699db6b1
wizard and help present help pages in the same order
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 06 Aug 2014 11:50:10 -0700 |
parents | b12705abba3e |
children | 04a0316bbfe3 |
files | src/com/five_ten_sg/connectbot/HelpActivity.java |
diffstat | 1 files changed, 11 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/HelpActivity.java Wed Aug 06 11:49:01 2014 -0700 +++ b/src/com/five_ten_sg/connectbot/HelpActivity.java Wed Aug 06 11:50:10 2014 -0700 @@ -46,24 +46,17 @@ getResources().getText(R.string.title_help))); LinearLayout content = (LinearLayout)this.findViewById(R.id.topics); - try { - String[] topics = getResources().getStringArray(R.array.list_wizard_topics); - for (final String topic : topics) { - Button button = new Button(this); - button.setText(topic); - button.setOnClickListener(new OnClickListener() { - public void onClick(View v) { - Intent intent = new Intent(HelpActivity.this, HelpTopicActivity.class); - intent.putExtra(Intent.EXTRA_TITLE, topic); - HelpActivity.this.startActivity(intent); - } - }); - content.addView(button); - } - } - catch (IOException e) { - // TODO Auto-generated catch block - Log.e(TAG, "couldn't get list of help assets", e); + for (final String topic : topics) { + Button button = new Button(this); + button.setText(topic); + button.setOnClickListener(new OnClickListener() { + public void onClick(View v) { + Intent intent = new Intent(HelpActivity.this, HelpTopicActivity.class); + intent.putExtra(Intent.EXTRA_TITLE, topic); + HelpActivity.this.startActivity(intent); + } + }); + content.addView(button); } } }