-
-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blur disappears when navigating away from and back to view in 1.6.3 #117
Comments
Thank you for the detailed report. Regarding the stretching, I believe it's related to a change in https://github.com/Dimezis/BlurView/releases/tag/version-1.6.2, I've increased the rounding value to 64 to significantly improve the performance on Samsung devices. Both should be fixable, but can't say for sure when I'll be able to do it |
Nice one thank you yes it took me a little while to figure out the issue was the version change. I think 1.6.1 will be fine for me for the moment and will keep an eye out for any updates if you or anyone else has time so thanks! |
@danielwilson1702 hey, could you please check if these issues are fixed for you on this branch? |
I released 1.6.4 with a fix, please check if it works for you |
Hi @Dimezis sorry for the delay, I tried 1.6.4 and now no blur 😕 (at all I mean, even when first drawing the fragment) |
Maybe you could make a repo with a simple setup to replicate it? |
Alright, nvm, managed to reproduce it. Will make a fix soon'ish |
@danielwilson1702 by the way, does the blur appear if you manually call |
Sorry I forget to come back to you, |
Honestly, I got too lazy to get it fixed without any hacks, so if that's working for you, let it stay for now :) |
Please include:
Hi, this lib is still unmatched imo so thank you. I just thought you'd like to know, I have a very basic implementation of a BlurView that mistakenly clears itself if you navigate away from the screen with the view and come back to it. The issue is not there in 1.6.2 and below:
I am blurring in a Fragment's onCreateView. I noticed if I add a delay of 100ms it successfully blurs when it navigates back, and just in case I made sure to try and perform the blur after it has been laid out using:
So something has changed regarding lifecycle callbacks, or threading or something, not sure which.
Also, I noticed the blurring algorithm seems to stretch or magnify the blurred image differently in the setup I have in 1.6.2 / 1.6.3, whereas from 1.5.0->1.6.1 it is different. My view happens to be a relatively narrow, long view on a 7 inch landscape screen. I think 1.6.1 looks more accurate and doesn't exhibit the disappearing blur behavior in 1.6.3, so will stick with that for the moment.
Here is 1.6.1 with a blur radius of 2:
Here is 1.6.2 with a blur radius of 2:
1.6.2 with an increased blur radius of 8 is better:
The text was updated successfully, but these errors were encountered: