Skip to content

Commit 79c7c88

Browse files
authored
Merge pull request #334 from iit2014086/matchBugFix
fix app crash in older versions of android
2 parents ad5086c + a9aea80 commit 79c7c88

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
463 Bytes
Binary file not shown.

source-code/app/src/main/java/org/buildmlearn/toolkit/matchtemplate/fragment/DetailFragment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,18 +154,18 @@ public boolean onMenuItemClick(MenuItem menuItem) {
154154

155155
handleListViewListeners();
156156

157-
listViewA.setAdapter(matchListAdapterA);
158-
listViewB.setAdapter(matchListAdapterB);
159157

160158
View header_A = getLayoutInflater(savedInstanceState).inflate(R.layout.match_template_detail_header_a, null);
161159
View footer_A = getLayoutInflater(savedInstanceState).inflate(R.layout.match_template_detail_footer_a, null);
162160
listViewA.addHeaderView(header_A);
163161
listViewA.addFooterView(footer_A);
162+
listViewA.setAdapter(matchListAdapterA);
164163

165164
View header_B = getLayoutInflater(savedInstanceState).inflate(R.layout.match_template_detail_header_b, null);
166165
View footer_B = getLayoutInflater(savedInstanceState).inflate(R.layout.match_template_detail_footer_b, null);
167166
listViewB.addHeaderView(header_B);
168167
listViewB.addFooterView(footer_B);
168+
listViewB.setAdapter(matchListAdapterB);
169169

170170
((TextView) rootView.findViewById(R.id.score)).setText(String.format(Locale.ENGLISH, "Score : %d of %d", countScore, matchListA.size()));
171171

0 commit comments

Comments
 (0)