capacitor-extended-dialog 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -237,7 +237,8 @@ public class SheetBottomDialogFragment extends BottomSheetDialogFragment {
237
237
  } else {
238
238
  confirmBtn.setBackgroundTintList(ColorStateList.valueOf(primaryColor));
239
239
  }
240
- confirmBtn.setTextColor(ColorStateList.valueOf(0xFFFFFFFF));
240
+ int onPrimaryColor = MaterialColors.getColor(ctx, com.google.android.material.R.attr.colorOnPrimary, 0xFFFFFFFF);
241
+ confirmBtn.setTextColor(ColorStateList.valueOf(onPrimaryColor));
241
242
  confirmBtn.setCornerRadius((int) (24 * density));
242
243
  confirmBtn.setMinHeight(buttonHeight);
243
244
  confirmBtn.setPadding(buttonHorizontalPadding, 0, buttonHorizontalPadding, 0);
@@ -364,6 +365,10 @@ public class SheetBottomDialogFragment extends BottomSheetDialogFragment {
364
365
  if (styleOptions.getMessageFontSize() != null) {
365
366
  rowValue.setTextSize(TypedValue.COMPLEX_UNIT_SP, styleOptions.getMessageFontSize());
366
367
  }
368
+ rowValue.setEllipsize(android.text.TextUtils.TruncateAt.END);
369
+ rowValue.setMaxLines(2);
370
+ LinearLayout.LayoutParams valueParams = new LinearLayout.LayoutParams(0, LinearLayout.LayoutParams.WRAP_CONTENT, 1f);
371
+ rowValue.setLayoutParams(valueParams);
367
372
  rowLayout.addView(rowValue);
368
373
  }
369
374
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capacitor-extended-dialog",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Show native dialogs and sheets in Capacitor with Material 3 and Liquid Glass UI",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",