X Tutup
Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

StickyListHeadersListView has build error with AA 4.1.0 #1845

@TomWangTW

Description

@TomWangTW

Hi AA team,
I found AA 4.1 has build error with lib:StickyListHeaders and it works fine when AA 4.0.
soucrce:https://github.com/emilsjolander/StickyListHeaders

When i have an object which like:
@ViewById
StickyListHeadersListView lvStickyList;

and then i set it ItemClick as below:
@ItemClick(R.id.lvStickyList)
void itemClick(int position) {

It will cause build error as
error: incompatible types: StickyListHeadersListView cannot be converted to AdapterView ((AdapterView ) this.lvStickyList).setOnItemClickListener(new OnItemClickListener() {
...

Maybe it is a side effect by #1785 Cast views to the required type when adding callbacks.
Any solution for this? Thx.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup