@@ -223,7 +223,7 @@ public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,
223
223
him .bd = ((SemiElementContainer ) him .bd ).convert ();
224
224
position = cp .np .getValue ();
225
225
if (position != him .position ) him .parent .putChild (him .parent .removeChild (him .bd ),
226
- him .bd , position - 1 );
226
+ him .bd , position - 1 );
227
227
CurrentData .save (backLog .path );
228
228
} else ((MainChapter ) him .bd ).save ();
229
229
VS .contentAdapter .selected = -1 ;
@@ -830,11 +830,10 @@ public View onInclude(LayoutInflater li, CreatorPopup cp) {
830
830
activity .getString (R .string .action_chooser_file )), WORD_READ );
831
831
break ;
832
832
case R .id .more_export_word :
833
- i = new Intent (Intent .ACTION_OPEN_DOCUMENT );
834
- i .setType ( "*/* " );
833
+ i = new Intent (Intent .ACTION_CREATE_DOCUMENT ). setType ( "text/plain" );
834
+ i .putExtra ( Intent . EXTRA_TITLE , backLog . path . get (- 1 ). getName () + ".txt " );
835
835
i .addCategory (Intent .CATEGORY_OPENABLE );
836
- startActivityForResult (Intent .createChooser (i ,
837
- activity .getString (R .string .action_chooser_file )), WORD_WRITE );
836
+ startActivityForResult (i , WORD_WRITE );
838
837
break ;
839
838
case R .id .more_import_mch :
840
839
SelectDirActivity .importing = true ;
@@ -911,6 +910,7 @@ public void onActivityResult(int requestCode, int resultCode, Intent data) {
911
910
}
912
911
break ;
913
912
case WORD_WRITE :
913
+ System .out .println (data .getData ());
914
914
new SimpleWriter (new UriPath (data .getData ()), new Container []{
915
915
(Container ) backLog .path .get (-1 ), (Container ) backLog .path .get (-2 )});
916
916
break ;
0 commit comments