Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit a48c94e

Browse files
committed
Fix minor bug, which allowed to insert multi-line texts in the name of a new file
1 parent 358905a commit a48c94e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

library/res/layout/daidalos_file_chooser.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<ScrollView
1111
android:id="@+id/scrollView1"
1212
android:layout_width="match_parent"
13-
android:layout_height="wrap_content"
13+
android:layout_height="0dp"
1414
android:layout_weight="1" >
1515

1616
<LinearLayout

library/src/ar/com/daidalos/afiledialog/FileChooserCore.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ public void onClick(View v) {
168168

169169
// Set an EditText view to get the file's name.
170170
final EditText input = new EditText(context);
171+
input.setSingleLine();
171172
alert.setView(input);
172173

173174
// Set the 'ok' and 'cancel' buttons.

0 commit comments

Comments
 (0)