mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 13:53:54 +01:00
Consolidate the networking libraries - drop volley in favor of OkHttp
This commit is contained in:
parent
2255bd9a56
commit
32cb8df9ae
8 changed files with 194 additions and 262 deletions
|
|
@ -7,7 +7,7 @@ import java.util.ArrayList;
|
|||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import fr.free.nrw.commons.upload.MwVolleyApi;
|
||||
import fr.free.nrw.commons.upload.CategoryApi;
|
||||
import timber.log.Timber;
|
||||
|
||||
public class CacheController {
|
||||
|
|
@ -31,8 +31,8 @@ public class CacheController {
|
|||
|
||||
public void cacheCategory() {
|
||||
List<String> pointCatList = new ArrayList<>();
|
||||
if (MwVolleyApi.GpsCatExists.getGpsCatExists()) {
|
||||
pointCatList.addAll(MwVolleyApi.getGpsCat());
|
||||
if (CategoryApi.GpsCatExists.getGpsCatExists()) {
|
||||
pointCatList.addAll(CategoryApi.getGpsCat());
|
||||
Timber.d("Categories being cached: %s", pointCatList);
|
||||
} else {
|
||||
Timber.d("No categories found, so no categories cached");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue