Merge "Change SHORT_SERVICE timeout to 3 minutes"
This commit is contained in:
committed by
Android (Google) Code Review
commit
c9e29b86aa
@@ -388,7 +388,7 @@ public class ServiceInfo extends ComponentInfo
|
||||
*
|
||||
* <ul>
|
||||
* <li>
|
||||
* The type has a 1 minute timeout.
|
||||
* The type has a 3 minute timeout.
|
||||
* A foreground service of this type must be stopped within the timeout by
|
||||
* {@link android.app.Service#stopSelf),
|
||||
* or {@link android.content.Context#stopService).
|
||||
|
||||
@@ -951,7 +951,7 @@ final class ActivityManagerConstants extends ContentObserver {
|
||||
"short_fgs_timeout_duration";
|
||||
|
||||
/** @see #KEY_SHORT_FGS_TIMEOUT_DURATION */
|
||||
static final long DEFAULT_SHORT_FGS_TIMEOUT_DURATION = 60_000;
|
||||
static final long DEFAULT_SHORT_FGS_TIMEOUT_DURATION = 3 * 60_000;
|
||||
|
||||
/** @see #KEY_SHORT_FGS_TIMEOUT_DURATION */
|
||||
public volatile long mShortFgsTimeoutDuration = DEFAULT_SHORT_FGS_TIMEOUT_DURATION;
|
||||
|
||||
Reference in New Issue
Block a user