store select dialog store name fix

This commit is contained in:
2019-11-24 21:39:33 +03:00
parent 058a43ab77
commit af666536d0
4 changed files with 4 additions and 4 deletions

View File

@@ -129,14 +129,14 @@ public class SplashActivity extends BaseActivity {
final ArrayList<String> postCodeList = new ArrayList<>();
for(StoreModel storeModel : storeList){
storeModel.checkNull();
postCodeList.add(storeModel.getPostCode());
postCodeList.add(storeModel.getPostCode() + "-" + storeModel.getCity());
}
DialogHelper.showStoreListDialog(postCodeList, new MaterialDialog.ListCallback() {
@Override
public void onSelection(MaterialDialog dialog, View itemView, int position, CharSequence text) {
selectedStoreModel = storeList.get(position);
postCodeTextView.setText(selectedStoreModel.getPostCode());
postCodeTextView.setText(selectedStoreModel.getPostCode() + "-" + selectedStoreModel.getCity());
SessionHelper.setSelectedStore(selectedStoreModel);
ApiService.getInstance().reset();