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

Binary file not shown.

Binary file not shown.

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();

View File

@@ -4,8 +4,8 @@ public class ApiConstants {
public static final int API_READ_TIMEOUT = 30;
public static final int API_CONNECT_TIMEOUT = 10;
//public static final String API_PATH = "http://www.pizzalink.ch/";
//public static final String API_PATH = "http://pizzaleu.ddns.net/";
public static final String API_PATH = "http://pizzamaxx.ch/";
public static final String API_PATH = "http://pizzaleu.ddns.net/";
//public static final String API_PATH = "http://pizzamaxx.ch/";
public static final int CATEGORY_ID_WUNSCHPIZZA = 9999;
public static final int CATEGORY_ID_EKSTRA_KEBAP = 9998;
public static final int PRODUCT_ID_WUNSCHPIZZA = 56;