Merge "Cache TISBinder for multiple onBind() calls" into sc-v2-dev am: 6409130f29
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16093822 Change-Id: Idaf86de8af661f78d57852e265d75b87a0ff7a41
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user