From 7d7d5864d4c18fd6756510a836671775367dbc4a Mon Sep 17 00:00:00 2001 From: Vavassor Date: Mon, 26 Jun 2017 14:51:39 -0400 Subject: [PATCH] Adjusts the media label alignment in statuses. --- .../main/java/com/keylesspalace/tusky/ComposeActivity.java | 2 +- app/src/main/res/layout/item_status.xml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java b/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java index 8c6ad64c..5c20d627 100644 --- a/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java +++ b/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java @@ -444,7 +444,7 @@ public class ComposeActivity extends BaseActivity implements ComposeOptionsFragm } private void doErrorDialog(@StringRes int descriptionId, @StringRes int actionId, - View.OnClickListener listener) { + View.OnClickListener listener) { Snackbar bar = Snackbar.make(findViewById(R.id.activity_compose), getString(descriptionId), Snackbar.LENGTH_SHORT); bar.setAction(actionId, listener); diff --git a/app/src/main/res/layout/item_status.xml b/app/src/main/res/layout/item_status.xml index 7beb4a92..bf1e6664 100644 --- a/app/src/main/res/layout/item_status.xml +++ b/app/src/main/res/layout/item_status.xml @@ -240,7 +240,9 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/status_media_label" - android:visibility="gone" /> + android:visibility="gone" + android:gravity="center_vertical" + android:includeFontPadding="false" />