fixed lint issues
parent
703a8ed565
commit
c8ec25fde9
|
@ -15,7 +15,11 @@ import android.os.Bundle
|
||||||
import android.speech.RecognizerIntent
|
import android.speech.RecognizerIntent
|
||||||
import android.speech.RecognizerIntent.EXTRA_RESULTS
|
import android.speech.RecognizerIntent.EXTRA_RESULTS
|
||||||
import android.text.style.StyleSpan
|
import android.text.style.StyleSpan
|
||||||
import android.view.*
|
import android.view.LayoutInflater
|
||||||
|
import android.view.MotionEvent
|
||||||
|
import android.view.View
|
||||||
|
import android.view.ViewGroup
|
||||||
|
import android.view.ViewStub
|
||||||
import androidx.appcompat.app.AlertDialog
|
import androidx.appcompat.app.AlertDialog
|
||||||
import androidx.core.content.ContextCompat
|
import androidx.core.content.ContextCompat
|
||||||
import androidx.core.view.isVisible
|
import androidx.core.view.isVisible
|
||||||
|
@ -71,6 +75,7 @@ class SearchFragment : Fragment(), UserInteractionHandler {
|
||||||
requireContext().settings().shouldShowSearchSuggestions
|
requireContext().settings().shouldShowSearchSuggestions
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("LongMethod")
|
||||||
override fun onCreateView(
|
override fun onCreateView(
|
||||||
inflater: LayoutInflater,
|
inflater: LayoutInflater,
|
||||||
container: ViewGroup?,
|
container: ViewGroup?,
|
||||||
|
@ -126,7 +131,7 @@ class SearchFragment : Fragment(), UserInteractionHandler {
|
||||||
awesomeBarView = AwesomeBarView(view.scrollable_area, searchInteractor)
|
awesomeBarView = AwesomeBarView(view.scrollable_area, searchInteractor)
|
||||||
|
|
||||||
view.scrollView.setOnTouchListener { _, event ->
|
view.scrollView.setOnTouchListener { _, event ->
|
||||||
when (event?.action){
|
when (event?.action) {
|
||||||
MotionEvent.ACTION_SCROLL, MotionEvent.ACTION_MOVE -> {
|
MotionEvent.ACTION_SCROLL, MotionEvent.ACTION_MOVE -> {
|
||||||
view.hideKeyboard()
|
view.hideKeyboard()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue