Fix build

This commit is contained in:
Lucas Lima 2020-09-15 12:12:12 -03:00
parent 23c92d0073
commit e9844e0fee
No known key found for this signature in database
GPG key ID: 049CCC5A365B00D2
3 changed files with 1 additions and 4 deletions

View file

@ -56,7 +56,6 @@ import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.launch
import kotlinx.coroutines.*
import org.koin.android.ext.android.inject
import org.koin.androidx.viewmodel.ext.android.viewModel
@ -385,6 +384,7 @@ class GameActivity : ThematicActivity(R.layout.activity_game), DialogInterface.O
// New Features
findItem(R.id.themes).setActionView(R.layout.new_icon)
findItem(R.id.tutorial).setActionView(R.layout.new_icon)
}
}

View file

@ -103,12 +103,10 @@ class TutorialAreaAdapter(
when (motionEvent.action) {
MotionEvent.ACTION_DOWN -> {
view.isPressed = true
viewModel.startLongPressFeedback()
true
}
MotionEvent.ACTION_UP -> {
view.isPressed = false
viewModel.cancelLongPressFeedback()
val dt = motionEvent.eventTime - motionEvent.downTime
if (dt > preferencesRepository.customLongPressTimeout()) {

View file

@ -78,7 +78,6 @@ class TutorialViewModel(
}
override suspend fun onDoubleClick(index: Int) {
}
override suspend fun onSingleClick(index: Int) {