Rename audio player tabs

This commit is contained in:
ByteHamster 2021-04-02 17:14:01 +02:00
parent 7b49cab684
commit 2df3cf9fe7
2 changed files with 6 additions and 6 deletions

View File

@ -66,10 +66,9 @@ public class AudioPlayerFragment extends Fragment implements
SeekBar.OnSeekBarChangeListener, Toolbar.OnMenuItemClickListener {
public static final String TAG = "AudioPlayerFragment";
private static final int POS_COVER = 0;
private static final int POS_DESCR = 1;
private static final int POS_SHOWNOTES = 1;
private static final int POS_CHAPTERS = 2;
private static final int NUM_CONTENT_FRAGMENTS = 3;
public static final String PREFS = "AudioPlayerFragmentPreferences";
private static final float EPSILON = 0.001f;
PlaybackSpeedIndicatorView butPlaybackSpeed;
@ -156,8 +155,8 @@ public class AudioPlayerFragment extends Fragment implements
case POS_COVER:
tab.setText(R.string.cover_label);
break;
case POS_DESCR:
tab.setText(R.string.description_label);
case POS_SHOWNOTES:
tab.setText(R.string.shownotes_label);
break;
case POS_CHAPTERS:
tab.setText(R.string.chapters_label);
@ -561,7 +560,7 @@ public class AudioPlayerFragment extends Fragment implements
switch (position) {
case POS_COVER:
return new CoverFragment();
case POS_DESCR:
case POS_SHOWNOTES:
return new ItemDescriptionFragment();
default:
case POS_CHAPTERS:

View File

@ -88,7 +88,7 @@
<string name="author_label">Author(s)</string>
<string name="language_label">Language</string>
<string name="url_label">URL</string>
<string name="cover_label">Picture</string>
<string name="cover_label">Cover</string>
<string name="error_label">Error</string>
<string name="error_msg_prefix">An error occurred:</string>
<string name="needs_storage_permission">Storage permission is needed for this operation</string>
@ -97,6 +97,7 @@
<string name="chapters_label">Chapters</string>
<string name="chapter_duration">Duration: %1$s</string>
<string name="description_label">Description</string>
<string name="shownotes_label">Shownotes</string>
<string name="episodes_suffix">\u0020episodes</string>
<string name="processing_label">Processing</string>
<string name="close_label">Close</string>