From b7e55fad285e8368a29ee639e96442eccb440a5b Mon Sep 17 00:00:00 2001 From: jacques Date: Fri, 12 Jul 2024 09:49:47 +0200 Subject: [PATCH] Some tweak in backupprefs Fix issue in DrugListActivity The backupprefs dialog is displayed but the button are not usable, except cancel --- app/src/main/java/net/foucry/pilldroid/DrugListActivity.java | 4 ++-- app/src/main/res/layout/backupprefs.xml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java index c9b577a..1c6e6c6 100644 --- a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java +++ b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java @@ -725,8 +725,8 @@ public class DrugListActivity extends AppCompatActivity { btn_export.setEnabled(true); btn_import.setEnabled(false); - Button ok = dlg.findViewById(R.id.ok_btn); - Button cancel = dlg.findViewById(R.id.cancel_btn); + Button ok = dlg.findViewById(R.id.agreed); + Button cancel = dlg.findViewById(R.id.notagreed); ok.setOnClickListener(v -> { dlg.cancel(); //TODO: manage the options diff --git a/app/src/main/res/layout/backupprefs.xml b/app/src/main/res/layout/backupprefs.xml index fb915a6..b9da7e0 100644 --- a/app/src/main/res/layout/backupprefs.xml +++ b/app/src/main/res/layout/backupprefs.xml @@ -12,6 +12,7 @@ android:layout_height="319dp" android:layout_marginStart="12dp" android:layout_marginEnd="12dp" + android:background="@color/white" app:cardCornerRadius="@dimen/btn_radius" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent"