public void fetchData() {
    Utils.hideKeyboard(getActivity(), mEditText.getWindowToken());

    final String location =
        Utils.uppercaseInput(getActivity(), mEditText.getText().toString().trim());
    if (!TextUtils.isEmpty(location)) {
      mPresenter.startFetchData(location);
      mPresenter.showProgress();
    }
  }
 @Override
 public void updateHeader(CurrentWeatherModel model) {
   mLocation.setText(model.getLocationName());
   mTemperature.setText(Utils.formatTemperature(model.getMain().getTemp()));
   Picasso.with(getActivity())
       .load(String.format(getString(R.string.image_endpoint), model.getWeather().getIcon()))
       .into(mWeatherIcon);
 }
 public boolean isTasksBusy() {
   if (mPresenter.isTasksBusy()) {
     Utils.showToast(getActivity(), getString(R.string.msg_wait));
   }
   return mPresenter.isTasksBusy();
 }
 @Override
 public void showError() {
   Utils.showToast(getActivity(), getString(R.string.msg_error));
 }