mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Moving the class LayoutParams to a file outside CellLayout
I'm moving the LayoutParams to another file to start the decoupling of the Reorder outside of the CellLayout. Also, I change the name from LayoutParams to LauncherLayoutParams to prevent confusion with ViewGroup.LayoutParams making it explicit that this are different LayoutParams. Bug: 188081026 Test: atest ReorderWidget Change-Id: I92251c5540ffcf5ece7b933e6f6c836eb825c997
This commit is contained in:
committed by
Sebastián Franco
parent
b759de4769
commit
d468299c0f
@@ -19,6 +19,7 @@ import android.util.Log;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
import com.android.launcher3.celllayout.CellLayoutLayoutParams;
|
||||
import com.android.launcher3.folder.Folder;
|
||||
import com.android.launcher3.folder.FolderIcon;
|
||||
import com.android.launcher3.model.data.ItemInfo;
|
||||
@@ -111,11 +112,11 @@ public interface WorkspaceLayoutManager {
|
||||
}
|
||||
|
||||
ViewGroup.LayoutParams genericLp = child.getLayoutParams();
|
||||
CellLayout.LayoutParams lp;
|
||||
if (genericLp == null || !(genericLp instanceof CellLayout.LayoutParams)) {
|
||||
lp = new CellLayout.LayoutParams(x, y, spanX, spanY);
|
||||
CellLayoutLayoutParams lp;
|
||||
if (genericLp == null || !(genericLp instanceof CellLayoutLayoutParams)) {
|
||||
lp = new CellLayoutLayoutParams(x, y, spanX, spanY);
|
||||
} else {
|
||||
lp = (CellLayout.LayoutParams) genericLp;
|
||||
lp = (CellLayoutLayoutParams) genericLp;
|
||||
lp.cellX = x;
|
||||
lp.cellY = y;
|
||||
lp.cellHSpan = spanX;
|
||||
|
||||
Reference in New Issue
Block a user