Skip to content
This repository has been archived by the owner on Mar 19, 2020. It is now read-only.

Android P - non-SDK interfaces and StateListDrawable #18

Open
behelit opened this issue Mar 23, 2018 · 1 comment
Open

Android P - non-SDK interfaces and StateListDrawable #18

behelit opened this issue Mar 23, 2018 · 1 comment

Comments

@behelit
Copy link

behelit commented Mar 23, 2018

TargetDrawable.java uses reflection to access the getStateCount, which causes an error to popup in Android P

mGetStateCount = StateListDrawable.class.getDeclaredMethod("getStateCount");

49 | mGetStateCount.setAccessible(true);

https://github.com/frakbot/GlowPadBackport/search?utf8=%E2%9C%93&q=StateListDrawable&type=

@rock3r
Copy link
Contributor

rock3r commented Mar 23, 2018

Sounds likely, this uses a lot of reflection. I don't think you should be using this backport still, probably a clean reimplementation would be better after all these years :) But if you find a way to work around the issue, I'd really appreciate a PR :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants