Run all AsyncTasks on thread pool executor

Should Fix #7002
This commit is contained in:
Moxie Marlinspike
2017-10-23 13:03:32 -07:00
parent 263846bba0
commit 17dd681dc8
57 changed files with 107 additions and 101 deletions

View File

@@ -36,7 +36,7 @@ public class GiphyProxySelector extends ProxySelector {
}
return null;
}
}.execute();
}.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
} else {
initializeGiphyProxy();
}

View File

@@ -126,7 +126,7 @@ public class GiphyActivity extends PassphraseRequiredActionBarActivity
Log.w(TAG, "Resolved Uri is no longer the selected element...");
}
}
}.execute();
}.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
private static class GiphyFragmentPagerAdapter extends FragmentPagerAdapter {

View File

@@ -117,7 +117,7 @@ public abstract class GiphyFragment extends Fragment implements LoaderManager.Lo
protected void onPostExecute(List<GiphyImage> images) {
giphyAdapter.addImages(images);
}
}.execute();
}.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
}
}