[Android] AudioPlaylistView: code cosmetics
Jean-Baptiste Kempf
git at videolan.org
Sat May 23 20:19:59 CEST 2015
vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat May 23 19:16:51 2015 +0200| [6b2adb7dfbe91d0c7669fe1851f8d04efc72b232] | committer: Jean-Baptiste Kempf
AudioPlaylistView: code cosmetics
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=6b2adb7dfbe91d0c7669fe1851f8d04efc72b232
---
.../src/org/videolan/vlc/gui/audio/AudioPlaylistView.java | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlaylistView.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlaylistView.java
index d44befd..c288165 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlaylistView.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlaylistView.java
@@ -23,6 +23,7 @@ package org.videolan.vlc.gui.audio;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Rect;
+import android.support.annotation.NonNull;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.MotionEvent;
@@ -68,7 +69,7 @@ public class AudioPlaylistView extends ListView {
}
@Override
- public boolean onInterceptTouchEvent(MotionEvent event)
+ public boolean onInterceptTouchEvent(@NonNull MotionEvent event)
{
switch (event.getAction())
{
@@ -90,7 +91,7 @@ public class AudioPlaylistView extends ListView {
}
@Override
- public boolean onTouchEvent(MotionEvent event)
+ public boolean onTouchEvent(@NonNull MotionEvent event)
{
boolean handleEvent = false;
@@ -122,7 +123,7 @@ public class AudioPlaylistView extends ListView {
}
@Override
- protected void dispatchDraw (Canvas canvas) {
+ protected void dispatchDraw (@NonNull Canvas canvas) {
super.dispatchDraw(canvas);
if (mIsDragging) {
@@ -202,15 +203,15 @@ public class AudioPlaylistView extends ListView {
}
public interface OnItemDraggedListener {
- public void onItemDragged(int positionStart, int positionEnd);
- };
+ void onItemDragged(int positionStart, int positionEnd);
+ }
public void setOnItemDraggedListener(OnItemDraggedListener l) {
mOnItemDraggedListener = l;
}
public interface OnItemRemovedListener {
- public void onItemRemoved(int position);
+ void onItemRemoved(int position);
}
public void setOnItemRemovedListener(OnItemRemovedListener l) {
More information about the Android
mailing list