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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user