diff --git a/app/src/main/java/eu/ottop/yamlauncher/MainActivity.kt b/app/src/main/java/eu/ottop/yamlauncher/MainActivity.kt
index 452e17e..b701a37 100644
--- a/app/src/main/java/eu/ottop/yamlauncher/MainActivity.kt
+++ b/app/src/main/java/eu/ottop/yamlauncher/MainActivity.kt
@@ -25,6 +25,9 @@ import android.view.View.TEXT_ALIGNMENT_CENTER
import android.view.View.TEXT_ALIGNMENT_TEXT_END
import android.view.View.TEXT_ALIGNMENT_TEXT_START
import android.view.ViewTreeObserver
+import android.view.WindowInsets
+import android.view.WindowInsetsController
+import android.view.WindowManager
import android.view.inputmethod.InputMethodManager
import android.widget.LinearLayout
import android.widget.TextClock
@@ -110,6 +113,14 @@ class MainActivity : AppCompatActivity(), SharedPreferences.OnSharedPreferenceCh
Color.parseColor(preferences.getString("bgColor", "#00000000"))
)
+ val windowInsetsController = window.insetsController
+ windowInsetsController?.let {
+ it.hide(WindowInsets.Type.statusBars()) // Hide system bars
+ it.systemBarsBehavior = WindowInsetsController.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE // Set behavior
+ }
+
+
+
searchView = findViewById(R.id.searchView)
launcherApps = getSystemService(Context.LAUNCHER_APPS_SERVICE) as LauncherApps
diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml
index 08db128..9ceeb81 100644
--- a/app/src/main/res/values/themes.xml
+++ b/app/src/main/res/values/themes.xml
@@ -7,8 +7,10 @@
- @android:color/transparent
- @android:color/transparent
- ?attr/isLightTheme
- - true
+ - false
- shortEdges
+ - false
+ - false