comparison src/com/five_ten_sg/connectbot/HelpActivity.java @ 385:b12705abba3e

wizard and help present help pages in the same order
author Carl Byington <carl@five-ten-sg.com>
date Wed, 06 Aug 2014 11:49:01 -0700
parents b919cd3d6e2f
children e481699db6b1
comparison
equal deleted inserted replaced
384:b919cd3d6e2f 385:b12705abba3e
46 getResources().getText(R.string.title_help))); 46 getResources().getText(R.string.title_help)));
47 LinearLayout content = (LinearLayout)this.findViewById(R.id.topics); 47 LinearLayout content = (LinearLayout)this.findViewById(R.id.topics);
48 48
49 try { 49 try {
50 String[] topics = getResources().getStringArray(R.array.list_wizard_topics); 50 String[] topics = getResources().getStringArray(R.array.list_wizard_topics);
51 for (String topic : topics) { 51 for (final String topic : topics) {
52 Button button = new Button(this); 52 Button button = new Button(this);
53 button.setText(topic); 53 button.setText(topic);
54 button.setOnClickListener(new OnClickListener() { 54 button.setOnClickListener(new OnClickListener() {
55 public void onClick(View v) { 55 public void onClick(View v) {
56 Intent intent = new Intent(HelpActivity.this, HelpTopicActivity.class); 56 Intent intent = new Intent(HelpActivity.this, HelpTopicActivity.class);