File tree Expand file tree Collapse file tree
src/main/java/io/split/android/client/storage Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,14 +79,15 @@ private void updateRuleBasedSegment(RuleBasedSegmentDao ruleBasedSegmentDao) {
7979 }
8080
8181 for (RuleBasedSegmentEntity item : items ) {
82- String fromName = mFromCipher .decrypt (item .getName ());
82+ String name = item .getName ();
83+ String fromName = mFromCipher .decrypt (name );
8384 String fromBody = mFromCipher .decrypt (item .getBody ());
8485
8586 String toName = mToCipher .encrypt (fromName );
8687 String toBody = mToCipher .encrypt (fromBody );
8788
8889 if (toName != null && toBody != null ) {
89- ruleBasedSegmentDao .update (fromName , toName , toBody );
90+ ruleBasedSegmentDao .update (name , toName , toBody );
9091 }
9192 }
9293 }
Original file line number Diff line number Diff line change 1111import androidx .annotation .Nullable ;
1212import androidx .annotation .VisibleForTesting ;
1313
14+ import com .google .gson .reflect .TypeToken ;
15+
16+ import java .lang .reflect .Type ;
1417import java .util .ArrayList ;
1518import java .util .List ;
1619import java .util .Map ;
1720import java .util .Set ;
21+ import java .util .concurrent .ConcurrentHashMap ;
1822
19- import io .split .android .client .SplitFactoryImpl ;
2023import io .split .android .client .dtos .Split ;
2124import io .split .android .client .dtos .Status ;
2225import io .split .android .client .service .executor .parallel .SplitParallelTaskExecutorFactory ;
2831import io .split .android .client .utils .Json ;
2932import io .split .android .client .utils .logger .Logger ;
3033
31- import com .google .gson .reflect .TypeToken ;
32- import java .lang .reflect .Type ;
33- import java .util .concurrent .ConcurrentHashMap ;
34-
3534public class SqLitePersistentSplitsStorage implements PersistentSplitsStorage {
3635
3736 private static final int SQL_PARAM_BIND_SIZE = 20 ;
You can’t perform that action at this time.
0 commit comments