diff options
author | David-Development <david-dev@live.de> | 2015-10-03 20:43:46 +0300 |
---|---|---|
committer | David-Development <david-dev@live.de> | 2015-10-03 20:44:11 +0300 |
commit | fd39b399ed71000bfc1e56b7ae564b0bbe62bcb1 (patch) | |
tree | a1fe7884c7b9839ab3acf04774f57f0e9486deba /News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/ListView/SubscriptionExpandableListAdapter.java | |
parent | 21b336acd669d75814e9d18a7a611c46bd0d79a5 (diff) |
add compatibility to api level 8
Diffstat (limited to 'News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/ListView/SubscriptionExpandableListAdapter.java')
-rw-r--r-- | News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/ListView/SubscriptionExpandableListAdapter.java | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/ListView/SubscriptionExpandableListAdapter.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/ListView/SubscriptionExpandableListAdapter.java index 8ddad9f8..0b709402 100644 --- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/ListView/SubscriptionExpandableListAdapter.java +++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/ListView/SubscriptionExpandableListAdapter.java @@ -332,9 +332,22 @@ public class SubscriptionExpandableListAdapter extends BaseExpandableListAdapter }); } + //On API LEVEL < 11 we can't use the rotate method.. so we have to set different bitmaps. + if (Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB) { + if(group.id_database != ALL_STARRED_ITEMS.getValue()) { + if (rotation == 90) { + viewHolder.imgView.setImageResource(R.drawable.ic_action_expand_less); + } else { + viewHolder.imgView.setImageResource(R.drawable.ic_action_expand_more); + } + } + } } - viewHolder.imgView.setRotation(rotation); + + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { + viewHolder.imgView.setRotation(rotation); + } return convertView; } |