File tree Expand file tree Collapse file tree
src/main/java/org/openimis/imisclaims Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ repositories {
2121android {
2222 compileSdkVersion 32
2323 buildToolsVersion ' 33.0.0'
24+ namespace ' org.openimis.imisclaims'
2425
2526 defaultConfig {
2627 applicationId " org.openimis.imisclaims"
Original file line number Diff line number Diff line change 55import androidx .appcompat .widget .Toolbar ;
66import android .widget .TextView ;
77
8+ import org .json .JSONObject ;
9+
810import java .io .File ;
911
1012public class Report extends ImisActivity {
@@ -38,6 +40,8 @@ protected void onCreate(Bundle savedInstanceState) {
3840 File pendingFolder = new File (PendingFolder );
3941 File trashFolder = new File (TrashFolder );
4042
43+ JSONObject counts = sqlHandler .getClaimCounts ();
44+
4145 int countAccepted = 0 ;
4246 int countRejected = 0 ;
4347 if (acceptedClaims .listFiles ().length > 0 ) {
@@ -54,7 +58,7 @@ protected void onCreate(Bundle savedInstanceState) {
5458 }
5559 }
5660 } else {
57- countAccepted = 0 ;
61+ countAccepted = counts . optInt ( SQLHandler . CLAIM_UPLOAD_STATUS_ACCEPTED , 0 ); ;
5862 }
5963
6064 if (rejectedClaims .listFiles ().length > 0 ) {
@@ -71,7 +75,7 @@ protected void onCreate(Bundle savedInstanceState) {
7175 }
7276 }
7377 } else {
74- countRejected = 0 ;
78+ countRejected = counts . optInt ( SQLHandler . CLAIM_UPLOAD_STATUS_REJECTED , 0 ); ;
7579 }
7680 //Pending & Trash
7781 int count_pending = 0 ;
@@ -90,7 +94,7 @@ protected void onCreate(Bundle savedInstanceState) {
9094 }
9195 }
9296 } else {
93- count_pending = 0 ;
97+ count_pending = counts . optInt ( SQLHandler . CLAIM_UPLOAD_STATUS_ENTERED , 0 ); ;
9498 }
9599
96100 if (trashFolder .listFiles ().length > 0 ) {
Original file line number Diff line number Diff line change 11android.enableJetifier =true
22android.useAndroidX =true
3+ android.defaults.buildfeatures.buildconfig =true
4+ android.nonFinalResIds =false
You can’t perform that action at this time.
0 commit comments