Skip to content

Commit

Permalink
Use Application context rather than Activity context
Browse files Browse the repository at this point in the history
  • Loading branch information
emersoncloud committed Nov 1, 2018
1 parent e8d07d0 commit 3e25e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blurkit/src/main/java/io/alterac/blurkit/BlurKit.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static void init(Context context) {
}

instance = new BlurKit();
rs = RenderScript.create(context);
rs = RenderScript.create(context.getApplicationContext());
}

public Bitmap blur(Bitmap src, int radius) {
Expand Down

0 comments on commit 3e25e9c

Please sign in to comment.