尝试解决友盟崩溃

chengzhenyu 8 年 前
コミット
c7cc217028
共有2 個のファイルを変更した2 個の追加1 個の削除を含む
  1. 1 1
      app/src/main/java/ai/pai/client/adapter/RecentPhotoStaggeredAdapter.java
  2. 1 0
      app/src/main/java/ai/pai/client/utils/PhotoLoader.java

+ 1 - 1
app/src/main/java/ai/pai/client/adapter/RecentPhotoStaggeredAdapter.java

@@ -50,7 +50,7 @@ public class RecentPhotoStaggeredAdapter extends RecyclerView.Adapter<RecentPhot
50 50
     public synchronized void addPhotoList(ArrayList<GroupPhotoItem> photoList){
51 51
         int startPosition = this.photoList.size();
52 52
         this.photoList.addAll(photoList);
53
-        notifyItemRangeChanged(startPosition,photoList.size());
53
+        notifyItemRangeInserted(startPosition,photoList.size());
54 54
     }
55 55
 
56 56
     public ArrayList<GroupPhotoItem> getPhotoList(){

+ 1 - 0
app/src/main/java/ai/pai/client/utils/PhotoLoader.java

@@ -61,6 +61,7 @@ public class PhotoLoader {
61 61
                 .imageScaleType(ImageScaleType.EXACTLY_STRETCHED)
62 62
                 .bitmapConfig(Bitmap.Config.RGB_565)
63 63
                 .considerExifParams(true)
64
+                .displayer(new FadeInBitmapDisplayer(300))
64 65
                 .build();
65 66
     }
66 67