@Override protected void onPostExecute(Void result) { if (mBound) { mParent.unbindService(mConnection); mBound = false; } mParent.stopService(mServiceIntent); mParent.updateLayout(); }
@Override protected void onCancelled() { if (mBound) { mParent.unbindService(mConnection); mBound = false; } mParent.stopService(mServiceIntent); if (mProgressDialog != null) { mProgressDialog.dismiss(); } mParent.updateLayout(); super.onCancelled(); }