forked from amazingfate/loongoffice
[Android Viewer] Correct typo of class name
Corrected the accidentally named inner class in PresentationActivity.java from camel case to Upper case. Change-Id: I0c27efe371611959e40cd656628a0fa2c9c0cdce Reviewed-on: https://gerrit.libreoffice.org/39832 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
This commit is contained in:
committed by
Tomaž Vajngerl
parent
e0e50eff21
commit
cb79eba9be
@ -82,7 +82,7 @@ public class PresentationActivity extends AppCompatActivity {
|
||||
// set up presentation_gesture_view
|
||||
mGestureView = findViewById(R.id.presentation_gesture_view);
|
||||
final GestureDetectorCompat gestureDetector =
|
||||
new GestureDetectorCompat(this, new presentationGestureViewListener());
|
||||
new GestureDetectorCompat(this, new PresentationGestureViewListener());
|
||||
mGestureView.setOnTouchListener(new View.OnTouchListener() {
|
||||
@Override
|
||||
public boolean onTouch(View v, MotionEvent event) {
|
||||
@ -94,7 +94,7 @@ public class PresentationActivity extends AppCompatActivity {
|
||||
mWebView.loadUrl(filePath);
|
||||
}
|
||||
|
||||
private class presentationGestureViewListener extends GestureDetector.SimpleOnGestureListener {
|
||||
private class PresentationGestureViewListener extends GestureDetector.SimpleOnGestureListener {
|
||||
private static final int SWIPE_VELOCITY_THRESHOLD = 100;
|
||||
private static final int SCROLL_THRESHOLD = 10; // if scrollCounter is larger than this, a page switch is triggered
|
||||
private int scrollCounter = 0; // a counter for measuring scrolling distance
|
||||
|
||||
Reference in New Issue
Block a user