From 4c1e053090c7a22aaeea831190c4d87d889fad2c Mon Sep 17 00:00:00 2001 From: Sahil <80865609+lil-sahil@users.noreply.github.com> Date: Sat, 31 Aug 2024 01:29:30 -0400 Subject: [PATCH] fix: Resolve Attribute issue causing Android Build to fail --- .../java/com/henninghall/date_picker/DatePickerModuleImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/henninghall/date_picker/DatePickerModuleImpl.java b/android/src/main/java/com/henninghall/date_picker/DatePickerModuleImpl.java index fbca7f91..b8a2a800 100644 --- a/android/src/main/java/com/henninghall/date_picker/DatePickerModuleImpl.java +++ b/android/src/main/java/com/henninghall/date_picker/DatePickerModuleImpl.java @@ -171,7 +171,7 @@ public AlertDialogBuilder setColoredTitle(ReadableMap props){ coloredTitle.setText(title); TypedValue typedValue = new TypedValue(); Resources.Theme theme = DatePickerPackage.context.getCurrentActivity().getTheme(); - theme.resolveAttribute(R.attr.dialogPreferredPadding, typedValue, true); + theme.resolveAttribute(android.R.attr.dialogPreferredPadding, typedValue, true); int paddingInPixels = TypedValue.complexToDimensionPixelSize(typedValue.data, DatePickerPackage.context.getResources().getDisplayMetrics()); coloredTitle.setPadding(paddingInPixels, paddingInPixels, paddingInPixels, 0); coloredTitle.setTextSize(20F);