From 563c3fc796915232306b34b816d0bd27d7508d14 Mon Sep 17 00:00:00 2001 From: jacques Date: Sun, 16 Jul 2023 00:12:36 +0200 Subject: [PATCH] Change custom_dialog_one_button_layout --- app/src/main/java/net/foucry/pilldroid/DrugListActivity.java | 5 ++--- app/src/main/java/net/foucry/pilldroid/WelcomeActivity.java | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java index 996c42d..1b9d66b 100644 --- a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java +++ b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java @@ -58,7 +58,6 @@ import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; import java.util.Locale; -import java.util.Objects; /** * An activity representing a list of Drugs is activity @@ -336,7 +335,7 @@ public class DrugListActivity extends AppCompatActivity { * show keyboardInput dialog */ protected void showInputDialog() { - // get prompts.xml view + // gt prompts.xml view LayoutInflater layoutInflater = LayoutInflater.from(DrugListActivity.this); View promptView = layoutInflater.inflate(R.layout.input_dialog, null); AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(DrugListActivity.this); @@ -385,7 +384,7 @@ public class DrugListActivity extends AppCompatActivity { final Dialog dlg = new Dialog(this); dlg.requestWindowFeature(Window.FEATURE_NO_TITLE); dlg.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT)); - dlg.setContentView(R.layout.custodialoglayout); + dlg.setContentView(R.layout.custom_dialog_layout_one_button); dlg.setCancelable(false); TextView msg = dlg.findViewById(R.id.msg); String msgString; diff --git a/app/src/main/java/net/foucry/pilldroid/WelcomeActivity.java b/app/src/main/java/net/foucry/pilldroid/WelcomeActivity.java index c50a1cd..7319c4b 100644 --- a/app/src/main/java/net/foucry/pilldroid/WelcomeActivity.java +++ b/app/src/main/java/net/foucry/pilldroid/WelcomeActivity.java @@ -139,7 +139,7 @@ public class WelcomeActivity extends AppCompatActivity { final Dialog dlg = new Dialog(this); dlg.requestWindowFeature(Window.FEATURE_NO_TITLE); dlg.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT)); - dlg.setContentView(R.layout.custodialoglayout); + dlg.setContentView(R.layout.custom_dialog_layout_one_button); dlg.setCancelable(false); TextView msg = dlg.findViewById(R.id.msg); String msgString;