mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-22 04:29:22 +01:00
Use more modern method (#40)
This commit is contained in:
parent
406bb37aa9
commit
381b937a01
1 changed files with 1 additions and 1 deletions
|
@ -349,7 +349,7 @@ public class DrugListActivity extends AppCompatActivity {
|
||||||
MaterialButton ok = dialog.findViewById(R.id.agreed);
|
MaterialButton ok = dialog.findViewById(R.id.agreed);
|
||||||
MaterialButton cancel = dialog.findViewById(R.id.notagreed);
|
MaterialButton cancel = dialog.findViewById(R.id.notagreed);
|
||||||
ok.setEnabled(false);
|
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);
|
//MaterialTextView title = dialog.findViewById(R.id.title);
|
||||||
final EditText editText= dialog.findViewById(R.id.editcip13);
|
final EditText editText= dialog.findViewById(R.id.editcip13);
|
||||||
String cip13 = String.valueOf(editText.getText());
|
String cip13 = String.valueOf(editText.getText());
|
||||||
|
|
Loading…
Reference in a new issue