Merge "Fix FGS lifetime extender overzealousness"

This commit is contained in:
TreeHugger Robot
2019-10-03 16:34:32 +00:00
committed by Android (Google) Code Review

View File

@@ -83,7 +83,9 @@ public class ForegroundServiceLifetimeExtender implements NotificationLifetimeEx
}
}
};
mHandler.postDelayed(r, MIN_FGS_TIME_MS);
long delayAmt = MIN_FGS_TIME_MS
- (System.currentTimeMillis() - entry.notification.getPostTime());
mHandler.postDelayed(r, delayAmt);
}
}