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:
parent
70b8119365
commit
46deaf25e7
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user