UntouchableWebView.java 766 B

12345678910111213141516171819202122232425262728
  1. package com.datarecovery.master.widget;
  2. import android.content.Context;
  3. import android.util.AttributeSet;
  4. import android.view.MotionEvent;
  5. import android.webkit.WebView;
  6. import androidx.annotation.NonNull;
  7. import androidx.annotation.Nullable;
  8. public class UntouchableWebView extends WebView {
  9. public UntouchableWebView(@NonNull Context context) {
  10. super(context);
  11. }
  12. public UntouchableWebView(@NonNull Context context, @Nullable AttributeSet attrs) {
  13. super(context, attrs);
  14. }
  15. public UntouchableWebView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
  16. super(context, attrs, defStyleAttr);
  17. }
  18. @Override
  19. public boolean onTouchEvent(MotionEvent event) {
  20. return false;
  21. }
  22. }