summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/CellLayout.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2015-01-29 09:57:16 -0800
committerSunny Goyal <sunnygoyal@google.com>2015-02-26 18:19:22 +0000
commit1587d5362f5a66e005aa36fdfc7082c34b8ea3b7 (patch)
tree3bdae214f8a34c66911babc7738ce23b91bf9ccf /src/com/android/launcher3/CellLayout.java
parent8ed75e5c1606d4bd1218e2e3975527e1719d9be6 (diff)
downloadandroid_packages_apps_Trebuchet-1587d5362f5a66e005aa36fdfc7082c34b8ea3b7.tar.gz
android_packages_apps_Trebuchet-1587d5362f5a66e005aa36fdfc7082c34b8ea3b7.tar.bz2
android_packages_apps_Trebuchet-1587d5362f5a66e005aa36fdfc7082c34b8ea3b7.zip
Refactoring common methods
Change-Id: Id6d3072dd3a6d7f54e9591abbeffd9bd51c7403d
Diffstat (limited to 'src/com/android/launcher3/CellLayout.java')
-rw-r--r--src/com/android/launcher3/CellLayout.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/com/android/launcher3/CellLayout.java b/src/com/android/launcher3/CellLayout.java
index 72e28918f..a3500aa82 100644
--- a/src/com/android/launcher3/CellLayout.java
+++ b/src/com/android/launcher3/CellLayout.java
@@ -613,11 +613,7 @@ public class CellLayout extends ViewGroup {
if (lp.cellVSpan < 0) lp.cellVSpan = mCountY;
child.setId(childId);
- if (inLayout) {
- mShortcutsAndWidgets.addView(child, index, lp, true);
- } else {
- mShortcutsAndWidgets.addView(child, index, lp, false);
- }
+ mShortcutsAndWidgets.addView(child, index, lp, inLayout);
if (markCells) markCellsAsOccupiedForView(child);