Revert "Nav menu padding for e2e"

This reverts commit f77ae46380.
master
M66B 4 months ago
parent f77ae46380
commit 90958a1f76

@ -259,7 +259,6 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
boolean canFold = Helper.canFold(this); boolean canFold = Helper.canFold(this);
boolean close_pane = prefs.getBoolean("close_pane", !duo && !canFold); boolean close_pane = prefs.getBoolean("close_pane", !duo && !canFold);
boolean nav_categories = prefs.getBoolean("nav_categories", false); boolean nav_categories = prefs.getBoolean("nav_categories", false);
boolean edge_to_edge = prefs.getBoolean("edge_to_edge", false);
// 1=small, 2=normal, 3=large, 4=xlarge // 1=small, 2=normal, 3=large, 4=xlarge
if (layout > 0) if (layout > 0)
@ -749,9 +748,6 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
} }
}); });
if (edge_to_edge)
findViewById(R.id.nav).setPadding(0, 0, 0, Helper.dp2pixels(this, 24 + 2 * 8));
getSupportFragmentManager().addOnBackStackChangedListener(this); getSupportFragmentManager().addOnBackStackChangedListener(this);
getOnBackPressedDispatcher().addCallback(this, backPressedCallback); getOnBackPressedDispatcher().addCallback(this, backPressedCallback);

@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/nav"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:animateLayoutChanges="false" android:animateLayoutChanges="false"

Loading…
Cancel
Save