From 57e5779468e8df73e339142a5d0e0dd07b7d50fe Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Sat, 11 Jul 2015 13:01:22 +0200 Subject: [PATCH] use renderscriptTargetApi 18 hopefully this will fix issues with some devices --- app/build.gradle | 2 +- app/src/main/rs/blur.rsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 15dba05..ef6f2cd 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,7 +10,7 @@ android { targetSdkVersion 22 versionCode 29 versionName "1.28" - renderscriptTargetApi 19 + renderscriptTargetApi 18 renderscriptSupportModeEnabled true } buildTypes { diff --git a/app/src/main/rs/blur.rsh b/app/src/main/rs/blur.rsh index 5c8b282..68072a4 100644 --- a/app/src/main/rs/blur.rsh +++ b/app/src/main/rs/blur.rsh @@ -23,7 +23,7 @@ limitations under the License. void adjust_blur(int blur) { - user_blur = clamp(blur, -3, 3); + user_blur = min(max(blur, -3), 3); } #endif