NewInsulinDialog: fix botched notes field reference.

This commit is contained in:
Johannes Mockenhaupt 2018-04-16 01:38:56 +02:00
parent 58aa4f1323
commit 0ef8af262f
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -142,7 +142,7 @@ public class NewInsulinDialog extends DialogFragment implements OnClickListener
plus3Button.setOnClickListener(this);
plus3Button.setText(toSignedString(SP.getDouble(MainApp.gs(R.string.key_insulin_button_increment_3), PLUS3_DEFAULT)));
LinearLayout notesLayout = view.findViewById(R.id.newcarbs_notes_layout);
LinearLayout notesLayout = view.findViewById(R.id.newinsulin_notes_layout);
notesLayout.setVisibility(SP.getBoolean(R.string.key_show_notes_entry_dialogs, false) ? View.VISIBLE : View.GONE);
notesEdit = view.findViewById(R.id.newcarbs_notes);