diff --git a/APK/app.apk b/APK/app.apk new file mode 100644 index 0000000..8c4208a Binary files /dev/null and b/APK/app.apk differ diff --git a/app/src/main/java/lunainc/com/mx/pricetracker/Utils/MyWorker.java b/app/src/main/java/lunainc/com/mx/pricetracker/Utils/MyWorker.java index 49f2238..75b9670 100644 --- a/app/src/main/java/lunainc/com/mx/pricetracker/Utils/MyWorker.java +++ b/app/src/main/java/lunainc/com/mx/pricetracker/Utils/MyWorker.java @@ -9,6 +9,7 @@ import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Color; +import android.icu.text.NumberFormat; import android.media.RingtoneManager; import android.util.Log; @@ -65,7 +66,7 @@ public void onResponse(Call call, Response response) { String price = String.valueOf(response.body().getPrice()); - if (!product.getPrice().equals(price)){ + if (Integer.parseInt(product.getPrice().replaceAll(",", "")) != Integer.parseInt(price.replaceAll(",", ""))){ db.createPrice(product.getId(), price); db.updateProduct("status", response.body().getStatus(), String.valueOf(product.getId())); sendNotification(product.getName(), "Tu producto "+product.getName()+" ha cambiado de precio, su precio ahora es "+price);