Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

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

Open
smaugho opened this issue Nov 3, 2017 · 0 comments
Labels
Milestone

Comments

@smaugho
Copy link
Member

smaugho commented Nov 3, 2017

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 smaugho added the bug label Nov 3, 2017
@smaugho smaugho added this to the NextStep milestone Nov 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant