diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2012-10-09 09:54:43 +0400 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2012-10-09 09:54:43 +0400 |
| commit | ac3dbd593a0a764835bb371cdb31354406e75e02 (patch) | |
| tree | b62b7a3e422a43067e71bbb5639e3e927741cdc7 /src/org/fox/ttrss/OnlineActivity.java | |
| parent | cc3be7ed430cfbe81049ef564bed242816793c5b (diff) | |
check if fragment is attached in fragment asynctasks
Diffstat (limited to 'src/org/fox/ttrss/OnlineActivity.java')
| -rw-r--r-- | src/org/fox/ttrss/OnlineActivity.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/fox/ttrss/OnlineActivity.java b/src/org/fox/ttrss/OnlineActivity.java index 636535e4..13f92a3f 100644 --- a/src/org/fox/ttrss/OnlineActivity.java +++ b/src/org/fox/ttrss/OnlineActivity.java @@ -545,7 +545,9 @@ public class OnlineActivity extends CommonActivity { ApiRequest req = new ApiRequest(getApplicationContext()) {
protected void onPostExecute(JsonElement result) {
- hf.refresh(false);
+ if (hf.isAdded()) {
+ hf.refresh(false);
+ }
}
};
|