Decoupling some dragController methods

Change-Id: I7c4ab5f1504c49eaa0566afe643d7672faa80205
This commit is contained in:
Sunny Goyal
2020-03-24 02:17:59 -07:00
parent ba1a2b9b62
commit deb91c46eb
4 changed files with 35 additions and 55 deletions

View File

@@ -43,7 +43,6 @@ import android.graphics.Point;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.os.Handler;
import android.os.IBinder;
import android.os.Message;
import android.os.Parcelable;
import android.os.UserHandle;
@@ -1224,10 +1223,8 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
protected void onAttachedToWindow() {
super.onAttachedToWindow();
IBinder windowToken = getWindowToken();
mWallpaperOffset.setWindowToken(windowToken);
mWallpaperOffset.setWindowToken(getWindowToken());
computeScroll();
mDragController.setWindowToken(windowToken);
}
protected void onDetachedFromWindow() {