Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 96731496 authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

Allow permission descriptions to be more lines

Note: There is currently a bug in the preferences API which causes
setSingleLineTitle to not work correctly.

Fixes: 37225817
Test: Fixed the bug in the Preferences code and saw multiple lines to be
      used

Change-Id: I6d3b8dcea1b81c587ae0a84f106435b0a6c1f2cd
parent 422da192
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -259,6 +259,7 @@ public final class AllAppPermissionsFragment extends SettingsWithHeader {
        }
        pref.setIcon(Utils.applyTint(getContext(), icon, android.R.attr.colorControlNormal));
        pref.setTitle(perm.loadLabel(pm));
        pref.setSingleLineTitle(false);
        final CharSequence desc = perm.loadDescription(pm);

        pref.setOnPreferenceClickListener((Preference preference) -> {