diff options
author | Hyunyoung Song <hyunyoungs@google.com> | 2015-05-12 16:27:50 -0700 |
---|---|---|
committer | Hyunyoung Song <hyunyoungs@google.com> | 2015-05-12 16:27:50 -0700 |
commit | 426b94b207f0a09df5fd0826891ca2a4732aff30 (patch) | |
tree | 863f873e3a839d34a8ac5885570a5ffbc8850c5e /src/com/android/launcher3/widget | |
parent | 1e62c1594acba67486ec2ded56aed00f5cfaff75 (diff) | |
download | android_packages_apps_Trebuchet-426b94b207f0a09df5fd0826891ca2a4732aff30.tar.gz android_packages_apps_Trebuchet-426b94b207f0a09df5fd0826891ca2a4732aff30.tar.bz2 android_packages_apps_Trebuchet-426b94b207f0a09df5fd0826891ca2a4732aff30.zip |
Typecast to correct LayoutParams
Change-Id: Ifdd04923563a0ef57bd281d1b55b8af0e4cc59f0
Diffstat (limited to 'src/com/android/launcher3/widget')
-rw-r--r-- | src/com/android/launcher3/widget/WidgetsListAdapter.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/com/android/launcher3/widget/WidgetsListAdapter.java b/src/com/android/launcher3/widget/WidgetsListAdapter.java index d45ff1d46..d6e062874 100644 --- a/src/com/android/launcher3/widget/WidgetsListAdapter.java +++ b/src/com/android/launcher3/widget/WidgetsListAdapter.java @@ -25,6 +25,7 @@ import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.ViewGroup.LayoutParams; +import android.view.ViewGroup.MarginLayoutParams; import android.widget.LinearLayout; import com.android.launcher3.BubbleTextView; @@ -164,10 +165,10 @@ public class WidgetsListAdapter extends Adapter<WidgetsRowViewHolder> { ViewGroup container = (ViewGroup) mLayoutInflater.inflate( R.layout.widgets_list_row_view, parent, false); - View cellList = container.findViewById(R.id.widgets_cell_list); - LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) cellList.getLayoutParams(); + LinearLayout cellList = (LinearLayout) container.findViewById(R.id.widgets_cell_list); + MarginLayoutParams lp = (MarginLayoutParams) cellList.getLayoutParams(); lp.setMarginStart(mIndent); - + cellList.setLayoutParams(lp); return new WidgetsRowViewHolder(container); } |