set predefined values for nsclient

This commit is contained in:
Milos Kozak 2020-07-02 16:41:48 +02:00
parent bbfbdb18d5
commit b13c39ebc5

View file

@ -53,6 +53,7 @@ public class MainApp extends DaggerApplication {
@Inject VersionCheckerUtils versionCheckersUtils;
@Inject SP sp;
@Inject NSUpload nsUpload;
@Inject Config config;
@Inject ConfigBuilderPlugin configBuilderPlugin;
@Inject KeepAliveReceiver.KeepAliveManager keepAliveManager;
@ -103,6 +104,11 @@ public class MainApp extends DaggerApplication {
private void doMigrations() {
// set values for different builds
if (!sp.contains(R.string.key_ns_alarms))
sp.putBoolean(R.string.key_ns_alarms, config.getNSCLIENT());
if (!sp.contains(R.string.key_ns_announcements))
sp.putBoolean(R.string.key_ns_announcements, config.getNSCLIENT());
}
@Override