Skip to content

Commit

Permalink
update UI strings about SAF
Browse files Browse the repository at this point in the history
  • Loading branch information
lmagyar committed May 27, 2024
1 parent e163800 commit f468299
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions primitiveFTPd/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,11 @@
<string name="storageTypePlain">Plain old filesystem</string>
<string name="storageTypePlainV2">Plain old filesystem\nGot read-only access? See our <a href="https://www.github.com/wolpi/prim-ftpd/">GitHub page</a>.</string>
<string name="storageTypeRoot">Super user (device must be rooted)</string>
<string name="storageTypeSaf">"Android Storage Access Framework (SAF)
\n(e.g. for card)"</string>
<string name="storageTypeSaf">"Android Storage Access Framework (SAF)\n(e.g. for external SD-card)"</string>
<string name="storageTypeRoSaf">Read only SAF (faster !)</string>
<string name="storageTypeVirtual">Virtual Folders (provides all Storage Types)</string>
<string name="safExplainHeading">How SAF works</string>
<string name="safExplain">Android will ask you to choose a directory. That will be available via server(s). From time to time permission might be revoked and you have to re-select.</string>
<string name="safExplain">Android will ask you to choose a directory. That will be available via server(s). Permission gets revoked and you have to re-select regularly? See our <a href="https://www.github.com/wolpi/prim-ftpd/">GitHub page</a>.</string>
<string name="selectedSafUri">Selected SAF URI:</string>
<string name="startServerAndExit">start server only</string>
<string name="startServerAndUi">start with server</string>
Expand Down
1 change: 1 addition & 0 deletions primitiveFTPd/src/org/primftpd/ui/PftpdFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,

// make links clickable
((TextView)view.findViewById(R.id.radioStoragePlain)).setMovementMethod(LinkMovementMethod.getInstance());
((TextView)view.findViewById(R.id.safExplain)).setMovementMethod(LinkMovementMethod.getInstance());

// create sample authorized_keys files
new SampleAuthKeysFileCreator().createSampleAuthorizedKeysFiles(getContext());
Expand Down

0 comments on commit f468299

Please sign in to comment.