Moving taskbar variables in DeviceProfile to their own class
Bug: 419264653 Flag: EXEMPT refactor Test: DeviceProfileDumpTest Test: All Image tests Change-Id: I05ec9e15ef02096326596af4835adb706473a736
This commit is contained in:
1 parent
4f08a7a40e
commit
8244449a9f
31 files changed
+239
-131
No files matched your search
@@ -292,7 +292,10 @@ public class TaskbarPopupController implements TaskbarControllers.LoggableTaskba
|
||||
// Move the icon to align with the center-top of the touch point
|
||||
Point iconShift = new Point();
|
||||
iconShift.x = mIconLastTouchPos.x - sv.getIconCenter().x;
|
||||
iconShift.y = mIconLastTouchPos.y - mContext.getDeviceProfile().taskbarIconSize;
|
||||
iconShift.y = mIconLastTouchPos.y
|
||||
- mContext.getDeviceProfile()
|
||||
.getTaskbarProfile()
|
||||
.getIconSize();
|
||||
|
||||
((TaskbarDragController) ActivityContext.lookupContext(
|
||||
v.getContext()).getDragController()).startDragOnLongClick(sv, iconShift);
|
||||
|
||||
Reference in new issue
Block a user