← Back to team overview

dhis-mobile-devs team mailing list archive

[Branch ~dhis-mobile-devs/dhis-mobile/lwuit-tracking] Rev 173: minor

 

------------------------------------------------------------
revno: 173
committer: Lai <lai.hispvietnam@xxxxxxxxx>
branch nick: lwuit-tracking
timestamp: Wed 2013-10-23 14:36:42 +0700
message:
  minor
modified:
  src/org/hisp/dhis/mobile/connection/task/GetVariesInfoTask.java
  src/org/hisp/dhis/mobile/view/PersonRegistrationView.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/connection/task/GetVariesInfoTask.java'
--- src/org/hisp/dhis/mobile/connection/task/GetVariesInfoTask.java	2013-10-21 02:58:54 +0000
+++ src/org/hisp/dhis/mobile/connection/task/GetVariesInfoTask.java	2013-10-23 07:36:42 +0000
@@ -66,7 +66,7 @@
         finally
         {
             nameBasedMIDlet.getPersonRegistrationView().setEnrollProgramId( programId );
-            nameBasedMIDlet.getPersonRegistrationView().prepareView();
+            //nameBasedMIDlet.getPersonRegistrationView().prepareView();
             nameBasedMIDlet.getPersonRegistrationView().showView();
         }
 

=== modified file 'src/org/hisp/dhis/mobile/view/PersonRegistrationView.java'
--- src/org/hisp/dhis/mobile/view/PersonRegistrationView.java	2013-10-23 04:32:49 +0000
+++ src/org/hisp/dhis/mobile/view/PersonRegistrationView.java	2013-10-23 07:36:42 +0000
@@ -115,6 +115,7 @@
 
     public void prepareView()
     {
+        System.out.println("hey hey");
         System.gc();
         getMainForm();
         mainForm.removeAll();
@@ -122,6 +123,7 @@
         requiredLabel = null;
         patientIdentifierVector = null;
         offlinePatientIdentifierVector = null;*/
+        requireAttributeVector = new Vector();
         patientIdentifierValueVector = new Vector();
         patientAttributeValueVector = new Vector();
 
@@ -164,7 +166,6 @@
         // fullNameTextField.requestFocus();
 
         // add identifier
-
         try
         {
 
@@ -219,8 +220,6 @@
         }
         mainForm.addComponent( phoneNumberLabel );
         mainForm.addComponent( phoneNumberTextField );
-        
-        
 
         // add attribute
         try
@@ -232,7 +231,6 @@
             {
                 patientAttributeVector = offlinePatientAttributeVector;
             }
-
             for ( int i = 0; i < patientAttributeVector.size(); i++ )
             {
                 PatientAttribute patientAttribute = (PatientAttribute) patientAttributeVector.elementAt( i );