crashfix: correctly check sort mode bounds

A sort mode of -6 means '6 reversed', so we must check if '6' is in-bounds (instead of -6)
This commit is contained in:
Adrian Ulrich 2016-12-26 21:06:05 +01:00
parent 70b8119365
commit 46deaf25e7

View File

@ -568,7 +568,7 @@ public class MediaAdapter
*/
public void setSortMode(int i)
{
mSortMode = (i < mSortEntries.length ? i : 0);
mSortMode = (Math.abs(i) < mSortEntries.length ? i : 0);
}
/**