Skip to content

Commit

Permalink
Don't let click go through to parent fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteHamster committed Dec 23, 2023
1 parent 3c4e3c1 commit e2a168c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.bytehamster.lib.preferencesearch;

import android.annotation.SuppressLint;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.InputMethodManager;
Expand Down Expand Up @@ -57,6 +57,7 @@ public void onCreate(@Nullable Bundle savedInstanceState) {
loadHistory();
}

@SuppressLint("ClickableViewAccessibility")
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.searchpreference_fragment, container, false);
Expand Down Expand Up @@ -104,7 +105,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa
if (anim != null) {
AnimationUtils.registerCircularRevealAnimation(getContext(), rootView, anim);
}

rootView.setOnTouchListener((v, event) -> true);
return rootView;
}

Expand Down

0 comments on commit e2a168c

Please sign in to comment.