Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f898bed authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix FGS lifetime extender overzealousness"

parents 5237275f 7d442919
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);
    }
}