Fix more warnings
This commit is contained in:
parent
b559f6420e
commit
3a05f30907
|
@ -22,11 +22,10 @@ val CLIENT_VERSION = SubsonicAPIVersions.V1_16_0
|
|||
const val CLIENT_ID = "test-client"
|
||||
|
||||
val dateFormat by lazy(
|
||||
LazyThreadSafetyMode.NONE,
|
||||
{
|
||||
SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ", Locale.US)
|
||||
}
|
||||
)
|
||||
LazyThreadSafetyMode.NONE
|
||||
) {
|
||||
SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ", Locale.US)
|
||||
}
|
||||
|
||||
fun MockWebServerRule.enqueueResponse(resourceName: String) {
|
||||
mockWebServer.enqueueResponse(resourceName)
|
||||
|
|
|
@ -47,7 +47,7 @@ android {
|
|||
|
||||
lintOptions {
|
||||
baselineFile file("lint-baseline.xml")
|
||||
warning 'MissingTranslation'
|
||||
ignore 'MissingTranslation'
|
||||
warning 'ImpliedQuantity'
|
||||
abortOnError true
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
</p>
|
||||
|
||||
<p>
|
||||
Par défaut, cette application n'est pas configurée</b>. Après avoir configuré votre
|
||||
Par défaut, cette application n'est pas configurée. Après avoir configuré votre
|
||||
serveur personnel, veuillez accéder aux <b>Paramètres</b> et modifier la configuration afin de vous connecter à votre propre ordinateur ou vos appareils mobiles.
|
||||
</p>
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ import org.moire.ultrasonic.R;
|
|||
import org.moire.ultrasonic.util.Util;
|
||||
|
||||
/**
|
||||
* Displays online help and about information in a webWiew
|
||||
* Displays online help and about information in a WebView
|
||||
*/
|
||||
public class AboutFragment extends Fragment {
|
||||
|
||||
|
|
|
@ -18,8 +18,6 @@
|
|||
*/
|
||||
package org.moire.ultrasonic.service;
|
||||
|
||||
import org.moire.ultrasonic.audiofx.EqualizerController;
|
||||
import org.moire.ultrasonic.audiofx.VisualizerController;
|
||||
import org.moire.ultrasonic.domain.MusicDirectory.Entry;
|
||||
import org.moire.ultrasonic.domain.PlayerState;
|
||||
import org.moire.ultrasonic.domain.RepeatMode;
|
||||
|
|
|
@ -24,11 +24,6 @@ import kotlin.Lazy;
|
|||
|
||||
import static org.koin.java.KoinJavaComponent.inject;
|
||||
|
||||
/**
|
||||
* @author Sindre Mehus
|
||||
* @version $Id$
|
||||
*/
|
||||
|
||||
/**
|
||||
* Responsible for cleaning up files from the offline download cache on the filesystem
|
||||
*/
|
||||
|
@ -207,17 +202,8 @@ public class CacheCleaner
|
|||
@Override
|
||||
public int compare(File a, File b)
|
||||
{
|
||||
if (a.lastModified() < b.lastModified())
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
return Long.compare(a.lastModified(), b.lastModified());
|
||||
|
||||
if (a.lastModified() > b.lastModified())
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ public class EntryByDiscAndTrackComparator implements Comparator<MusicDirectory.
|
|||
|
||||
private static int compare(long a, long b)
|
||||
{
|
||||
return a < b ? -1 : a > b ? 1 : 0;
|
||||
return Long.compare(a, b);
|
||||
}
|
||||
|
||||
private static int compare(String a, String b)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/***
|
||||
/**
|
||||
Copyright (c) 2008-2009 CommonsWare, LLC
|
||||
Portions (c) 2009 Google, Inc.
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/***
|
||||
/**
|
||||
Copyright (c) 2008-2009 CommonsWare, LLC
|
||||
Portions (c) 2009 Google, Inc.
|
||||
|
||||
|
|
|
@ -68,8 +68,8 @@ public class ArtistAdapter extends ArrayAdapter<Artist> implements SectionIndexe
|
|||
}
|
||||
}
|
||||
|
||||
sections = sectionSet.toArray(new Object[sectionSet.size()]);
|
||||
positions = positionList.toArray(new Integer[positionList.size()]);
|
||||
sections = sectionSet.toArray(new Object[0]);
|
||||
positions = positionList.toArray(new Integer[0]);
|
||||
}
|
||||
|
||||
@NonNull
|
||||
|
|
|
@ -4,7 +4,6 @@ import android.content.Context;
|
|||
import android.util.AttributeSet;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.widget.ImageView;
|
||||
|
||||
import androidx.appcompat.widget.AppCompatImageView;
|
||||
|
||||
|
|
|
@ -66,8 +66,8 @@ public class GenreAdapter extends ArrayAdapter<Genre> implements SectionIndexer
|
|||
}
|
||||
}
|
||||
|
||||
sections = sectionSet.toArray(new Object[sectionSet.size()]);
|
||||
positions = positionList.toArray(new Integer[positionList.size()]);
|
||||
sections = sectionSet.toArray(new Object[0]);
|
||||
positions = positionList.toArray(new Integer[0]);
|
||||
}
|
||||
|
||||
@NonNull
|
||||
|
|
|
@ -32,7 +32,7 @@ public class PodcastsChannelsAdapter extends ArrayAdapter<PodcastsChannel> {
|
|||
PodcastsChannel entry = getItem(position);
|
||||
|
||||
TextView view;
|
||||
if (convertView != null && convertView instanceof PlaylistView) {
|
||||
if (convertView instanceof PlaylistView) {
|
||||
view = (TextView) convertView;
|
||||
} else {
|
||||
view = (TextView) layoutInflater
|
||||
|
|
|
@ -28,7 +28,7 @@ public class SongListAdapter extends ArrayAdapter<DownloadFile>
|
|||
|
||||
SongView view;
|
||||
|
||||
if (convertView != null && convertView instanceof SongView)
|
||||
if (convertView instanceof SongView)
|
||||
{
|
||||
SongView currentView = (SongView) convertView;
|
||||
if (currentView.getEntry().equals(entry))
|
||||
|
|
Loading…
Reference in New Issue