Skip to content
This repository was archived by the owner on Mar 11, 2021. It is now read-only.

Commit bdc5fdc

Browse files
committed
Add: Removed caching from version checking
1 parent 18b49e4 commit bdc5fdc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/src/main/java/io/github/tavisco/rvglassistant/fragments/MainFragment.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ private void checkForAppUpdates() {
180180
}, error -> Log.d(Constants.TAG, error.getLocalizedMessage()));
181181

182182
// Add the request to the RequestQueue.
183+
stringRequest.setShouldCache(false);
183184
queue.add(stringRequest);
184185
}
185186
}
@@ -240,6 +241,7 @@ public void populateRecycler() {
240241
}, error -> Log.d(Constants.TAG, error.getLocalizedMessage()));
241242

242243
// Add the request to the RequestQueue.
244+
stringRequest.setShouldCache(false);
243245
queue.add(stringRequest);
244246
}
245247
}
@@ -269,6 +271,7 @@ public void checkForGameUpdates(){
269271
}, error -> Log.d(Constants.TAG, error.getLocalizedMessage()));
270272

271273
// Add the request to the RequestQueue.
274+
stringRequest.setShouldCache(false);
272275
queue.add(stringRequest);
273276
}
274277
}

app/src/main/java/io/github/tavisco/rvglassistant/objects/adapters/IOPackageViewItem.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,10 @@
66
import android.util.Log;
77
import android.view.View;
88
import android.widget.ImageView;
9-
import android.widget.LinearLayout;
10-
import android.widget.ProgressBar;
119
import android.widget.TextView;
1210

1311
import com.android.volley.Request;
1412
import com.android.volley.RequestQueue;
15-
import com.android.volley.Response;
16-
import com.android.volley.VolleyError;
1713
import com.android.volley.toolbox.StringRequest;
1814
import com.android.volley.toolbox.Volley;
1915
import com.mikepenz.fastadapter.FastAdapter;
@@ -24,9 +20,9 @@
2420
import butterknife.BindView;
2521
import butterknife.ButterKnife;
2622
import io.github.tavisco.rvglassistant.R;
23+
import io.github.tavisco.rvglassistant.objects.IOPackageItem;
2724
import io.github.tavisco.rvglassistant.objects.enums.UpdateStatus;
2825
import io.github.tavisco.rvglassistant.others.Constants;
29-
import io.github.tavisco.rvglassistant.objects.IOPackageItem;
3026

3127
/**
3228
* Created by Tavisco on 25/05/18.
@@ -126,6 +122,7 @@ public void bindView(final IOPackageViewItem viewItem, final List<Object> payloa
126122
}, error -> Log.d(Constants.TAG, error.getLocalizedMessage()));
127123

128124
// Add the request to the RequestQueue.
125+
stringRequest.setShouldCache(false);
129126
queue.add(stringRequest);
130127
}
131128
}

0 commit comments

Comments
 (0)