Activity Active Bugfix
This commit is contained in:
@@ -86,6 +86,10 @@ public class UserLoginTask extends AsyncTask<Void, Void, String> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCancelled() {
|
protected void onCancelled() {
|
||||||
|
if (mActivity == null || mActivity.isFinishing())
|
||||||
|
return;
|
||||||
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1 && mActivity.isDestroyed())
|
||||||
|
return;
|
||||||
mActivity.mAuthTask = null;
|
mActivity.mAuthTask = null;
|
||||||
mActivity.showProgress(false);
|
mActivity.showProgress(false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user