This commit is contained in:
ashishandroid
2017-02-24 17:51:04 +05:30
parent 244efc44e7
commit 3cd4ca334b
2 changed files with 10 additions and 3 deletions
@@ -558,6 +558,7 @@ public class StoreListActivity extends AppCompatActivity {
coverage = db.getCoverageWithStoreID_Data(storeCd);
if (coverage.size() > 0) {
if (coverage.get(0).getStatus().equals(CommonString.KEY_INVALID) || coverage.get(0).getStatus().equals(CommonString.KEY_VALID)) {
AlertDialog.Builder builder = new AlertDialog.Builder(StoreListActivity.this);
@@ -573,7 +574,7 @@ public class StoreListActivity extends AppCompatActivity {
Intent in = new Intent(StoreListActivity.this, NonWorkingReason.class);
in.putExtra(CommonString.KEY_STORE_ID,current.getSTORE_ID());
in.putExtra(CommonString.KEY_STORE_ID, current.getSTORE_ID());
startActivity(in);
}
@@ -590,8 +591,14 @@ public class StoreListActivity extends AppCompatActivity {
AlertDialog alert = builder.create();
alert.show();
} else {
}
else{
Intent in = new Intent(StoreListActivity.this, NonWorkingReason.class);
in.putExtra(CommonString.KEY_STORE_ID,current.getSTORE_ID());
startActivity(in);
}
}else {
Intent in = new Intent(StoreListActivity.this, NonWorkingReason.class);
in.putExtra(CommonString.KEY_STORE_ID,current.getSTORE_ID());