back button at main activity now behaves the same way as home button
This commit is contained in:
@@ -371,6 +371,10 @@ class MainActivity : AppCompatActivity() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onBackPressed() {
|
||||||
|
moveTaskToBack(true)
|
||||||
|
}
|
||||||
|
|
||||||
override fun onRequestPermissionsResult(requestCode: Int,
|
override fun onRequestPermissionsResult(requestCode: Int,
|
||||||
permissions: Array<String>, grantResults: IntArray) {
|
permissions: Array<String>, grantResults: IntArray) {
|
||||||
when (requestCode) {
|
when (requestCode) {
|
||||||
|
|||||||
Reference in New Issue
Block a user