Merge "Fix FGS lifetime extender overzealousness"
This commit is contained in:
committed by
Android (Google) Code Review
commit
7f898bedec
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user