Skip to content

Commit

Permalink
update to v0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanhua committed Aug 4, 2017
1 parent a5b44df commit 363fe6a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
defaultConfig {
minSdkVersion 15
targetSdkVersion 25
versionCode 3
versionName "0.2.0"
versionCode 4
versionName "0.2.1"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

Expand All @@ -35,7 +35,7 @@ publish {
userOrg = 'ethanhua'
groupId = 'com.ethanhua'
artifactId = 'skeleton'
publishVersion = '0.2.0'
publishVersion = '0.2.1'
bintrayUser = 'ethanhua'
bintrayKey = ''
desc = 'a library provider a easy way to show skeleton loading view'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,17 @@ private RecyclerViewSkeletonScreen(RecyclerView recyclerView,
@Override
public void show() {
mRecyclerView.setAdapter(mSkeletonAdapter);
if (!mRecyclerView.isComputingLayout()) {
mRecyclerView.setLayoutFrozen(true);
}
}

@Override
public void hide() {
mRecyclerView.setAdapter(mActualAdapter);
if (!mRecyclerView.isComputingLayout()) {
mRecyclerView.setLayoutFrozen(false);
}
}


Expand Down
4 changes: 2 additions & 2 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
applicationId "com.ethanhua.skeleton.sample"
minSdkVersion 15
targetSdkVersion 25
versionCode 3
versionName "0.2.0"
versionCode 4
versionName "0.2.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down

0 comments on commit 363fe6a

Please sign in to comment.