Loading src/com/android/documentsui/dirlist/RenameDocumentFragment.java +1 −1 Original line number Diff line number Diff line Loading @@ -170,7 +170,7 @@ public class RenameDocumentFragment extends DialogFragment { */ private void selectFileName(EditText editText) { String text = editText.getText().toString(); int separatorIndex = text.indexOf("."); int separatorIndex = text.lastIndexOf("."); editText.setSelection(0, (separatorIndex == -1 || mDocument.isDirectory()) ? text.length() : separatorIndex); } Loading Loading
src/com/android/documentsui/dirlist/RenameDocumentFragment.java +1 −1 Original line number Diff line number Diff line Loading @@ -170,7 +170,7 @@ public class RenameDocumentFragment extends DialogFragment { */ private void selectFileName(EditText editText) { String text = editText.getText().toString(); int separatorIndex = text.indexOf("."); int separatorIndex = text.lastIndexOf("."); editText.setSelection(0, (separatorIndex == -1 || mDocument.isDirectory()) ? text.length() : separatorIndex); } Loading