Commit 850235c5 by Chauka Dev

Fixed - We select option from drop down after refresh the page, App is crashed.

parent 043807a8
...@@ -318,6 +318,7 @@ public class CatalogueVariableScreen extends AppCompatActivity { ...@@ -318,6 +318,7 @@ public class CatalogueVariableScreen extends AppCompatActivity {
} }
if(syncStatus == SyncStatus.SUCCESS) { if(syncStatus == SyncStatus.SUCCESS) {
mCatalogueVariableList = CatalogueVariableManager.getAllVariable(mCatalogueItem.getId()); mCatalogueVariableList = CatalogueVariableManager.getAllVariable(mCatalogueItem.getId());
setVariableChoices();
/*This if condition is use for, when variable form will load very first time /*This if condition is use for, when variable form will load very first time
* Other wise according to our logic we have to show dialog because we will get mFormHasChanged is "true" * Other wise according to our logic we have to show dialog because we will get mFormHasChanged is "true"
* Reason behind is getting "true" is - * Reason behind is getting "true" is -
...@@ -338,7 +339,6 @@ public class CatalogueVariableScreen extends AppCompatActivity { ...@@ -338,7 +339,6 @@ public class CatalogueVariableScreen extends AppCompatActivity {
mContainerLayout.removeAllViews(); mContainerLayout.removeAllViews();
/*Create dynamic layout and set Ui Policy*/ /*Create dynamic layout and set Ui Policy*/
/*-----------------------------*/ /*-----------------------------*/
setVariableChoices();
createView(); createView();
runUIPolicyActions(null); runUIPolicyActions(null);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment