Example usage for android.os AsyncTask.Status equals

List of usage examples for android.os AsyncTask.Status equals

Introduction

In this page you can find the example usage for android.os AsyncTask.Status equals.

Prototype

public boolean equals(Object obj) 

Source Link

Document

Indicates whether some other object is "equal to" this one.

Usage

From source file:de.lebenshilfe_muenster.uk_gebaerden_muensterland.sign_browser.search.SignSearchActivity.java

@Override
protected void onPause() {
    Log.d(TAG, "onPause()" + this.hashCode());
    super.onPause();
    if (null != this.signSearchTask) {
        final AsyncTask.Status status = this.signSearchTask.getStatus();
        if (status.equals(AsyncTask.Status.PENDING) || status.equals(AsyncTask.Status.RUNNING)) {
            this.signSearchTask.cancel(INTERRUPT_IF_RUNNING);
        }/*from w  w w .j ava2  s .  c  o m*/
    }
    super.onPause();
}

From source file:de.lebenshilfe_muenster.uk_gebaerden_muensterland.sign_browser.SignBrowserFragment.java

@Override
public void onPause() {
    Log.d(TAG, "onPause " + hashCode());
    if (null != this.loadSignsTask) {
        final AsyncTask.Status status = this.loadSignsTask.getStatus();
        if (status.equals(AsyncTask.Status.PENDING) || status.equals(AsyncTask.Status.RUNNING)) {
            this.loadSignsTask.cancel(INTERRUPT_IF_RUNNING);
        }//w  ww.  j  ava  2s.  c o  m
    }
    super.onPause();
}

From source file:de.lebenshilfe_muenster.uk_gebaerden_muensterland.sign_trainer.AbstractSignTrainerFragment.java

@Override
public void onPause() {
    Log.d(AbstractSignTrainerFragment.TAG, "onPause " + hashCode());
    if (null != this.loadRandomSignTask) {
        final AsyncTask.Status status = this.loadRandomSignTask.getStatus();
        if (status.equals(AsyncTask.Status.PENDING) || status.equals(AsyncTask.Status.RUNNING)) {
            this.loadRandomSignTask.cancel(INTERRUPT_IF_RUNNING);
        }/*from   w  ww.j  a v a 2 s.c om*/
    }
    super.onPause();
}