This commit is contained in:
seven332 committed 2014-12-16 15:04:41 +08:00
1 parent 797869f14f
commit bc80fa125f
4 files changed
+6 -6

No files matched your search

-1
View File
@@ -16,7 +16,6 @@
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/gallery_list_detail"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
@@ -218,7 +218,7 @@ public class ExDownloader implements Runnable {
setStartIndex(0);
if (mDownloadIndexSet == null)
mDownloadIndexSet = new HashSet<Integer>();
if (mLfd != null)
if (mDownloadMode && mLfd != null)
mLfd.onStart(mGid);
} else {
mDownloadIndexSet = null;
@@ -523,7 +523,8 @@ public class ExDownloader implements Runnable {
getDetailInfo(0, ediFile, true);
}
mLfd.onGetSum(mGid, mImageNum);
if (mLfd != null)
mLfd.onGetSum(mGid, mImageNum);
ensureWorkers();
@@ -95,8 +95,8 @@ public class ImageSet implements ExDownloader.ListenerForImageSet {
// Init ExDownloader
mEdManager = ExDownloaderManager.getInstance();
mExDownloader = mEdManager.getExDownloader(gid, token, title, Config.getMode());
mExDownloader.setStartIndex(startIndex);
mExDownloader.setListenerForImageSet(this);
mExDownloader.setStartIndex(startIndex);
mImageFilenameArray = mExDownloader.getImageFilenameArray();
@@ -221,14 +221,14 @@ public class GalleryListView extends FrameLayout implements RefreshLayout.OnFoot
public void setPaddingTopAndBottom(int top, int bottom) {
setPadding(getPaddingLeft(), top, getPaddingRight(), getPaddingBottom());
mEasyRecyclerView.setPadding(mEasyRecyclerView.getPaddingLeft(), mEasyRecyclerView.getPaddingTop(),
mEasyRecyclerView.getPaddingRight(), bottom);
mEasyRecyclerView.getPaddingRight(), mEasyRecyclerView.getPaddingBottom() + bottom);
}
private void setItemMargin(int margin) {
int halfMargin = margin / 2;
mItemDecoration.setMargin(margin);
mEasyRecyclerView.setPadding(halfMargin, halfMargin,
halfMargin, mEasyRecyclerView.getPaddingBottom());
halfMargin, halfMargin);
}
public void setEnabledHeader(boolean enabled) {