瀏覽代碼

Fix bug: Footer is not shown correct in the grid view

masensio 10 年之前
父節點
當前提交
d2d20d9ec1
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/com/owncloud/android/ui/fragment/ExtendedListFragment.java

+ 1 - 0
src/com/owncloud/android/ui/fragment/ExtendedListFragment.java

@@ -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();
     }