Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d1132f9c authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Gerrit Code Review
Browse files

Merge "MiniThumbFile: Fix image/bitmap retrieval" into cm-10.2

parents 353c0856 dac68b18
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -394,7 +394,11 @@ public class MiniThumbFile {
        RandomAccessFile r = miniThumbDataFile();
        if (r == null) return null;

        long pos = id * BYTES_PER_MINTHUMB;
        long pos = getIndex(id, false);
        if(pos < 0) return null;

        pos *= BYTES_PER_MINTHUMB;

        FileLock lock = null;
        try {
            mBuffer.clear();