コード例 #1
0
 public void hideURLDialog() {
   if (mLocationsList == null) {
     new LocationManager()
         .getAvailableLocation(
             LocationHelper.createAvailableLocationListener(mLastCorrectURL, this));
   } else {
     initLoginForm(mLocationsList, mLastCorrectURL);
   }
 }
コード例 #2
0
 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();
   }
 }