Image upload order fix on add places
This commit is contained in:
parent
58101ea489
commit
7b6fea6982
|
|
@ -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) {
|
if (requestCode == PICK_IMAGE_REQUEST && resultCode == RESULT_OK && data != null && data.getData() != null) {
|
||||||
selectedImageUri = data.getData();
|
selectedImageUri = data.getData();
|
||||||
|
|
||||||
// Load image using Picasso
|
|
||||||
Picasso.get().load(selectedImageUri).into(ivPlacePhoto);
|
|
||||||
|
|
||||||
// Upload the image
|
// Upload the image
|
||||||
uploadImageToServer(selectedImageUri);
|
uploadImageToServer(selectedImageUri);
|
||||||
|
|
||||||
|
// Load image using Picasso
|
||||||
|
Picasso.get().load(selectedImageUri).into(ivPlacePhoto);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue