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

This commit is contained in:
TreeHugger Robot authored and Android (Google) Code Review committed 2021-10-20 23:34:49 +00:00
commit 6409130f29
1 file changed
+3 -1
@@ -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) {