Some tweak in backupprefs

Fix issue in DrugListActivity
The backupprefs dialog is displayed but the button are not usable, except cancel
This commit is contained in:
jacques 2024-07-12 09:49:47 +02:00
parent 51d36dc297
commit b7e55fad28
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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"