From c499ff8f0af1f0861a4c8f915990ab69c3063d88 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 1 Apr 2019 11:03:27 +0200 Subject: [PATCH] Small layout improvement --- app/src/main/java/eu/faircode/email/ActivityView.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityView.java b/app/src/main/java/eu/faircode/email/ActivityView.java index 1a19293ec7..2cc2b9d688 100644 --- a/app/src/main/java/eu/faircode/email/ActivityView.java +++ b/app/src/main/java/eu/faircode/email/ActivityView.java @@ -34,6 +34,7 @@ import android.os.Bundle; import android.os.Handler; import android.os.ParcelFileDescriptor; import android.text.TextUtils; +import android.view.Gravity; import android.view.LayoutInflater; import android.view.MenuItem; import android.view.View; @@ -794,8 +795,11 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB @Override protected void onExecuted(Bundle args, UpdateInfo info) { if (info == null) { - if (args.getBoolean("always")) - Toast.makeText(ActivityView.this, BuildConfig.VERSION_NAME, Toast.LENGTH_LONG).show(); + if (args.getBoolean("always")) { + Toast toast = Toast.makeText(ActivityView.this, BuildConfig.VERSION_NAME, Toast.LENGTH_LONG); + toast.setGravity(Gravity.CENTER, 0, 0); + toast.show(); + } return; }