Fix fullscreen reader for notch device (#2595)

* Fix fullscreen reader for notch device

* Make cutout mode configurable

* Rename cutout option
This commit is contained in:
onlymash
2020-02-17 23:40:49 +08:00
committed by GitHub
parent a7ece4fdf3
commit 12aa04be93
7 changed files with 44 additions and 1 deletions

View File

@@ -125,6 +125,16 @@
android:textColor="?android:attr/textColorSecondary"
app:layout_constraintTop_toBottomOf="@id/true_color" />
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/cutout_short"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/pref_cutout_short"
android:textColor="?android:attr/textColorSecondary"
android:visibility="gone"
app:layout_constraintTop_toBottomOf="@id/fullscreen" />
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/keepscreen"
android:layout_width="match_parent"
@@ -132,7 +142,7 @@
android:layout_marginTop="16dp"
android:text="@string/pref_keep_screen_on"
android:textColor="?android:attr/textColorSecondary"
app:layout_constraintTop_toBottomOf="@id/fullscreen" />
app:layout_constraintTop_toBottomOf="@id/cutout_short" />
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/long_tap"