2D recents: fix typo where I was using the wrong dimension

Bug: 32101881
Test: Checked layout in portrait & landscape on sw600dp device
Change-Id: Iccf6205c00947d19053fa0ad444dd1c46365a50c
This commit is contained in:
Manu Cornet
2016-12-19 14:05:38 -08:00
parent 3ddb8738f5
commit eb40b4cd5f

View File

@@ -42,7 +42,7 @@ public class GridTaskView extends TaskView {
public GridTaskView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
super(context, attrs, defStyleAttr, defStyleRes);
mHeaderHeight = context.getResources().getDimensionPixelSize(
R.dimen.recents_task_view_header_height);
R.dimen.recents_grid_task_view_header_height);
}
@Override
@@ -65,7 +65,7 @@ public class GridTaskView extends TaskView {
protected void onConfigurationChanged() {
super.onConfigurationChanged();
mHeaderHeight = mContext.getResources().getDimensionPixelSize(
R.dimen.recents_task_view_header_height);
R.dimen.recents_grid_task_view_header_height);
mThumbnailView.setTranslationY(mHeaderHeight);
}
}