Skip to content

Commit 6eb50f6

Browse files
authored
Adding cache update if variants are changed (#337)
1 parent bec3bf8 commit 6eb50f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

AndroidSDKCore/src/main/java/com/leanplum/Leanplum.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -981,6 +981,7 @@ private static void applyContentInResponse(JSONObject response, boolean alwaysAp
981981
|| !messages.equals(VarCache.getMessageDiffs())
982982
|| !updateRules.equals(VarCache.getUpdateRuleDiffs())
983983
|| !eventRules.equals(VarCache.getEventRuleDiffs())
984+
|| !variants.equals(VarCache.variants())
984985
|| !regions.equals(VarCache.regions())) {
985986
VarCache.applyVariableDiffs(values, messages, updateRules,
986987
eventRules, regions, variants, variantDebugInfo);

0 commit comments

Comments
 (0)