From 7b6fea6982be3c3dd4823a3829b4ff844f6802e5 Mon Sep 17 00:00:00 2001 From: Pau Date: Fri, 23 May 2025 00:03:01 +0200 Subject: [PATCH] Image upload order fix on add places --- .../com/example/acloc/activity/AddNewPlaceActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/example/acloc/activity/AddNewPlaceActivity.java b/app/src/main/java/com/example/acloc/activity/AddNewPlaceActivity.java index 8aef1eb..762f567 100644 --- a/app/src/main/java/com/example/acloc/activity/AddNewPlaceActivity.java +++ b/app/src/main/java/com/example/acloc/activity/AddNewPlaceActivity.java @@ -169,11 +169,11 @@ public class AddNewPlaceActivity extends AppCompatActivity implements View.OnCli if (requestCode == PICK_IMAGE_REQUEST && resultCode == RESULT_OK && data != null && data.getData() != null) { selectedImageUri = data.getData(); - // Load image using Picasso - Picasso.get().load(selectedImageUri).into(ivPlacePhoto); - // Upload the image uploadImageToServer(selectedImageUri); + + // Load image using Picasso + Picasso.get().load(selectedImageUri).into(ivPlacePhoto); } }