From 5edc7f5f2337f742134eee4c1aae550c00ca75d8 Mon Sep 17 00:00:00 2001 From: jacques Date: Sun, 17 Sep 2023 20:21:10 +0200 Subject: [PATCH] optimize --- app/src/main/java/net/foucry/pilldroid/DrugListActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java index 43be99d..57cfe8b 100644 --- a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java +++ b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java @@ -349,7 +349,7 @@ public class DrugListActivity extends AppCompatActivity { MaterialButton ok = dialog.findViewById(R.id.agreed); MaterialButton cancel = dialog.findViewById(R.id.notagreed); ok.setEnabled(false); - ok.setBackground(getDrawable(R.drawable.rounded_btn_disabled)); + ok.setBackground(ContextCompat.getDrawable(this, R.drawable.rounded_btn_disabled)); //MaterialTextView title = dialog.findViewById(R.id.title); final EditText editText= dialog.findViewById(R.id.editcip13); String cip13 = String.valueOf(editText.getText());