Skip to content

Commit db9f20a

Browse files
authored
Merge pull request #4961 from TeamNewPipe/lint
Fix some Lint errors
2 parents 5f9e6b5 + 7a8dab2 commit db9f20a

18 files changed

Lines changed: 1048 additions & 1048 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
@@ -51,10 +51,10 @@ private CheckForNewAppVersion() { }
5151
private static final String NEWPIPE_API_URL = "https://newpipe.schabi.org/api/data.json";
5252

5353
/**
54-
* Method to get the apk's SHA1 key. See https://stackoverflow.com/questions/9293019/#22506133.
54+
* Method to get the APK's SHA1 key. See https://stackoverflow.com/questions/9293019/#22506133.
5555
*
5656
* @param application The application
57-
* @return String with the apk's SHA1 fingeprint in hexadecimal
57+
* @return String with the APK's SHA1 fingerprint in hexadecimal
5858
*/
5959
@NonNull
6060
private static String getCertificateSHA1Fingerprint(@NonNull final Application application) {

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
@@ -684,7 +684,7 @@ public void onShuffleClicked() {
684684

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

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
}

0 commit comments

Comments
 (0)