comparison src/com/five_ten_sg/connectbot/HelpActivity.java @ 384:b919cd3d6e2f

wizard and help present help pages in the same order
author Carl Byington <carl@five-ten-sg.com>
date Wed, 06 Aug 2014 11:34:32 -0700
parents f7e09771172f
children b12705abba3e
comparison
equal deleted inserted replaced
383:f7e09771172f 384:b919cd3d6e2f
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 (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);