@@ -46,6 +46,7 @@ public class PhotoRecyclerAdapter extends RecyclerView.Adapter<PhotoRecyclerAdap |
||
| 46 | 46 |
if(!photoList.contains(item)){
|
| 47 | 47 |
photoList.add(0,item); |
| 48 | 48 |
notifyItemInserted(0); |
| 49 |
+ notifyItemRangeChanged(0,photoList.size()); |
|
| 49 | 50 |
} |
| 50 | 51 |
} |
| 51 | 52 |
|
@@ -55,6 +56,7 @@ public class PhotoRecyclerAdapter extends RecyclerView.Adapter<PhotoRecyclerAdap |
||
| 55 | 56 |
} |
| 56 | 57 |
photoList.remove(index); |
| 57 | 58 |
notifyItemRemoved(index); |
| 59 |
+ notifyItemRangeChanged(0,photoList.size()); |
|
| 58 | 60 |
} |
| 59 | 61 |
|
| 60 | 62 |
@Override |
@@ -87,6 +87,7 @@ public class SessionPresenter implements SessionContract.Presenter, SessionInter |
||
| 87 | 87 |
} |
| 88 | 88 |
if(BuildConfig.isTestMode){
|
| 89 | 89 |
if(photoList!=null && photoList.size()>5){
|
| 90 |
+ interactor.endSession(); |
|
| 90 | 91 |
return; |
| 91 | 92 |
} |
| 92 | 93 |
} |