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

Commit f0ea8273 authored by Moez Bhatti's avatar Moez Bhatti
Browse files

Merge pull request #428 from...

Merge pull request #428 from DevFactory/release/class-variable-fields-should-not-have-public-accessibility-fix-1

squid:ClassVariableVisibilityCheck - Class variable fields should not have public accessibility
parents c399cf87 ce9be303
Loading
Loading
Loading
Loading
+27 −3
Original line number Diff line number Diff line
@@ -400,9 +400,33 @@ public class BlobCache implements Closeable {
    }

    public static class LookupRequest {
        public long key;        // input: the key to find
        public byte[] buffer;   // input/output: the buffer to store the blob
        public int length;      // output: the length of the blob
        private long key;        // input: the key to find
        private byte[] buffer;   // input/output: the buffer to store the blob
        private int length;      // output: the length of the blob

        public long getKey() {
            return key;
        }

        public void setKey(long key) {
            this.key = key;
        }

        public byte[] getBuffer() {
            return buffer;
        }

        public void setBuffer(byte[] buffer) {
            this.buffer = buffer;
        }

        public int getLength() {
            return length;
        }

        public void setLength(int length) {
            this.length = length;
        }
    }

    // This method is for one-off lookup. For repeated lookup, use the version
+18 −2
Original line number Diff line number Diff line
@@ -50,8 +50,24 @@ public class ImageCacheService {
            mData = data;
            mOffset = offset;
        }
        public byte[] mData;
        public int mOffset;
        private byte[] mData;
        private int mOffset;

        public byte[] getData() {
            return mData;
        }

        public void setData(byte[] mData) {
            this.mData = mData;
        }

        public int getOffset() {
            return mOffset;
        }

        public void setOffset(int mOffset) {
            this.mOffset = mOffset;
        }
    }

    public ImageData getImageData(String path, int type) {
+2 −2
Original line number Diff line number Diff line
@@ -322,8 +322,8 @@ public class ThumbnailManager extends BackgroundLoaderManager {
            if (data != null) {
                Options options = new Options();
                options.inPreferredConfig = Config.ARGB_8888;
                Bitmap bitmap = requestDecode(data.mData,
                        data.mOffset, data.mData.length - data.mOffset, options);
                Bitmap bitmap = requestDecode(data.getData(),
                        data.getOffset(), data.getData().length - data.getOffset(), options);
                if (bitmap == null) {
                    Log.w(TAG, "decode cached failed " + path);
                }