Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Explore the full inheritance/interface graph #39

Open
paulproteus opened this issue May 13, 2020 · 0 comments
Open

Explore the full inheritance/interface graph #39

paulproteus opened this issue May 13, 2020 · 0 comments

Comments

@paulproteus
Copy link
Contributor

Right now, rubicon-java only looks at the immediate interfaces a class implements along with its superclasses. ArrayAdapter in Android fails to find SpinnerAdapter, so we have to do this ugly hinting.

https://github.com/beeware/toga/pull/905/files#diff-2a4e44cc48a82e70ea678ecb88a8a66fR23

# Indicate to `rubicon-java` that `ArrayAdapter` can also be typecast into a
# `SpinnerAdapter`. This is required until `rubicon-java` explores the interfaces
# implemented by a class's subclasses.
ArrayAdapter._alternates.append(b'Landroid/widget/SpinnerAdapter;')
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants