Fixed coupons
Locating wrong json
This commit is contained in:
@@ -27,8 +27,8 @@ public class CouponLoader implements Loader<List<Coupon>> {
|
|||||||
FileIO<ArrayList<Coupon>> fileIO = new FileIO<>();
|
FileIO<ArrayList<Coupon>> fileIO = new FileIO<>();
|
||||||
|
|
||||||
String selectedLanguage = context.getSharedPreferences("Settings", Context.MODE_PRIVATE).getString("Language", "nl");
|
String selectedLanguage = context.getSharedPreferences("Settings", Context.MODE_PRIVATE).getString("Language", "nl");
|
||||||
String fileName = "locations";
|
String fileName = "coupons";
|
||||||
// choose the coupon.json based of the selected language
|
// choose the coupons.json based of the selected language
|
||||||
if (!selectedLanguage.equals("en")) {
|
if (!selectedLanguage.equals("en")) {
|
||||||
fileName += "-" + selectedLanguage;
|
fileName += "-" + selectedLanguage;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user