Dimezis / BlurView

Dynamic iOS-like blur of underlying Views for Android
Apache License 2.0
3.48k stars 331 forks source link

Don't crash during updateBlur() if `viewRoot` call save() and restore() an unequal amount of times (Fix #184) #187

Open Fox2Code opened 1 year ago

Fox2Code commented 1 year ago

This match the behavior of sCompatibilityRestore for app targeting android 5.1 (sdk 22) and earlier.

Reference: Canvas.java from LineageOS 19.1 (Other ROMs should be the same)

This will also help to avoid being mislead that BlurView is the cause of issues that BlurView has nothing to do with.

I also updated the javadoc on BlurViewCanvas