CameraKit / blurkit-android

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

Consider calling View.isInEditMode() to allow layout to work in layout editor #7

Closed bensandee closed 7 years ago

bensandee commented 7 years ago

Adding a BlurLayout to a layout XML file and then opening the Android Studio layout editor causes an exception in the editor because the renderscript components aren't available. Consider making the view's behavior a no-op when in edit mode using the View.isInEditMode(). I will try to submit a PR for this but it may be a few days.

dwillmc commented 7 years ago

Great idea. Feel free to make a PR and we'll get it in asap, otherwise I'll address it at some point.