Added Notch support

+ removed force dark where needed

Co-Authored-By: tonarii <tonarii@users.noreply.github.com>
This commit is contained in:
Jay 2019-10-26 18:26:31 -07:00
parent 8b69813f34
commit dd25736fb9
4 changed files with 22 additions and 3 deletions

View File

@ -347,6 +347,7 @@ class PagerPageHolder(
}) })
} }
addView(subsamplingImageView) addView(subsamplingImageView)
subsamplingImageView?.isForceDarkAllowed = false
return subsamplingImageView!! return subsamplingImageView!!
} }

View File

@ -8,7 +8,8 @@
android:background="?android:colorBackground" android:background="?android:colorBackground"
android:clipToPadding="false" android:clipToPadding="false"
android:orientation="vertical" android:orientation="vertical"
android:padding="@dimen/material_component_dialogs_padding_around_content_area"> android:padding="@dimen/material_component_dialogs_padding_around_content_area"
android:forceDarkAllowed="false">
<!-- General preferences --> <!-- General preferences -->

View File

@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources></resources>

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Base.Theme.AppCompat" parent="@style/Base.V26.Theme.AppCompat" />
<style name="Base.Theme.AppCompat.Light" parent="@style/Base.V26.Theme.AppCompat.Light" />
<style name="Base.Widget.AppCompat.Toolbar" parent="@style/Base.V26.Widget.AppCompat.Toolbar" />
<style name="Base.V26.Theme.AppCompat" parent="@style/Base.V23.Theme.AppCompat">
<item name="colorError">?android:colorError</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
</style>
<style name="Base.V26.Theme.AppCompat.Light" parent="@style/Base.V23.Theme.AppCompat.Light">
<item name="colorError">?android:colorError</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
</style>
<style name="Base.V26.Widget.AppCompat.Toolbar" parent="@style/Base.V7.Widget.AppCompat.Toolbar">
<item name="android:touchscreenBlocksFocus">true</item>
<item name="android:keyboardNavigationCluster">true</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
</style>
</resources>