lets block Back button to avoid some glitches

This commit is contained in:
tibbi 2022-10-09 20:31:14 +02:00
parent 417deef01c
commit fecb6ae0e3
2 changed files with 6 additions and 1 deletions

View file

@ -39,8 +39,12 @@
<activity
android:name=".activities.MainActivity"
android:clearTaskOnLaunch="true"
android:configChanges="orientation|keyboardHidden|screenSize"
android:excludeFromRecents="true"
android:exported="true"
android:launchMode="singleTop"
android:noHistory="true"
android:screenOrientation="portrait"
android:theme="@style/LauncherTheme">

View file

@ -182,7 +182,8 @@ class MainActivity : SimpleActivity(), FlingListener {
} else if (home_screen_grid.resize_frame.isVisible) {
home_screen_grid.hideResizeLines()
} else {
super.onBackPressed()
// this is a home launcher app, avoid glitching by pressing Back
//super.onBackPressed()
}
}