commit | dfd29ba44f86b352a611185310851bac050457cd | [log] [tgz] |
---|---|---|
author | LuK1337 <priv.luk@gmail.com> | Sun Aug 14 23:58:42 2022 +0200 |
committer | LuK1337 <priv.luk@gmail.com> | Thu Sep 29 22:28:28 2022 +0200 |
tree | 6eb16eb515d0cc504e76dcc0bf236387ffd4c011 | |
parent | af2e5da2d08649f8f8133d5845935fb7eb9f584a [diff] |
Aperture: Hide ActionBar using style properties Change-Id: Id68fa1eb945ef0702bc5c04a7cfd9140698ff8e8
diff --git a/app/src/main/java/org/lineageos/aperture/MainActivity.kt b/app/src/main/java/org/lineageos/aperture/MainActivity.kt index 265c10b..ccd40b2 100644 --- a/app/src/main/java/org/lineageos/aperture/MainActivity.kt +++ b/app/src/main/java/org/lineageos/aperture/MainActivity.kt
@@ -189,7 +189,6 @@ super.onCreate(savedInstanceState) hideStatusBars() - supportActionBar?.hide() setContentView(R.layout.activity_main) setShowWhenLocked(true)
diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index e636c73..687192e 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml
@@ -19,7 +19,10 @@ </style> <!-- Main activity theme. --> - <style name="Theme.Aperture.Main" parent="Theme.Aperture" /> + <style name="Theme.Aperture.Main" parent="Theme.Aperture"> + <item name="windowActionBar">false</item> + <item name="windowNoTitle">true</item> + </style> <!-- Settings activity theme. --> <style name="Theme.Aperture.Settings" parent="Theme.Aperture" />