From 1f274829889c163fc164b096572076f687f8dfb6 Mon Sep 17 00:00:00 2001 From: GNarek Date: Thu, 8 Jun 2017 15:56:05 +0400 Subject: [PATCH] Update PickerModule.java As type of activeWidgetColor is int and type of DEFAULT_TINT is String it's causing error like: int cannot be dereferenced --- .../java/com/reactnative/ivpusic/imagepicker/PickerModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/reactnative/ivpusic/imagepicker/PickerModule.java b/android/src/main/java/com/reactnative/ivpusic/imagepicker/PickerModule.java index ce1f7bb..991ed48 100644 --- a/android/src/main/java/com/reactnative/ivpusic/imagepicker/PickerModule.java +++ b/android/src/main/java/com/reactnative/ivpusic/imagepicker/PickerModule.java @@ -547,7 +547,7 @@ class PickerModule extends ReactContextBaseJavaModule implements ActivityEventLi int statusBarColor = Color.parseColor(cropperStatusBarColor); options.setToolbarColor(toolbarColor); options.setStatusBarColor(statusBarColor); - if (activeWidgetColor.equals(DEFAULT_TINT)) { + if (activeWidgetColor == Color.parseColor(DEFAULT_TINT)) { /* Default tint is grey => use a more flashy color that stands out more as the call to action Here we use 'Light Blue 500' from https://material.google.com/style/color.html#color-color-palette