# HG changeset patch # User Carl Byington # Date 1407351010 25200 # Node ID e481699db6b1f09dd615e827d609bc7b854fce5c # Parent b12705abba3e0374e1474e38b8bd28099115928b wizard and help present help pages in the same order diff -r b12705abba3e -r e481699db6b1 src/com/five_ten_sg/connectbot/HelpActivity.java --- 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); } } }