Check Internet status and delete Cart item

This commit is contained in:
phanhuuloi27
2022-06-07 16:36:10 +07:00
parent d6c0b44dd3
commit 9f8503a9e7
11 changed files with 163 additions and 59 deletions
@@ -33,7 +33,7 @@ public class Common {
return RetrofitClient.getClient(baseUrl).create(IGeoCoordinates.class);
}
public static Bitmap scaleBitmap(Bitmap bitmap, int newWidth, int newHeight) {
public static Bitmap scaleBitmap(Bitmap bitmap, int newWidth, int newHeight) {
Bitmap scaledBitmap = Bitmap.createBitmap(newWidth, newHeight, Bitmap.Config.ARGB_8888);
float scaleX = newWidth / (float)bitmap.getWidth();