Browse Source

合代码冲突

research/11.0
neil 5 years ago
parent
commit
492375bbb9
  1. 9
      designer-base/src/main/java/com/fr/design/menu/SnapChatUpdateAction.java

9
designer-base/src/main/java/com/fr/design/menu/SnapChatUpdateAction.java

@ -32,7 +32,8 @@ public abstract class SnapChatUpdateAction extends UpdateAction implements SnapC
public boolean hasRead() { public boolean hasRead() {
String calcKey = calcKey(); String calcKey = calcKey();
return SnapChatConfig.getInstance().hasRead(calcKey); Boolean val = SnapChatConfig.getInstance().hasRead(calcKey);
return val == null ? defaultStatus() : val;
} }
@Override @Override
@ -42,6 +43,12 @@ public abstract class SnapChatUpdateAction extends UpdateAction implements SnapC
SnapChatConfig.getInstance().markRead(calcKey); SnapChatConfig.getInstance().markRead(calcKey);
} }
@Override
public boolean defaultStatus() {
return false;
}
@Override @Override
public SnapChatKey key() { public SnapChatKey key() {

Loading…
Cancel
Save