forked from jens/Automation
bug when importing config while service is not running
This commit is contained in:
parent
d5ce04f80b
commit
9fce7d987e
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user