Skip to content

Commit

Permalink
Follow-up: remove onKeyLongPress override from ShowsActivityImpl
Browse files Browse the repository at this point in the history
The super class implementation in BaseActivity was removed long ago to
improve accessibility with
73eba21 Slide out opened activities.
  • Loading branch information
UweTrottmann committed Nov 21, 2024
1 parent 59cb408 commit 5762855
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package com.battlelancer.seriesguide.shows

import android.content.Intent
import android.os.Bundle
import android.view.KeyEvent
import android.view.View
import androidx.activity.viewModels
import androidx.lifecycle.ViewModelProvider
Expand Down Expand Up @@ -326,11 +325,6 @@ open class ShowsActivityImpl : BaseTopActivity() {
ShowsSettings.saveLastShowsTabPosition(this, viewPager.currentItem)
}

override fun onKeyLongPress(keyCode: Int, event: KeyEvent): Boolean {
// prevent navigating to top activity as this is the top activity
return keyCode == KeyEvent.KEYCODE_BACK
}

override val snackbarParentView: View
get() = findViewById(R.id.coordinatorLayoutShows)

Expand Down

0 comments on commit 5762855

Please sign in to comment.