Align Combo with recent preferences updates.

This commit is contained in:
Johannes Mockenhaupt 2017-11-01 23:25:37 +01:00
parent f569163d19
commit fe45b917be
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1
2 changed files with 9 additions and 0 deletions

View file

@ -165,6 +165,10 @@ public class PreferencesActivity extends PreferenceActivity implements SharedPre
}
}
if (Config.COMBO) {
addPreferencesFromResourceIfEnabled(ComboPlugin.getPlugin(), PluginBase.PUMP);
}
addPreferencesFromResourceIfEnabled(VirtualPumpPlugin.getPlugin(), PluginBase.PUMP);
addPreferencesFromResourceIfEnabled(InsulinOrefFreePeakPlugin.getPlugin(), PluginBase.INSULIN);

View file

@ -186,6 +186,11 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf
if (type == PUMP) this.fragmentVisible = fragmentVisible;
}
@Override
public int getPreferencesId() {
return R.xml.pref_combo;
}
@Override
public int getType() {
return PluginBase.PUMP;