Skip to content
Snippets Groups Projects
Commit 2c337721 authored by Saran Kumar's avatar Saran Kumar
Browse files

Saran

parent a28f3616
No related branches found
No related tags found
No related merge requests found
...@@ -178,10 +178,7 @@ public class applyodActivity extends AppCompatActivity implements AdapterView.On ...@@ -178,10 +178,7 @@ public class applyodActivity extends AppCompatActivity implements AdapterView.On
reason = odapplyreason.getText().toString(); reason = odapplyreason.getText().toString();
startperiod = odapplystartperiod.getText().toString(); startperiod = odapplystartperiod.getText().toString();
endperiod = odapplyendperiod.getText().toString(); endperiod = odapplyendperiod.getText().toString();
if(bitmap==null){ if(setleavetype.equals("-Select Leave Type-")){
Toast.makeText(this, "Please Select an Image", Toast.LENGTH_SHORT).show();
}
else if(setleavetype.equals("-Select Leave Type-")){
Toast.makeText(this,"Please Select the Leave Type", Toast.LENGTH_SHORT).show(); Toast.makeText(this,"Please Select the Leave Type", Toast.LENGTH_SHORT).show();
} }
else if(sendstartdate==null){ else if(sendstartdate==null){
...@@ -199,6 +196,9 @@ public class applyodActivity extends AppCompatActivity implements AdapterView.On ...@@ -199,6 +196,9 @@ public class applyodActivity extends AppCompatActivity implements AdapterView.On
else if (reason==null){ else if (reason==null){
Toast.makeText(this, "Please give a reason", Toast.LENGTH_SHORT).show(); Toast.makeText(this, "Please give a reason", Toast.LENGTH_SHORT).show();
} }
if(bitmap==null){
Toast.makeText(this, "Please Select an Image", Toast.LENGTH_SHORT).show();
}
else { else {
final ProgressDialog progressDialog = new ProgressDialog(this); final ProgressDialog progressDialog = new ProgressDialog(this);
RequestQueue queue; RequestQueue queue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment