mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-22 21:58:53 +01:00
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
This commit is contained in:
@@ -400,9 +400,33 @@ public class BlobCache implements Closeable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static class LookupRequest {
|
public static class LookupRequest {
|
||||||
public long key; // input: the key to find
|
private long key; // input: the key to find
|
||||||
public byte[] buffer; // input/output: the buffer to store the blob
|
private byte[] buffer; // input/output: the buffer to store the blob
|
||||||
public int length; // output: the length of 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
|
// This method is for one-off lookup. For repeated lookup, use the version
|
||||||
|
|||||||
@@ -50,8 +50,24 @@ public class ImageCacheService {
|
|||||||
mData = data;
|
mData = data;
|
||||||
mOffset = offset;
|
mOffset = offset;
|
||||||
}
|
}
|
||||||
public byte[] mData;
|
private byte[] mData;
|
||||||
public int mOffset;
|
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) {
|
public ImageData getImageData(String path, int type) {
|
||||||
|
|||||||
@@ -322,8 +322,8 @@ public class ThumbnailManager extends BackgroundLoaderManager {
|
|||||||
if (data != null) {
|
if (data != null) {
|
||||||
Options options = new Options();
|
Options options = new Options();
|
||||||
options.inPreferredConfig = Config.ARGB_8888;
|
options.inPreferredConfig = Config.ARGB_8888;
|
||||||
Bitmap bitmap = requestDecode(data.mData,
|
Bitmap bitmap = requestDecode(data.getData(),
|
||||||
data.mOffset, data.mData.length - data.mOffset, options);
|
data.getOffset(), data.getData().length - data.getOffset(), options);
|
||||||
if (bitmap == null) {
|
if (bitmap == null) {
|
||||||
Log.w(TAG, "decode cached failed " + path);
|
Log.w(TAG, "decode cached failed " + path);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user