|
|
@ -353,7 +353,7 @@ public class MpMasterService extends Service {
|
|
|
|
MicroPhotoContext.saveMasterConfig(getApplicationContext(), masterConfig);
|
|
|
|
MicroPhotoContext.saveMasterConfig(getApplicationContext(), masterConfig);
|
|
|
|
|
|
|
|
|
|
|
|
logger.warning("MNTN Mode Changed from " + convertSwitch(oldMntnMode) + " to " + convertSwitch(mntnMode)
|
|
|
|
logger.warning("MNTN Mode Changed from " + convertSwitch(oldMntnMode) + " to " + convertSwitch(mntnMode)
|
|
|
|
+ " QuickHB from" + convertSwitch(oldQuickHbMode) + " to " + convertSwitch(quickHbMode));
|
|
|
|
+ " Quick Heartbeat from" + convertSwitch(oldQuickHbMode) + " to " + convertSwitch(quickHbMode));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (oldQuickHbMode != quickHbMode) {
|
|
|
|
if (oldQuickHbMode != quickHbMode) {
|
|
|
@ -393,7 +393,7 @@ public class MpMasterService extends Service {
|
|
|
|
public void onReceive(Context context, Intent intent) {
|
|
|
|
public void onReceive(Context context, Intent intent) {
|
|
|
|
String action = intent.getAction();
|
|
|
|
String action = intent.getAction();
|
|
|
|
if (TextUtils.equals(ACTION_HEARTBEAT, action)) {
|
|
|
|
if (TextUtils.equals(ACTION_HEARTBEAT, action)) {
|
|
|
|
mService.logger.info("HB Timer Fired ACTION=" + action);
|
|
|
|
mService.logger.info("Heartbeat Timer Fired ACTION=" + action);
|
|
|
|
|
|
|
|
|
|
|
|
mService.registerHeartbeatTimer();
|
|
|
|
mService.registerHeartbeatTimer();
|
|
|
|
|
|
|
|
|
|
|
@ -402,7 +402,7 @@ public class MpMasterService extends Service {
|
|
|
|
|
|
|
|
|
|
|
|
} else if (TextUtils.equals(ACTION_UPDATE_CONFIGS, action)) {
|
|
|
|
} else if (TextUtils.equals(ACTION_UPDATE_CONFIGS, action)) {
|
|
|
|
int restart = intent.getIntExtra("restart", 0);
|
|
|
|
int restart = intent.getIntExtra("restart", 0);
|
|
|
|
mService.logger.info("UPD CFG Fired ACTION=" + action + " restart=" + restart);
|
|
|
|
mService.logger.info("Update Config Fired ACTION=" + action + " restart=" + restart);
|
|
|
|
if (restart != 0) {
|
|
|
|
if (restart != 0) {
|
|
|
|
mService.restartApp(context, context.getPackageName());
|
|
|
|
mService.restartApp(context, context.getPackageName());
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|