Skip to content

Commit

Permalink
Fix resolveAttribute issue in DatePickerModuleImpl.java. Updated the …
Browse files Browse the repository at this point in the history
…line resolving the 'dialogPreferredPadding' attribute to include the 'android' prefix. This change corrects an error where the attribute could not be found, causing the build to fail on Android.
  • Loading branch information
lil-sahil committed Aug 31, 2024
1 parent 9a76f5a commit 4076cca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4076cca

Please sign in to comment.