bug when importing config while service is not running

This commit is contained in:
jens 2022-05-08 14:50:40 +02:00
parent d5ce04f80b
commit 9fce7d987e
2 changed files with 2 additions and 2 deletions

View File

@ -224,7 +224,7 @@ public class ActivityControlCenter extends Activity
Settings.readFromPersistentStorage(ActivityControlCenter.this); Settings.readFromPersistentStorage(ActivityControlCenter.this);
AutomationService service = AutomationService.getInstance(); AutomationService service = AutomationService.getInstance();
if(service != null) if(service != null && service.isRunning)
service.applySettingsAndRules(); service.applySettingsAndRules();
} }
else else

View File

@ -5,7 +5,7 @@ buildscript {
jcenter() jcenter()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:7.1.2' classpath 'com.android.tools.build:gradle:7.1.3'
// NOTE: Do not place your application dependencies here; they belong // NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files // in the individual module build.gradle files