ui: add edge-to-edge toggle

Add a toggle for edge-to-edge mode.

Normally we would want to enable edge-to-edge by default (in fact, we
still do). However, some phones (once again, samsung) don't provide
Auxio with actual window insets. As a result, we need to add a toggle
so that it can be disabled on busted devices.

Did you know that even when Auxio has it's edge-to-edge functionality
busted, Samsung Music works just fine? Very interesting.

Resolves #149.
This commit is contained in:
OxygenCobalt
2022-06-07 17:14:02 -06:00
parent bd683ca09a
commit c929357d76
6 changed files with 61 additions and 20 deletions
+8
View File
@@ -27,6 +27,14 @@
app:summary="@string/set_black_mode_desc"
app:title="@string/set_black_mode" />
<org.oxycblt.auxio.settings.pref.M3SwitchPreference
app:allowDividerBelow="false"
app:defaultValue="true"
app:iconSpaceReserved="false"
app:key="auxio_edge"
app:summary="@string/set_edge_to_edge_desc"
app:title="@string/set_edge_to_edge" />
</PreferenceCategory>
<PreferenceCategory