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
reason = odapplyreason.getText().toString();
startperiod = odapplystartperiod.getText().toString();
endperiod = odapplyendperiod.getText().toString();
if(bitmap==null){
Toast.makeText(this, "Please Select an Image", Toast.LENGTH_SHORT).show();
}
else if(setleavetype.equals("-Select Leave Type-")){
if(setleavetype.equals("-Select Leave Type-")){
Toast.makeText(this,"Please Select the Leave Type", Toast.LENGTH_SHORT).show();
}
else if(sendstartdate==null){
......@@ -199,6 +196,9 @@ public class applyodActivity extends AppCompatActivity implements AdapterView.On
else if (reason==null){
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 {
final ProgressDialog progressDialog = new ProgressDialog(this);
RequestQueue queue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment