diff --git a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java index 8d2fce6..7b5a974 100644 --- a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java +++ b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java @@ -7,7 +7,6 @@ import android.annotation.SuppressLint; import android.app.Dialog; import android.app.NotificationManager; import android.content.Context; -import android.content.DialogInterface; import android.content.Intent; import android.content.pm.ApplicationInfo; import android.content.pm.PackageManager; @@ -338,7 +337,6 @@ public class DrugListActivity extends AppCompatActivity { */ protected void showInputDialog() { final Dialog dialog = new Dialog(this); - Window window = dialog.getWindow(); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); @@ -352,8 +350,7 @@ public class DrugListActivity extends AppCompatActivity { //TextView title = (TextView ) dialog.findViewById(R.id.title); final EditText editText=(EditText)dialog.findViewById(R.id.editcip13); String cip13 = String.valueOf(editText.getText()); - //title.setText(R.string.enter_cip_13); - //alert_title.setTextSize(20); + ok.setText(R.string.button_ok); cancel.setText(R.string.button_cancel); editText.addTextChangedListener(new TextWatcher() { @@ -401,7 +398,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.custome_dialog_layout_one_button); + 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 6348622..0d6505d 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.custome_dialog_layout_one_button); + 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/res/layout/custome_dialog_layout_one_button.xml b/app/src/main/res/layout/custom_dialog_layout_one_button.xml similarity index 100% rename from app/src/main/res/layout/custome_dialog_layout_one_button.xml rename to app/src/main/res/layout/custom_dialog_layout_one_button.xml