Commit d8aebfd9 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Remove lint warnings for JNI callbacks

parent 47f9f65d
......@@ -317,46 +317,55 @@ public class Medialibrary {
return mw;
}
@SuppressWarnings("unused")
public void onMediaAdded(MediaWrapper[] mediaList) {
if (mediaAddedCb != null)
mediaAddedCb.onMediaAdded(mediaList);
}
@SuppressWarnings("unused")
public void onMediaUpdated(MediaWrapper[] mediaList) {
if (mediaUpdatedCb != null)
mediaUpdatedCb.onMediaUpdated(mediaList);
}
@SuppressWarnings("unused")
public void onMediaDeleted(long[] ids) {
for (long id : ids)
Log.d(TAG, "onMediaDeleted: "+id);
}
@SuppressWarnings("unused")
public void onArtistsAdded() {
if (mArtistsAddedCb != null)
mArtistsAddedCb.onArtistsAdded();
}
@SuppressWarnings("unused")
public void onArtistsModified() {
if (mArtistsModifiedCb != null)
mArtistsModifiedCb.onArtistsModified();
}
@SuppressWarnings("unused")
public void onAlbumsAdded() {
if (mAlbumsAddedCb != null)
mAlbumsAddedCb.onAlbumsAdded();
}
@SuppressWarnings("unused")
public void onAlbumsModified() {
if (mAlbumsModifiedCb != null)
mAlbumsModifiedCb.onAlbumsModified();
}
@SuppressWarnings("unused")
public void onArtistsDeleted(long[] ids) {
for (long id : ids)
Log.d(TAG, "onArtistsDeleted: "+id);
}
@SuppressWarnings("unused")
public void onAlbumsDeleted(long[] ids) {
for (long id : ids)
Log.d(TAG, "onAlbumsDeleted: "+id);
......@@ -415,6 +424,7 @@ public class Medialibrary {
LocalBroadcastManager.getInstance(sContext).sendBroadcast(new Intent(ACTION_IDLE).putExtra(STATE_IDLE, isIdle));
}
@SuppressWarnings("unused")
void onReloadStarted(String entryPoint) {
synchronized (devicesDiscoveryCbList) {
if (!devicesDiscoveryCbList.isEmpty())
......@@ -422,6 +432,8 @@ public class Medialibrary {
cb.onReloadStarted(entryPoint);
}
}
@SuppressWarnings("unused")
void onReloadCompleted(String entryPoint) {
synchronized (devicesDiscoveryCbList) {
if (!devicesDiscoveryCbList.isEmpty())
......@@ -430,6 +442,7 @@ public class Medialibrary {
}
}
@SuppressWarnings("unused")
void onEntryPointBanned(String entryPoint, boolean success) {
synchronized (entryPointsEventsCbList) {
if (!entryPointsEventsCbList.isEmpty())
......@@ -437,6 +450,8 @@ public class Medialibrary {
cb.onEntryPointBanned(entryPoint, success);
}
}
@SuppressWarnings("unused")
void onEntryPointUnbanned(String entryPoint, boolean success) {
synchronized (entryPointsEventsCbList) {
if (!entryPointsEventsCbList.isEmpty())
......@@ -444,6 +459,8 @@ public class Medialibrary {
cb.onEntryPointUnbanned(entryPoint, success);
}
}
@SuppressWarnings("unused")
void onEntryPointRemoved(String entryPoint, boolean success) {
synchronized (entryPointsEventsCbList) {
if (!entryPointsEventsCbList.isEmpty())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment