|
|
@ -390,9 +390,6 @@ public class MpMasterService extends Service {
|
|
|
|
public boolean shouldSyncTime() { return mSyncTime; }
|
|
|
|
public boolean shouldSyncTime() { return mSyncTime; }
|
|
|
|
|
|
|
|
|
|
|
|
public void startMpApp() {
|
|
|
|
public void startMpApp() {
|
|
|
|
if (true) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
final Context context = getApplicationContext();
|
|
|
|
final Context context = getApplicationContext();
|
|
|
|
long ts = System.currentTimeMillis();
|
|
|
|
long ts = System.currentTimeMillis();
|
|
|
@ -422,7 +419,7 @@ public class MpMasterService extends Service {
|
|
|
|
|
|
|
|
|
|
|
|
long tempduration = mMpHeartbeatDuration;
|
|
|
|
long tempduration = mMpHeartbeatDuration;
|
|
|
|
if(mMpHeartbeatDuration < 600000)
|
|
|
|
if(mMpHeartbeatDuration < 600000)
|
|
|
|
tempduration = 300000;
|
|
|
|
tempduration = 290000;
|
|
|
|
if (mPreviousMpHbTime <= ts && ts - mPreviousMpHbTime > tempduration * 2) {
|
|
|
|
if (mPreviousMpHbTime <= ts && ts - mPreviousMpHbTime > tempduration * 2) {
|
|
|
|
// MpApp is not running
|
|
|
|
// MpApp is not running
|
|
|
|
if (ts - mTimeToStartMpApp >= 1800000) {
|
|
|
|
if (ts - mTimeToStartMpApp >= 1800000) {
|
|
|
|