← Back to team overview

dhis-mobile-devs team mailing list archive

[Branch ~dhis-mobile-devs/dhis-mobile/lwuit-tracking] Rev 204: Fix bug person remains in peding list after submit

 

------------------------------------------------------------
revno: 204
committer: Long <long.hispvietnam@xxxxxxxxx>
branch nick: lwuit-tracking
timestamp: Fri 2014-04-04 10:54:55 +0700
message:
  Fix bug person remains in peding list after submit
modified:
  src/org/hisp/dhis/mobile/view/OfflineView.java


--
lp:~dhis-mobile-devs/dhis-mobile/lwuit-tracking
https://code.launchpad.net/~dhis-mobile-devs/dhis-mobile/lwuit-tracking

Your team DHIS mobile developers is subscribed to branch lp:~dhis-mobile-devs/dhis-mobile/lwuit-tracking.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis-mobile-devs/dhis-mobile/lwuit-tracking/+edit-subscription
=== modified file 'src/org/hisp/dhis/mobile/view/OfflineView.java'
--- src/org/hisp/dhis/mobile/view/OfflineView.java	2014-04-03 01:58:41 +0000
+++ src/org/hisp/dhis/mobile/view/OfflineView.java	2014-04-04 03:54:55 +0000
@@ -9,6 +9,7 @@
 import org.hisp.dhis.mobile.model.Patient;
 import org.hisp.dhis.mobile.model.PatientAttribute;
 import org.hisp.dhis.mobile.recordstore.OfflinePatientRecordStore;
+import org.hisp.dhis.mobile.util.RecordStoreUtil;
 import org.hisp.dhis.mobile.ui.Text;
 
 import com.sun.lwuit.Command;
@@ -107,6 +108,7 @@
                     }
                     // nameBasedMIDlet.getWaitingView().showView();
                     offlineForm.removeAll();
+                    RecordStoreUtil.clearRecordStore(OfflinePatientRecordStore.OFFLINEPATIENT_DB);
                     nameBasedMIDlet.getAlertBoxView( "All patient uploaded", "Success" ).showView();
                 }
             }