Fix loyalty card viewer appbar top margin

This commit is contained in:
Sylvia van Os
2021-07-14 20:08:28 +02:00
parent 7987932100
commit feabe353b0
3 changed files with 3 additions and 4 deletions

View File

@@ -16,6 +16,7 @@ Changes:
- Fix useless whitespace in notes from Fidme import
- Support new Voucher Vault export format
- Fix Floating Action Buttons being behind other UI elements on Android 4
- Fix loyalty card viewer appbar top margin
## v1.14.1 (2021-06-14)

View File

@@ -719,7 +719,6 @@ public class LoyaltyCardViewActivity extends AppCompatActivity
// Or the barcode will be centered instead of on top of the screen
// Don't ask me why...
appBarLayout.setVisibility(View.INVISIBLE);
appBarLayout.setPadding(0, 0, 0, 0);
collapsingToolbarLayout.setVisibility(View.GONE);
findViewById(R.id.toolbar_landscape).setVisibility(View.GONE);
@@ -768,7 +767,6 @@ public class LoyaltyCardViewActivity extends AppCompatActivity
appBarLayout.setVisibility(View.VISIBLE);
DisplayMetrics metrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(metrics);
appBarLayout.setPadding(0, (int) Math.ceil(metrics.density * 24), 0, 0);
setupOrientation();
// Show other UI elements

View File

@@ -259,7 +259,6 @@
android:clipToPadding="false"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingTop="24dp"
android:weightSum="1.0"
android:fitsSystemWindows="true">
<com.google.android.material.appbar.CollapsingToolbarLayout
@@ -305,6 +304,7 @@
android:layout_width="fill_parent"
android:layout_height="?actionBarSize"
app:contentInsetStart="72.0dip"
app:layout_collapseMode="pin" />
app:layout_collapseMode="pin"
android:paddingTop="6dp" />
</com.google.android.material.appbar.AppBarLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>