declex icon indicating copy to clipboard operation
declex copied to clipboard

Populating an ImageView with a file converts to String when using a class field

Open smaugho opened this issue 6 years ago • 0 comments

If the layout has an ImageView with ID userImage, the following @Populate converts the field to String before calling Picasso (so, the file is not loaded correctly)

@Populate
File userImage;

But it works fine (so it passes the File object to Picasso directly) if a method is used:


    File userImage;

    @Populate
    public File getUserImage() {
        return userImage;
    }

smaugho avatar Nov 03 '17 13:11 smaugho