@@ -146,11 +146,15 @@ public Type getType() {
146146 // now, we just had to make it more fucking complicated, didn't we?
147147 // we now have pref_background_update_check_excludes_version, which is a id:version stringset of versions the user may want to "skip"
148148 // oh, and because i hate myself, i made ^ at the beginning match that version and newer, and $ at the end match that version and older
149- Set <String > stringSet = MainApplication .getSharedPreferences ("mmm" ).getStringSet ("pref_background_update_check_excludes_version" , new HashSet <>());
149+ Set <String > stringSetT = MainApplication .getSharedPreferences ("mmm" ).getStringSet ("pref_background_update_check_excludes_version" , new HashSet <>());
150150 String version = "" ;
151- if (stringSet .contains (moduleInfo .id )) {
151+ Set <String > stringSet = stringSetT ;
152+ Timber .d (stringSet .toString ());
153+ if (stringSet .contains (this .moduleInfo .id )) {
152154 // get the one matching
153- version = stringSet .stream ().filter (s -> s .startsWith (moduleInfo .id )).findFirst ().orElse ("" );
155+ Timber .d ("found mod in ig ver" );
156+ version = stringSet .stream ().filter (s -> s .startsWith (this .moduleInfo .id )).findFirst ().orElse ("" );
157+ Timber .d ("igV:%s" , version );
154158 }
155159 String remoteVersionCode = String .valueOf (moduleInfo .updateVersionCode );
156160 if (repoModule != null ) {
@@ -164,19 +168,24 @@ public Type getType() {
164168 // now find out if user wants up to and including this version, or this version and newer
165169 // if it starts with ^, it's this version and newer, if it ends with $, it's this version and older
166170 if (version .startsWith ("^" )) {
171+ Timber .d ("igV start with" );
167172 // this version and newer
168173 if (wantsVersion <= remoteVersionCodeInt || wantsVersion <= localVersionCode ) {
169174 // if it is, we skip it
175+ Timber .d ("igu true" );
170176 ignoreUpdate = true ;
171177 }
172178 } else if (version .endsWith ("$" )) {
179+ Timber .d ("igV end with" );
173180 // this version and older
174181 if (wantsVersion >= remoteVersionCodeInt || wantsVersion >= localVersionCode ) {
175182 // if it is, we skip it
183+ Timber .d ("igu true" );
176184 ignoreUpdate = true ;
177185 }
178186 } else if (wantsVersion == remoteVersionCodeInt || wantsVersion == localVersionCode ) {
179187 // if it is, we skip it
188+ Timber .d ("igu true" );
180189 ignoreUpdate = true ;
181190 }
182191 }
0 commit comments