Skip to content

Commit 7a8dab2

Browse files
committed
Fix typos
1 parent 6f3dfad commit 7a8dab2

10 files changed

Lines changed: 16 additions & 16 deletions

File tree

app/src/main/java/org/schabi/newpipe/CheckForNewAppVersion.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ private CheckForNewAppVersion() { }
5353
private static final String NEWPIPE_API_URL = "https://newpipe.schabi.org/api/data.json";
5454

5555
/**
56-
* Method to get the apk's SHA1 key. See https://stackoverflow.com/questions/9293019/#22506133.
56+
* Method to get the APK's SHA1 key. See https://stackoverflow.com/questions/9293019/#22506133.
5757
*
5858
* @param application The application
59-
* @return String with the apk's SHA1 fingeprint in hexadecimal
59+
* @return String with the APK's SHA1 fingerprint in hexadecimal
6060
*/
6161
private static String getCertificateSHA1Fingerprint(@NonNull final Application application) {
6262
final PackageManager pm = application.getPackageManager();

app/src/main/java/org/schabi/newpipe/local/subscription/services/ImportExportEventListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public interface ImportExportEventListener {
99
void onSizeReceived(int size);
1010

1111
/**
12-
* Called everytime an item has been parsed/resolved.
12+
* Called every time an item has been parsed/resolved.
1313
*
1414
* @param itemName the name of the subscription item
1515
*/

app/src/main/java/org/schabi/newpipe/player/BasePlayer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ public void onShuffleClicked() {
685685

686686
public void onMuteUnmuteButtonClicked() {
687687
if (DEBUG) {
688-
Log.d(TAG, "onMuteUnmuteButtonClicled() called");
688+
Log.d(TAG, "onMuteUnmuteButtonClicked() called");
689689
}
690690
simpleExoPlayer.setVolume(isMuted() ? 1 : 0);
691691
}

app/src/main/java/org/schabi/newpipe/player/ServicePlayerActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ public void onProgressUpdate(final int currentProgress, final int duration,
618618
progressLiveSync.setClickable(!player.isLiveEdge());
619619
}
620620

621-
// this will make shure progressCurrentTime has the same width as progressEndTime
621+
// this will make sure progressCurrentTime has the same width as progressEndTime
622622
final ViewGroup.LayoutParams endTimeParams = progressEndTime.getLayoutParams();
623623
final ViewGroup.LayoutParams currentTimeParams = progressCurrentTime.getLayoutParams();
624624
currentTimeParams.width = progressEndTime.getWidth();

app/src/main/java/org/schabi/newpipe/player/helper/LoadController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ public LoadController() {
2626
}
2727

2828
private LoadController(final int initialPlaybackBufferMs,
29-
final int minimumPlaybackbufferMs,
29+
final int minimumPlaybackBufferMs,
3030
final int optimalPlaybackBufferMs) {
3131
this.initialPlaybackBufferUs = initialPlaybackBufferMs * 1000;
3232

3333
final DefaultLoadControl.Builder builder = new DefaultLoadControl.Builder();
34-
builder.setBufferDurationsMs(minimumPlaybackbufferMs, optimalPlaybackBufferMs,
34+
builder.setBufferDurationsMs(minimumPlaybackBufferMs, optimalPlaybackBufferMs,
3535
initialPlaybackBufferMs, initialPlaybackBufferMs);
3636
internalLoadControl = builder.createDefaultLoadControl();
3737
}

app/src/main/java/org/schabi/newpipe/player/playqueue/AbstractInfoPlayQueue.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ public void dispose() {
128128
fetchReactor = null;
129129
}
130130

131-
private static List<PlayQueueItem> extractListItems(final List<StreamInfoItem> infos) {
131+
private static List<PlayQueueItem> extractListItems(final List<StreamInfoItem> infoItems) {
132132
final List<PlayQueueItem> result = new ArrayList<>();
133-
for (final InfoItem stream : infos) {
133+
for (final InfoItem stream : infoItems) {
134134
if (stream instanceof StreamInfoItem) {
135135
result.add(new PlayQueueItem((StreamInfoItem) stream));
136136
}

app/src/main/java/org/schabi/newpipe/util/KioskTranslator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import org.schabi.newpipe.R;
66

77
/**
8-
* Created by Chrsitian Schabesberger on 28.09.17.
8+
* Created by Christian Schabesberger on 28.09.17.
99
* KioskTranslator.java is part of NewPipe.
1010
* <p>
1111
* NewPipe is free software: you can redistribute it and/or modify

app/src/main/java/org/schabi/newpipe/util/ListHelper.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ private static String computeDefaultResolution(final Context context, final int
141141
final SharedPreferences preferences
142142
= PreferenceManager.getDefaultSharedPreferences(context);
143143

144-
// Load the prefered resolution otherwise the best available
144+
// Load the preferred resolution otherwise the best available
145145
String resolution = preferences != null
146146
? preferences.getString(context.getString(key), context.getString(value))
147147
: context.getString(R.string.best_resolution_key);
@@ -161,7 +161,7 @@ private static String computeDefaultResolution(final Context context, final int
161161
*
162162
* @param defaultResolution the default resolution to look for
163163
* @param bestResolutionKey key of the best resolution
164-
* @param defaultFormat the default fomat to look for
164+
* @param defaultFormat the default format to look for
165165
* @param videoStreams list of the video streams to check
166166
* @return index of the default resolution&format
167167
*/
@@ -351,7 +351,7 @@ static int getMostCompactAudioIndex(@Nullable MediaFormat format,
351351
* @param targetResolution the resolution to look for
352352
* @param targetFormat the format to look for
353353
* @param videoStreams the available video streams
354-
* @return the index of the prefered video stream
354+
* @return the index of the preferred video stream
355355
*/
356356
static int getVideoStreamIndex(final String targetResolution, final MediaFormat targetFormat,
357357
final List<VideoStream> videoStreams) {
@@ -413,7 +413,7 @@ static int getVideoStreamIndex(final String targetResolution, final MediaFormat
413413
* @param context Android app context
414414
* @param defaultResolution the default resolution
415415
* @param videoStreams the list of video streams to check
416-
* @return the index of the prefered video stream
416+
* @return the index of the preferred video stream
417417
*/
418418
private static int getDefaultResolutionWithDefaultFormat(final Context context,
419419
final String defaultResolution,

app/src/main/java/us/shandian/giga/get/DownloadRunnableFallback.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* Single-threaded fallback mode
2222
*/
2323
public class DownloadRunnableFallback extends Thread {
24-
private static final String TAG = "DownloadRunnableFallbac";
24+
private static final String TAG = "DownloadRunnableFallback";
2525

2626
private final DownloadMission mMission;
2727

app/src/test/java/org/schabi/newpipe/util/ListHelperTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public void getHighestQualityAudioFormatPreferredAbsent() {
205205
assertEquals(MediaFormat.M4A, stream.getFormat());
206206

207207
// Adding a new format and bitrate. Adding another stream will have no impact since
208-
// it's not a prefered format.
208+
// it's not a preferred format.
209209
testList.add(new AudioStream("", MediaFormat.WEBMA, /**/ 192));
210210
stream = testList.get(ListHelper.getHighestQualityAudioIndex(MediaFormat.MP3, testList));
211211
assertEquals(192, stream.average_bitrate);

0 commit comments

Comments
 (0)