public void hideURLDialog() { if (mLocationsList == null) { new LocationManager() .getAvailableLocation( LocationHelper.createAvailableLocationListener(mLastCorrectURL, this)); } else { initLoginForm(mLocationsList, mLastCorrectURL); } }
public void setUrl(String url) { mLastURL = url; URLValidator.ValidationResult result = URLValidator.validate(url); if (result.isURLValid()) { mSpinner.setVisibility(View.VISIBLE); mLoginFormView.setVisibility(View.GONE); new LocationManager() .getAvailableLocation( LocationHelper.createAvailableLocationListener(result.getUrl(), this)); } else { showInvalidURLDialog(); } }