Skip to content

Commit

Permalink
occupation field is not mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
prajwalmw committed Jul 19, 2018
1 parent 2c5ae70 commit 33fe4f4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ public void onClick(DialogInterface dialog, int which) {


//prajwal
if(!mFirstName.getText().toString().equals("") && !mLastName.getText().toString().equals("") && !mOccupation.getText().toString().equals("")
if(!mFirstName.getText().toString().equals("") && !mLastName.getText().toString().equals("")
&& !mCity.getText().toString().equals("") && !countryText.getText().toString().equals("") &&
!stateText.getText().toString().equals("") && !mDOB.getText().toString().equals("") && !mAge.getText().toString().equals(""))
{
Expand Down Expand Up @@ -704,10 +704,10 @@ public void onClick(DialogInterface dialog, int which) {
mAge.setError(getString(R.string.error_field_required));
}

if(mOccupation.getText().toString().equals(""))
/* if(mOccupation.getText().toString().equals(""))
{
mOccupation.setError(getString(R.string.error_field_required));
}
}*/

/* if(casteText.getText().toString().equals(""))
{
Expand Down

0 comments on commit 33fe4f4

Please sign in to comment.