Skip to content

Commit

Permalink
更新到0.5.1,解决全局刷新问题
Browse files Browse the repository at this point in the history
  • Loading branch information
nanchen2251 committed Apr 5, 2017
1 parent ca3ccce commit f6035a5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ dependencies {

compile 'com.lzy.widget:view-core:0.2.1'

compile 'com.lzy.widget:imagepicker:0.5.0'
// compile project(':imagepicker')
// compile 'com.lzy.widget:imagepicker:0.5.0'
compile project(':imagepicker')
}
2 changes: 1 addition & 1 deletion bintray.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

version = "0.5.0" // 数据仓库依赖第三部分
version = "0.5.1" // 数据仓库依赖第三部分

def siteUrl = 'https://github.com/jeasonlzy0216/NineGridView'
def gitUrl = 'https://github.com/jeasonlzy0216/NineGridView.git'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
*
* 用于替换原项目的GridView,使用局部刷新解决选中照片出现闪动问题
*
* 替换为RecyclerView后并没有通过局部刷新解决,可能是picasso图片加载框架的问题
* 替换为RecyclerView后只是不再会导致全局刷新,
*
* 但还是会出现明显的重新加载图片,可能是picasso图片加载框架的问题
*
* Author: nanchen
* Email: [email protected]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public void onImageSelected(int position, ImageItem item, boolean isAdd) {
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (data != null) {
if (data != null && data.getExtras() != null) {
if (resultCode == ImagePicker.RESULT_CODE_BACK) {
isOrigin = data.getBooleanExtra(ImagePreviewActivity.ISORIGIN, false);
} else {
Expand Down Expand Up @@ -347,4 +347,5 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
}
}
}

}
1 change: 1 addition & 0 deletions imagepicker/src/main/res/layout/activity_image_preview.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

<com.lzy.imagepicker.view.SuperCheckBox
android:id="@+id/cb_origin"
android:visibility="invisible"
style="@style/SuperCheckboxTheme"
android:layout_width="wrap_content"
android:layout_height="match_parent"
Expand Down

0 comments on commit f6035a5

Please sign in to comment.