Merge pull request #3265 from ByteHamster/storage-label
Added total space to storage select dialog
This commit is contained in:
commit
c8fc1f90e0
|
@ -49,9 +49,10 @@ public class DataFolderAdapter extends RecyclerView.Adapter<DataFolderAdapter.Vi
|
|||
public void onBindViewHolder(@NonNull ViewHolder holder, int position) {
|
||||
StoragePath storagePath = entries.get(position);
|
||||
String freeSpace = Converter.byteToString(storagePath.getAvailableSpace());
|
||||
String totalSpace = Converter.byteToString(storagePath.getTotalSpace());
|
||||
|
||||
holder.path.setText(storagePath.getShortPath());
|
||||
holder.size.setText(String.format(freeSpaceString, freeSpace));
|
||||
holder.size.setText(String.format(freeSpaceString, freeSpace, totalSpace));
|
||||
holder.progressBar.setProgress(storagePath.getUsagePercentage());
|
||||
holder.root.setOnClickListener((View v) -> selectAndDismiss(storagePath));
|
||||
holder.radioButton.setOnClickListener((View v) -> selectAndDismiss(storagePath));
|
||||
|
|
|
@ -650,7 +650,7 @@
|
|||
<string name="choose_data_directory">Choose Data Folder</string>
|
||||
<string name="choose_data_directory_message">Please choose the base of your data folder. AntennaPod will create the appropriate sub-directories.</string>
|
||||
<string name="choose_data_directory_permission_rationale">Access to external storage is required to change the data folder</string>
|
||||
<string name="choose_data_directory_available_space">%1$s free</string>
|
||||
<string name="choose_data_directory_available_space">%1$s of %2$s free</string>
|
||||
<string name="create_folder_msg">Create new folder with name "%1$s"?</string>
|
||||
<string name="create_folder_success">Created new folder</string>
|
||||
<string name="create_folder_error_no_write_access">Cannot write to this folder</string>
|
||||
|
|
Loading…
Reference in New Issue