Skip to content

Commit 25799c5

Browse files
committed
Merge branch 'hidehandle' of https://github.com/Flamedek/AndroidPdfViewer into Flamedek-hidehandle
2 parents 847fe6e + 9c57d96 commit 25799c5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

android-pdf-viewer/src/main/java/com/github/barteksc/pdfviewer/AnimationManager.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,14 @@ public void onAnimationUpdate(ValueAnimator animation) {
138138
public void onAnimationCancel(Animator animation) {
139139
pdfView.loadPages();
140140
pageFlinging = false;
141+
hideHandle();
141142
}
142143

143144
@Override
144145
public void onAnimationEnd(Animator animation) {
145146
pdfView.loadPages();
146147
pageFlinging = false;
148+
hideHandle();
147149
}
148150
}
149151

@@ -160,12 +162,14 @@ public void onAnimationUpdate(ValueAnimator animation) {
160162
public void onAnimationCancel(Animator animation) {
161163
pdfView.loadPages();
162164
pageFlinging = false;
165+
hideHandle();
163166
}
164167

165168
@Override
166169
public void onAnimationEnd(Animator animation) {
167170
pdfView.loadPages();
168171
pageFlinging = false;
172+
hideHandle();
169173
}
170174
}
171175

@@ -187,13 +191,15 @@ public void onAnimationUpdate(ValueAnimator animation) {
187191

188192
@Override
189193
public void onAnimationCancel(Animator animation) {
194+
pdfView.loadPages();
195+
hideHandle();
190196
}
191197

192198
@Override
193199
public void onAnimationEnd(Animator animation) {
194200
pdfView.loadPages();
195-
hideHandle();
196201
pdfView.performPageSnap();
202+
hideHandle();
197203
}
198204

199205
@Override

0 commit comments

Comments
 (0)