fix bad copy-n-paste fail :-/

This commit is contained in:
Adrian Ulrich 2017-11-29 20:21:25 +01:00
parent 953a30d7b5
commit e788e11e5c

View File

@ -259,7 +259,9 @@ public final class CoverView extends View implements Handler.Callback {
if (!Looper.getMainLooper().equals(Looper.myLooper())) {
throw new IllegalStateException("MSG_UI_LONG_CLICK must be run from the UI thread");
}
performLongClick();
if (scrollIsNotSignificant()) {
performLongClick();
}
break;
default:
throw new IllegalArgumentException("Unknown message received: "+message.what);