Skip to content

Commit

Permalink
feat: disable multi-touch #106
Browse files Browse the repository at this point in the history
  • Loading branch information
plplmax committed Oct 5, 2023
1 parent d6dcbc1 commit 28d9e8f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.github.plplmax.notifications

import android.os.Bundle
import android.view.MotionEvent
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.viewModels
Expand All @@ -27,4 +28,8 @@ class MainActivity : ComponentActivity() {
}
}
}

override fun dispatchTouchEvent(ev: MotionEvent?): Boolean {
return ev?.pointerCount == 1 && super.dispatchTouchEvent(ev)
}
}

0 comments on commit 28d9e8f

Please sign in to comment.