سلام
تو پروژم میخوام فقط لوکیشن یک شهر رو بگیره ممنون میشم مشکل کد رو بگید
if (cityName.equals("tehran")) {
                                        origin = Point.fromLngLat(mapTargetLatLng.getLongitude(), mapTargetLatLng.getLatitude());
                                        originTitle = address;
                                        if (origin != null && originTitle != null) {
                                             //getRoute(mapboxMap,origin,destination);
                                             //loadedStyle.addLayer(routeLayer);
                                            Bundle bundle = new Bundle();
                                            bundle.putString(EXTRA_KEY_ORIGIN_LAT, String.valueOf(origin.latitude()));
                                            bundle.putString(EXTRA_KEY_ORIGIN_LON, String.valueOf(origin.longitude()));
                                            bundle.putString(EXTRA_KEY_ORIGIN_TITLE, originTitle);
                                            Intent intent = new Intent(PostalActivity.this, PostalShippingActivity.class);
                                            intent.putExtra(EXTRA_KEY_DATA, bundle);
                                            startActivity(intent);
                                        } else {
                                            Toast.makeText(PostalActivity.this, "لطفا مبدا را انتخاب کنید", Toast.LENGTH_SHORT).show();
                                        }
                                        // Hide the hovering red hovering ImageView marker
                                        originMarker.setVisibility(View.INVISIBLE);
                                        // Transform the appearance of the button to become the cancel button
                                        selectOriginLocationButton.setText(getString(R.string.remove_origin));
                                        // Show the SymbolLayer icon to represent the selected map location
                                        if (style.getLayer(DROPPED_MARKER_LAYER_ID) != null) {
                                            GeoJsonSource source = style.getSourceAs("dropped-marker-source-id");
                                            if (source != null) {
                                                source.setGeoJson(Point.fromLngLat(mapTargetLatLng.getLongitude(), mapTargetLatLng.getLatitude()));
                                            }
                                            droppedOriginMarkerLayer = style.getLayer(DROPPED_MARKER_LAYER_ID);
                                            if (droppedOriginMarkerLayer != null) {
                                                droppedOriginMarkerLayer.setProperties(visibility(VISIBLE));
                                            }
                                        }
                                    } else {
                                        Toast.makeText(PostalActivity.this, getString(R.string.city_not_available), Toast.LENGTH_SHORT).show();
                                    }
در قسمت if شهر تهران رو میخوام بگیره وقتی if رو بردارم کد درست کار میکنه ولی زمانی که if هستش چ با فارس یا انگلیسی تایپ کنم قسمت if اجرا نمیشه و else if اجرا میشه
