BlurBehind icon indicating copy to clipboard operation
BlurBehind copied to clipboard

Bitmap not update

Open jsdevjournal opened this issue 10 years ago • 3 comments

Hi, your library is awesome but i got problem.

the bitmap is not update after first time new activity launched.

eg. First time activity launched, background image set correctly. But after that (2nd, 3rd and so on... ) background image is the same as first one.

I've look into library and try to play with your decorView

        decorView = activity.getWindow().getDecorView();
        decorView.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_LOW);
        decorView.setDrawingCacheEnabled(true);
        decorView.buildDrawingCache();
        image = Bitmap.createBitmap(decorView.getDrawingCache());
        decorView.destroyDrawingCache();
        decorView.setDrawingCacheEnabled(false);

no luck...

Do you know how to fix this?

By the way, I forgot to mention that the i use recyclerview for the original activity. Is this related? Is it a problem with recyclerview?

jsdevjournal avatar Mar 30 '15 20:03 jsdevjournal

Hi, You should invoke execute() again if you want cached background to be updated. It seems like you just call setBackground().

(Sorry for late response by the way. :)

faradaj avatar May 14 '15 14:05 faradaj

Hi, i have found the problem. The actual problem cause by SwipeRefreshLayout. After the first swipe refresh activity.getWindow().getDecorView() with RecylerView in the background never update again.

jsdevjournal avatar May 25 '15 09:05 jsdevjournal

Hi @durunvo did you manage to solve this issue?

johngamarra avatar Mar 01 '16 03:03 johngamarra