store select dialog store name fix
This commit is contained in:
BIN
.idea/caches/build_file_checksums.ser
generated
BIN
.idea/caches/build_file_checksums.ser
generated
Binary file not shown.
BIN
.idea/caches/gradle_models.ser
generated
BIN
.idea/caches/gradle_models.ser
generated
Binary file not shown.
@@ -129,14 +129,14 @@ public class SplashActivity extends BaseActivity {
|
|||||||
final ArrayList<String> postCodeList = new ArrayList<>();
|
final ArrayList<String> postCodeList = new ArrayList<>();
|
||||||
for(StoreModel storeModel : storeList){
|
for(StoreModel storeModel : storeList){
|
||||||
storeModel.checkNull();
|
storeModel.checkNull();
|
||||||
postCodeList.add(storeModel.getPostCode());
|
postCodeList.add(storeModel.getPostCode() + "-" + storeModel.getCity());
|
||||||
}
|
}
|
||||||
|
|
||||||
DialogHelper.showStoreListDialog(postCodeList, new MaterialDialog.ListCallback() {
|
DialogHelper.showStoreListDialog(postCodeList, new MaterialDialog.ListCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSelection(MaterialDialog dialog, View itemView, int position, CharSequence text) {
|
public void onSelection(MaterialDialog dialog, View itemView, int position, CharSequence text) {
|
||||||
selectedStoreModel = storeList.get(position);
|
selectedStoreModel = storeList.get(position);
|
||||||
postCodeTextView.setText(selectedStoreModel.getPostCode());
|
postCodeTextView.setText(selectedStoreModel.getPostCode() + "-" + selectedStoreModel.getCity());
|
||||||
SessionHelper.setSelectedStore(selectedStoreModel);
|
SessionHelper.setSelectedStore(selectedStoreModel);
|
||||||
ApiService.getInstance().reset();
|
ApiService.getInstance().reset();
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ public class ApiConstants {
|
|||||||
public static final int API_READ_TIMEOUT = 30;
|
public static final int API_READ_TIMEOUT = 30;
|
||||||
public static final int API_CONNECT_TIMEOUT = 10;
|
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://www.pizzalink.ch/";
|
||||||
//public static final String API_PATH = "http://pizzaleu.ddns.net/";
|
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://pizzamaxx.ch/";
|
||||||
public static final int CATEGORY_ID_WUNSCHPIZZA = 9999;
|
public static final int CATEGORY_ID_WUNSCHPIZZA = 9999;
|
||||||
public static final int CATEGORY_ID_EKSTRA_KEBAP = 9998;
|
public static final int CATEGORY_ID_EKSTRA_KEBAP = 9998;
|
||||||
public static final int PRODUCT_ID_WUNSCHPIZZA = 56;
|
public static final int PRODUCT_ID_WUNSCHPIZZA = 56;
|
||||||
|
|||||||
Reference in New Issue
Block a user