File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
blurkit/src/main/java/com/alterac/blurkit Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 44import android .graphics .Bitmap ;
55import android .graphics .Canvas ;
66import android .graphics .Matrix ;
7- import android .support .v8 .renderscript .Allocation ;
8- import android .support .v8 .renderscript .Element ;
9- import android .support .v8 .renderscript .RenderScript ;
10- import android .support .v8 .renderscript .ScriptIntrinsicBlur ;
117import android .view .View ;
8+ import android .renderscript .Allocation ;
9+ import android .renderscript .Element ;
10+ import android .renderscript .RenderScript ;
11+ import android .renderscript .ScriptIntrinsicBlur ;
1212
1313public class BlurKit {
1414
1515 private static final float FULL_SCALE = 1f ;
1616
1717 private static BlurKit instance ;
1818
19- private RenderScript rs ;
19+ private static RenderScript rs ;
2020
2121 public static void init (Context context ) {
2222 if (instance != null ) {
2323 return ;
2424 }
2525
2626 instance = new BlurKit ();
27- instance . rs = RenderScript .create (context );
27+ rs = RenderScript .create (context );
2828 }
2929
3030 public Bitmap blur (Bitmap src , int radius ) {
You can’t perform that action at this time.
0 commit comments