diff options
Diffstat (limited to 'app/src/main/java/foundation/e/advancedprivacy/features/location/FakeLocationMapView.kt')
-rw-r--r-- | app/src/main/java/foundation/e/advancedprivacy/features/location/FakeLocationMapView.kt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/java/foundation/e/advancedprivacy/features/location/FakeLocationMapView.kt b/app/src/main/java/foundation/e/advancedprivacy/features/location/FakeLocationMapView.kt index fbb5b6c..f80c25e 100644 --- a/app/src/main/java/foundation/e/advancedprivacy/features/location/FakeLocationMapView.kt +++ b/app/src/main/java/foundation/e/advancedprivacy/features/location/FakeLocationMapView.kt @@ -38,7 +38,10 @@ class FakeLocationMapView @JvmOverloads constructor( @SuppressLint("ClickableViewAccessibility") override fun onTouchEvent(event: MotionEvent?): Boolean { when (event?.action) { - MotionEvent.ACTION_DOWN -> parent.requestDisallowInterceptTouchEvent(true) + MotionEvent.ACTION_DOWN -> { + parent.requestDisallowInterceptTouchEvent(true) + requestFocus() + } MotionEvent.ACTION_UP -> parent.requestDisallowInterceptTouchEvent(false) } super.onTouchEvent(event) |