CameraKit / blurkit-android

The missing Android blurring library. Fast blur-behind layout that parallels iOS.
MIT License
3.72k stars 309 forks source link

Add limited support for API 14 in BlurLayout #4

Closed consp1racy closed 5 years ago

consp1racy commented 7 years ago

1) setBackgroundDrawable instead of setBackground. It's not going anywhere.

2) Add API version checks in startBlur and pauseBlur rendering these methods ineffective.

Manually calling invalidate() still works so any unlucky soul stuck with API 14 won't crash and have the ability to refresh manually (or via posting Runnables or something).

dwillmc commented 7 years ago

Will address this within a few weeks. It's admittedly lower priority. Anybody feel free to make a PR though and I'll put in a release asap.

szholdiyarov commented 7 years ago

@consp1racy Do not understand about the second, why these methods should check for API version? do you mean that Choreographer is only added in 16v?

emersoncloud commented 5 years ago

Closing ticket. With 1.0.0 release, the current base API level is 21 which targets ~70% of all devices. If there is enough need for earlier API levels we will open a ticket and reconsider!