Skip to content

Commit 3e25e9c

Browse files
committed
Use Application context rather than Activity context
1 parent e8d07d0 commit 3e25e9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blurkit/src/main/java/io/alterac/blurkit/BlurKit.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static void init(Context context) {
2424
}
2525

2626
instance = new BlurKit();
27-
rs = RenderScript.create(context);
27+
rs = RenderScript.create(context.getApplicationContext());
2828
}
2929

3030
public Bitmap blur(Bitmap src, int radius) {

0 commit comments

Comments
 (0)