Merge "Cache TISBinder for multiple onBind() calls" into sc-v2-dev

This commit is contained in:
TreeHugger Robot
2021-10-20 23:34:49 +00:00
committed by Android (Google) Code Review

View File

@@ -145,6 +145,8 @@ public class TouchInteractionService extends Service
private int mBackGestureNotificationCounter = -1;
private final TISBinder mTISBinder = new TISBinder();
/**
* Local IOverviewProxy implementation with some methods for local components
*/
@@ -516,7 +518,7 @@ public class TouchInteractionService extends Service
@Override
public IBinder onBind(Intent intent) {
Log.d(TAG, "Touch service connected: user=" + getUserId());
return new TISBinder();
return mTISBinder;
}
private void onInputEvent(InputEvent ev) {