Commit451 / ForegroundViews

Views that supports a foreground, like FrameLayout does
Apache License 2.0
213 stars 29 forks source link

Fix working ForegroundDelegate on API 23 devices with targetVersion 22 in Gradle. #5

Closed kuFEAR closed 8 years ago

kuFEAR commented 8 years ago

Hi, i faced the problem. You can check it in android.view.View on lines 4279, 4384 etc. there checking code: if (targetSdkVersion >= VERSION_CODES.M || this instanceof FrameLayout) {} it turns out that not will be working with API 23 if Gradle project configured with targetVersion 22 and run app on API 23.

Jawnnypoo commented 8 years ago

Hmm, that is an interesting issue. But, good job finding the fix!