frakbot/GlowPadBackport

Android P - non-SDK interfaces and StateListDrawable

behelit opened this issue · 1 comments

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=

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 :)