Skip to content

Commit

Permalink
fix: Resolve Attribute issue causing Android Build to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
lil-sahil authored Aug 31, 2024
1 parent 9a76f5a commit 4c1e053
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 4c1e053

Please sign in to comment.