Skip to content

Commit

Permalink
Update CustomListDialog.java
Browse files Browse the repository at this point in the history
  • Loading branch information
eltos authored Jul 1, 2017
1 parent ee9c3ec commit b6ba7cf
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,9 @@ protected View onCreateContentView(Bundle savedInstanceState) {
if (mListView instanceof ListView){
// for pre api11
((ListView) mListView).setAdapter(mAdapter);
} else if (mListView instanceof GridView) {
// for pre api11
((GridView) mListView).setAdapter(mAdapter);
} else {
mListView.setAdapter(mAdapter);
}
Expand Down

0 comments on commit b6ba7cf

Please sign in to comment.