Make EhConfig thread safe

This commit is contained in:
seven332 committed 2016-03-19 01:37:35 +08:00
1 parent 9a5f6ccb74
commit ec2cc5b13a
1 file changed
+2 -2
@@ -618,7 +618,7 @@ public class EhConfig implements Cloneable {
}
}
public void setDirty() {
public synchronized void setDirty() {
mDirty = true;
}
@@ -650,7 +650,7 @@ public class EhConfig implements Cloneable {
KEY_MULTI_PAGE_THUMB + "_" + multiPageThumb;
}
public String uconfig() {
public synchronized String uconfig() {
if (mDirty) {
mDirty = false;
updateUconfig();