capacitor-extended-dialog 0.0.4 → 0.0.5

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.
@@ -297,8 +297,9 @@ public class FullScreenDialogFragment extends DialogFragment {
297
297
 
298
298
  // Cancel button (not shown for ALERT type)
299
299
  if (type != DialogType.ALERT) {
300
- MaterialButton cancelBtn = new MaterialButton(ctx, null,
301
- com.google.android.material.R.attr.borderlessButtonStyle);
300
+ MaterialButton cancelBtn = new MaterialButton(
301
+ new ContextThemeWrapper(ctx, com.google.android.material.R.style.Widget_Material3_Button_TextButton),
302
+ null, 0);
302
303
  cancelBtn.setText(cancelButton);
303
304
  cancelBtn.setOnClickListener((v) -> {
304
305
  handleCancel();
@@ -316,8 +317,9 @@ public class FullScreenDialogFragment extends DialogFragment {
316
317
  }
317
318
 
318
319
  // OK button
319
- okBtn = new MaterialButton(ctx, null,
320
- com.google.android.material.R.attr.borderlessButtonStyle);
320
+ okBtn = new MaterialButton(
321
+ new ContextThemeWrapper(ctx, com.google.android.material.R.style.Widget_Material3_Button_TextButton),
322
+ null, 0);
321
323
  okBtn.setText(okButton);
322
324
  okBtn.setOnClickListener((v) -> {
323
325
  handleConfirm(type);
@@ -250,8 +250,9 @@ public class SheetBottomDialogFragment extends BottomSheetDialogFragment {
250
250
  buttonContainer.addView(confirmBtn);
251
251
 
252
252
  // Cancel button
253
- MaterialButton cancelBtn = new MaterialButton(ctx, null,
254
- com.google.android.material.R.attr.borderlessButtonStyle);
253
+ MaterialButton cancelBtn = new MaterialButton(
254
+ new ContextThemeWrapper(ctx, com.google.android.material.R.style.Widget_Material3_Button_TextButton),
255
+ null, 0);
255
256
  cancelBtn.setText(cancelButton);
256
257
  cancelBtn.setOnClickListener(v -> {
257
258
  handleCancel();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capacitor-extended-dialog",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
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",