Fix bug: Footer is not shown correct in the grid view
[pub/Android/ownCloud.git] / src / com / owncloud / android / ui / fragment / ExtendedListFragment.java
index 02f4103..8aefec0 100644 (file)
@@ -91,6 +91,7 @@ implements OnItemClickListener, OnEnforceableRefreshListener {
     
     protected void switchImageView(){
        imageView.setNumColumns(GridView.AUTO_FIT);
+       imageView.invalidateRowHeight();  // Force to recalculate mRowHeight of imageView
        imageView.invalidate();
     }