From f7c76f7503082eaf82955a1ba0cad962b75386b2 Mon Sep 17 00:00:00 2001 From: FineFindus Date: Tue, 16 May 2023 21:50:54 +0200 Subject: [PATCH] feat(settings): add summary label to button --- .../settings/SettingsBaseFragment.java | 30 ++++++++++---- .../main/res/layout/item_settings_button.xml | 39 +++++++++++++------ 2 files changed, 50 insertions(+), 19 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/SettingsBaseFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/SettingsBaseFragment.java index 9505fb5f5..8a5ce06ab 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/SettingsBaseFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/SettingsBaseFragment.java @@ -8,10 +8,10 @@ import android.graphics.Canvas; import android.graphics.Rect; import android.os.Build; import android.os.Bundle; +import android.text.TextUtils; import android.util.TypedValue; import android.view.Gravity; import android.view.LayoutInflater; -import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.view.WindowInsets; @@ -241,12 +241,20 @@ public abstract class SettingsBaseFragment extends MastodonToolbarFragment imple protected class ButtonItem extends Item{ - private int text; + private int title; + private int summary; private int icon; private Consumer