1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-23 16:40:32 +00:00

Use Integer value directly for formatted string

a
This commit is contained in:
TobiGr 2020-01-13 20:25:32 +01:00
parent 2c8222fd55
commit 3d93ecd6ec
2 changed files with 2 additions and 2 deletions

View File

@ -580,7 +580,7 @@ public class MissionAdapter extends Adapter<ViewHolder> implements Handler.Callb
} }
applyChanges(); applyChanges();
String msg = String.format(mContext.getString(R.string.deleted_downloads), String.valueOf(mHidden.size())); String msg = String.format(mContext.getString(R.string.deleted_downloads), mHidden.size());
mSnackbar = Snackbar.make(mView, msg, Snackbar.LENGTH_INDEFINITE); mSnackbar = Snackbar.make(mView, msg, Snackbar.LENGTH_INDEFINITE);
mSnackbar.setAction(R.string.undo, s -> { mSnackbar.setAction(R.string.undo, s -> {
Iterator<Mission> i = mHidden.iterator(); Iterator<Mission> i = mHidden.iterator();

View File

@ -572,7 +572,7 @@
<string name="clear_download_history">Clear download history</string> <string name="clear_download_history">Clear download history</string>
<string name="confirm_prompt">Do you want to clear your download history or delete all downloaded files?</string> <string name="confirm_prompt">Do you want to clear your download history or delete all downloaded files?</string>
<string name="delete_downloaded_files">Delete downloaded files</string> <string name="delete_downloaded_files">Delete downloaded files</string>
<string name="deleted_downloads">Deleted %s downloads</string> <string name="deleted_downloads">Deleted %1$s downloads</string>
<string name="stop">Stop</string> <string name="stop">Stop</string>
<string name="max_retry_msg">Maximum retries</string> <string name="max_retry_msg">Maximum retries</string>
<string name="max_retry_desc">Maximum number of attempts before canceling the download</string> <string name="max_retry_desc">Maximum number of attempts before canceling the download</string>