at com.baseband.client.feature.FeatureManager.get(FeatureManager.java:86) at com.baseband.client.feature.FeatureManager.<init>(FeatureManager.java:93)

This commit is contained in:
Jess H 2024-06-03 23:02:49 +01:00
parent 1ac147fabe
commit 36613e0c1f
Signed by: UnixSystemV
GPG key ID: 9B21C50B68D67F19
2 changed files with 3 additions and 5 deletions

View file

@ -60,7 +60,7 @@ public class BaseBand {
lock.waitHere(); lock.waitHere();
} }
for (Feature feature : FeatureManager.get().filteredFeatures) { for (Feature feature : FeatureManager.get().Features) {
feature.setEnabledSilent(false); feature.setEnabledSilent(false);
} }

View file

@ -87,12 +87,10 @@ public class FeatureManager {
return INSTANCE; return INSTANCE;
} }
public ArrayList<Feature> filteredFeatures;
private FeatureManager() { private FeatureManager() {
FeatureManager clientFeatureManager = FeatureManager.get(); ArrayList<Feature> filteredFeatures = new ArrayList<>(Arrays.asList(Features));
filteredFeatures = new ArrayList<>(Arrays.asList(clientFeatureManager.Features));
for (int i = 0; i < filteredFeatures.size(); i++) { for (int i = 0; i < filteredFeatures.size(); i++) {
Feature value = filteredFeatures.get(i); Feature value = filteredFeatures.get(i);
if(!value.canExist()) { if(!value.canExist()) {