mirror of
https://github.com/TeamAmaze/AmazeFileManager.git
synced 2026-10-20 07:21:41 +08:00
use string with placeholders
This commit is contained in:
@@ -1074,9 +1074,7 @@ public class Drawer implements NavigationView.OnNavigationItemSelectedListener {
|
||||
|
||||
private SpannableString getSpannableText(String text, String freeSpace, String totalSpace) {
|
||||
|
||||
String s =
|
||||
String.format(
|
||||
"%s\n%s %s %s", text, freeSpace, mainActivity.getString(R.string.free_of), totalSpace);
|
||||
String s = mainActivity.getString(R.string.free_of, text, freeSpace, totalSpace);
|
||||
|
||||
SpannableString spannableString = new SpannableString(s);
|
||||
|
||||
|
||||
@@ -789,6 +789,6 @@ You only need to do this once, until the next time you select a new location for
|
||||
<string name="protocol_ftp" translatable="false">FTP</string>
|
||||
<string name="protocol_ftps">Secure FTP</string>
|
||||
<string name="unavailable">Unavailable</string>
|
||||
<string name="free_of">"free of</string>
|
||||
<string name="free_of">"%s\n%s free of %s</string>
|
||||
</resources>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user