Skip to content

Commit b577a04

Browse files
committed
Update 1.0.2
1 parent fbfe395 commit b577a04

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ dependencies {
3232
Or Gradle Maven Central:
3333

3434
```groovy
35-
compile 'com.github.devlight.pulseview:library:1.0.1'
35+
compile 'com.github.devlight.pulseview:library:1.0.2'
3636
```
3737

3838
Or Maven:
@@ -41,7 +41,7 @@ Or Maven:
4141
<dependency>
4242
<groupId>com.github.devlight.pulseview</groupId>
4343
<artifactId>library</artifactId>
44-
<version>1.0.1</version>
44+
<version>1.0.2</version>
4545
<type>aar</type>
4646
</dependency>
4747
```

library/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ apply plugin: "com.jfrog.bintray"
1919
apply plugin: 'com.github.dcendents.android-maven'
2020
apply plugin: 'maven'
2121

22-
version = "1.0.1"
22+
version = "1.0.2"
2323

2424
android {
2525
compileSdkVersion 23
@@ -29,7 +29,7 @@ android {
2929
minSdkVersion 11
3030
targetSdkVersion 23
3131
versionCode 1
32-
versionName "1.0.1"
32+
versionName "1.0.2"
3333
}
3434
buildTypes {
3535
release {

library/src/main/java/com/gigamole/library/PulseView.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,12 @@ protected void onDraw(final Canvas canvas) {
419419
if (hasWindowFocus()) postInvalidate();
420420
}
421421

422+
@Override
423+
protected void onVisibilityChanged(final View changedView, final int visibility) {
424+
super.onVisibilityChanged(changedView, visibility);
425+
restorePulseState();
426+
}
427+
422428
@Override
423429
public void onWindowFocusChanged(final boolean hasWindowFocus) {
424430
super.onWindowFocusChanged(hasWindowFocus);

0 commit comments

Comments
 (0)