disable back press on details page

This commit is contained in:
althafvly 2024-07-03 19:25:48 +05:30
parent aea2d6b289
commit 2def9da084

View file

@ -87,6 +87,10 @@ class DetailActivity : AppCompatActivity(), ActionMode.Callback, NotificationFra
}
}
override fun onBackPressed() {
finishAffinity()
}
private fun maybeSubscribeAndLoadView(url: Uri) {
if (url.pathSegments.size != 1) {
Log.w(TAG, "Invalid link $url. Aborting.")