|
|
@ -45,13 +45,9 @@ public class TaskRabbitNameControlSet extends PopupControlSet implements TaskRab
|
|
|
|
editText = (EditText) getView().findViewById(R.id.notes);
|
|
|
|
editText = (EditText) getView().findViewById(R.id.notes);
|
|
|
|
notesPreview = (TextView) getDisplayView().findViewById(R.id.display_row_edit);
|
|
|
|
notesPreview = (TextView) getDisplayView().findViewById(R.id.display_row_edit);
|
|
|
|
notesBody = (LinearLayout) getDisplayView().findViewById(R.id.notes_body);
|
|
|
|
notesBody = (LinearLayout) getDisplayView().findViewById(R.id.notes_body);
|
|
|
|
dialog.getWindow()
|
|
|
|
|
|
|
|
.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE | WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
|
|
|
|
|
|
|
|
displayText.setText(activity.getString(titleID));
|
|
|
|
displayText.setText(activity.getString(titleID));
|
|
|
|
editText.setMaxLines(Integer.MAX_VALUE);
|
|
|
|
editText.setMaxLines(Integer.MAX_VALUE);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pictureButton = (ImageButton) getDisplayView().findViewById(R.id.picture);
|
|
|
|
pictureButton = (ImageButton) getDisplayView().findViewById(R.id.picture);
|
|
|
|
if (pictureButton != null) {
|
|
|
|
if (pictureButton != null) {
|
|
|
|
|
|
|
|
|
|
|
@ -75,6 +71,13 @@ public class TaskRabbitNameControlSet extends PopupControlSet implements TaskRab
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
protected void additionalDialogSetup() {
|
|
|
|
|
|
|
|
dialog.getWindow()
|
|
|
|
|
|
|
|
.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE
|
|
|
|
|
|
|
|
| WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void saveToDatabase(JSONObject json, String key) throws JSONException {
|
|
|
|
public void saveToDatabase(JSONObject json, String key) throws JSONException {
|
|
|
|
json.put(key, editText.getText().toString());
|
|
|
|
json.put(key, editText.getText().toString());
|
|
|
|