mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-22 20:24:03 -04:00
#1114 suppress lint errors
This commit is contained in:
parent
6aa5ac210f
commit
47a56f8238
@ -337,6 +337,8 @@ public class MainActivity extends BaseActivity implements WebViewCallback,
|
||||
|
||||
toolbar.setOnTouchListener(new OnSwipeTouchListener(this) {
|
||||
|
||||
@Override
|
||||
@SuppressLint("SyntheticAccessor")
|
||||
public void onSwipeBottom() {
|
||||
showTabSwitcher();
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
package org.kiwix.kiwixmobile.main;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
||||
import android.view.GestureDetector;
|
||||
import android.view.MotionEvent;
|
||||
@ -8,11 +9,13 @@ import android.view.View;
|
||||
public class OnSwipeTouchListener implements View.OnTouchListener {
|
||||
private final GestureDetector gestureDetector;
|
||||
|
||||
@SuppressLint("SyntheticAccessor")
|
||||
public OnSwipeTouchListener(Context ctx) {
|
||||
gestureDetector = new GestureDetector(ctx, new GestureListener());
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressLint("ClickableViewAccessibility")
|
||||
public boolean onTouch(View v, MotionEvent event) {
|
||||
return gestureDetector.onTouchEvent(event);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user