Skip to content

Commit

Permalink
Fixes #34.
Browse files Browse the repository at this point in the history
  • Loading branch information
yavski committed Oct 26, 2016
1 parent 24b4c8a commit 8848713
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Similarly tо [NavigationView] (http://developer.android.com/reference/android/s
##### Add the dependency to gradle.build
```
dependencies {
compile 'io.github.yavski:fab-speed-dial:1.0.6'
compile 'io.github.yavski:fab-speed-dial:1.0.7'
}
```

Expand Down
6 changes: 3 additions & 3 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
defaultConfig {
minSdkVersion 8
targetSdkVersion 23
versionCode 7
versionName "1.0.6"
versionCode 8
versionName "1.0.7"
}
buildTypes {
release {
Expand All @@ -32,7 +32,7 @@ publish {
userOrg = 'yavski'
groupId = 'io.github.yavski'
artifactId = 'fab-speed-dial'
publishVersion = '1.0.6'
publishVersion = '1.0.7'
}

// apply from: './maven.gradle'
Original file line number Diff line number Diff line change
Expand Up @@ -306,13 +306,13 @@ public void onClick(View v) {

if (parent instanceof FrameLayout) {
FrameLayout frameLayout = (FrameLayout) parent;
frameLayout.addView(touchGuard, frameLayout.indexOfChild(this));
frameLayout.addView(touchGuard);
} else if (parent instanceof CoordinatorLayout) {
CoordinatorLayout coordinatorLayout = (CoordinatorLayout) parent;
coordinatorLayout.addView(touchGuard, coordinatorLayout.indexOfChild(this));
coordinatorLayout.addView(touchGuard);
} else if (parent instanceof RelativeLayout) {
((RelativeLayout) parent).addView(
touchGuard, ((RelativeLayout) parent).indexOfChild(this),
RelativeLayout relativeLayout = (RelativeLayout) parent;
relativeLayout.addView(touchGuard,
new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT));
} else {
Expand Down

0 comments on commit 8848713

Please sign in to comment.