-
-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This addresses the issue when multiple BlurViews could trigger recursive redraw of each other
- Loading branch information
Showing
2 changed files
with
24 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
library/src/main/java/eightbitlab/com/blurview/BlurViewCanvas.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package eightbitlab.com.blurview; | ||
|
||
import android.graphics.Bitmap; | ||
import android.graphics.Canvas; | ||
|
||
import androidx.annotation.NonNull; | ||
|
||
// Servers purely as a marker of a Canvas used in BlurView | ||
// to skip drawing itself and other BlurViews on the View hierarchy snapshot | ||
public class BlurViewCanvas extends Canvas { | ||
public BlurViewCanvas(@NonNull Bitmap bitmap) { | ||
super(bitmap); | ||
} | ||
} |