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" />