mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-08 10:08:51 -06:00
Merge pull request #472 from chennemann/feat/create-habit-with-long-description
fix: habits with long description could not be saved
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
|
||||
package org.isoron.uhabits.activities.habits.edit;
|
||||
|
||||
import android.app.Dialog;
|
||||
import android.content.*;
|
||||
import android.os.*;
|
||||
import android.support.annotation.*;
|
||||
@@ -117,6 +118,17 @@ public class EditHabitDialog extends AppCompatDialogFragment
|
||||
return view;
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
public Dialog onCreateDialog(Bundle savedInstanceState) {
|
||||
final Dialog dialog = super.onCreateDialog(savedInstanceState);
|
||||
final Window window = dialog.getWindow();
|
||||
if (window != null) {
|
||||
window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
|
||||
}
|
||||
return dialog;
|
||||
}
|
||||
|
||||
protected int getTitle()
|
||||
{
|
||||
if (originalHabit != null) return R.string.edit_habit;
|
||||
|
||||
Reference in New Issue
Block a user