LineageParts: Improve easter egg activity style
* Make navigation bar translucent
* Make it full screen on devices with cutout
Change-Id: Ief6d8be96fd21a498ddb3bc0052702b84577bc0c
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 0c6542a..b266fb7 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -2,7 +2,7 @@
<!--
/**
* Copyright 2016, The CyanogenMod Project
- * Copyright 2017-2021, The LineageOS Project
+ * Copyright 2017-2022, The LineageOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -265,7 +265,7 @@
android:excludeFromRecents="true"/>
<activity android:name=".logo.PlatLogoActivity"
- android:theme="@android:style/Theme.Wallpaper.NoTitleBar.Fullscreen"
+ android:theme="@style/EggStyle"
android:configChanges="orientation|keyboardHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
@@ -274,7 +274,7 @@
</activity>
<activity android:name=".egg.octo.Ocquarium"
- android:theme="@android:style/Theme.DeviceDefault.NoActionBar.Fullscreen"
+ android:theme="@style/EggStyle"
android:label="@string/egg_title">
<intent-filter>
<action android:name="org.lineageos.lineageparts.EASTER_EGG"/>
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 3025abc..aaf7bdf 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -30,6 +30,12 @@
<item name="android:letterSpacing">0.072727273</item>
</style>
+ <style name="EggStyle" parent="@android:style/Theme.DeviceDefault.NoActionBar.Fullscreen">
+ <item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
+ <item name="android:windowTranslucentStatus">true</item>
+ <item name="android:windowTranslucentNavigation">true</item>
+ </style>
+
<style name="ProfilesPreferenceStyle">
<item name="android:layout">@layout/preference_profiles</item>
<item name="android:widgetLayout">@layout/preference_profiles_widget</item>