Skip to content

Commit 25ba360

Browse files
authored
Merge pull request #44 from mngoe/feature-33097
Reverse insuree policies list in enquiring to print only recent policy
2 parents b9de063 + f7f774d commit 25ba360

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

claimManagement/src/main/java/org/openimis/imisclaims/EnquireActivity.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656

5757
import java.net.HttpURLConnection;
5858
import java.util.ArrayList;
59+
import java.util.Collections;
5960
import java.util.Date;
6061
import java.util.HashMap;
6162
import java.util.List;
@@ -121,6 +122,8 @@ protected void onCreate(Bundle savedInstanceState) {
121122
llPolygamousSubFamilies = findViewById(R.id.llPolygamousSubFamilies);
122123
ll = findViewById(R.id.llListView);
123124

125+
lv.setNestedScrollingEnabled(true);
126+
124127
iv.setOnClickListener(v -> {
125128
if (ZoomOut) {
126129
iv.setLayoutParams(new LinearLayout.LayoutParams(orgWidth, orgHeight));
@@ -596,6 +599,7 @@ private void renderInsureeBasicInfo(Insuree insuree) {
596599
}
597600

598601
ArrayList<Map<String, String>> PolicyList = new ArrayList<>();
602+
Collections.reverse(insuree.getPolicies());
599603
for (Policy policy : insuree.getPolicies()) {
600604
HashMap<String, String> policyMap = new HashMap<>();
601605
double iDedType = policy.getDeductibleType() != null ? policy.getDeductibleType() : 0;

0 commit comments

Comments
 (0)