add some isAdded() bullshit to headlines requests
This commit is contained in:
parent
6756f75858
commit
7a4dc9de3d
@ -145,7 +145,7 @@ public class ArticlePager extends Fragment {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onPostExecute(JsonElement result) {
|
protected void onPostExecute(JsonElement result) {
|
||||||
if (isDetached()) return;
|
if (isDetached() || !isAdded()) return;
|
||||||
|
|
||||||
super.onPostExecute(result);
|
super.onPostExecute(result);
|
||||||
|
|
||||||
|
@ -494,7 +494,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onPostExecute(JsonElement result) {
|
protected void onPostExecute(JsonElement result) {
|
||||||
if (isDetached()) return;
|
if (isDetached() || !isAdded()) return;
|
||||||
|
|
||||||
if (getView() != null) {
|
if (getView() != null) {
|
||||||
ListView list = (ListView)getView().findViewById(R.id.headlines_list);
|
ListView list = (ListView)getView().findViewById(R.id.headlines_list);
|
||||||
|
Loading…
Reference in New Issue
Block a user