Skip to content
Snippets Groups Projects
Commit db1fc455 authored by Sharon Su's avatar Sharon Su Committed by Android (Google) Code Review
Browse files

Merge "Change timeout idle settings from permanent binding to 2 minutes....

Merge "Change timeout idle settings from permanent binding to 2 minutes. Because the cinematic wallpaper feature is not a frequently used feature, the service side implementation can choose to use a non-persistent process. Change from permanent binding to timeout on idle helps to kill the non-persistent process if service implementation picks up that option." into udc-dev
parents 8b616a88 c77b3822
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,8 @@ public class RemoteWallpaperEffectsGenerationService extends
private static final long TIMEOUT_REMOTE_REQUEST_MILLIS = 2 * DateUtils.SECOND_IN_MILLIS;
private static final long TIMEOUT_IDLE_BIND_MILLIS = 120 * DateUtils.SECOND_IN_MILLIS;
private final RemoteWallpaperEffectsGenerationServiceCallback mCallback;
public RemoteWallpaperEffectsGenerationService(Context context,
......@@ -62,7 +64,7 @@ public class RemoteWallpaperEffectsGenerationService extends
@Override
protected long getTimeoutIdleBindMillis() {
return PERMANENT_BOUND_TIMEOUT_MS;
return TIMEOUT_IDLE_BIND_MILLIS;
}
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment