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

Commit 1d4c5be0 authored by Sunny Shao's avatar Sunny Shao
Browse files

Fixed extra padding in "Open by default" page

- Page layout redesign.

Bug: 184228266
Test: manual test
Change-Id: I1323ca14b1843a95ba1210674595ee3ba1a94c67
parent bcc288e8
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -23,10 +23,6 @@
        android:key="open_by_default_supported_links"
        android:title="@string/app_launch_open_domain_urls_title"/>

    <com.android.settingslib.widget.TopIntroPreference
        android:key="open_by_default_top_intro"
        android:title="@string/app_launch_top_intro_message"/>

    <PreferenceCategory
        android:layout="@layout/preference_category_no_label"
        android:key="open_by_default_main_category"
+2 −1
Original line number Diff line number Diff line
@@ -191,12 +191,13 @@ public class AppLaunchSettings extends AppInfoBase implements
            return;
        }
        final Activity activity = getActivity();
        final String summary = activity.getString(R.string.app_launch_top_intro_message);
        final Preference pref = EntityHeaderController
                .newInstance(activity, this, null /* header */)
                .setRecyclerView(getListView(), getSettingsLifecycle())
                .setIcon(Utils.getBadgedIcon(mContext, mPackageInfo.applicationInfo))
                .setLabel(mPackageInfo.applicationInfo.loadLabel(mPm))
                .setSummary("" /* summary */)  // no version number
                .setSummary(summary)  // add intro text
                .setIsInstantApp(AppUtils.isInstant(mPackageInfo.applicationInfo))
                .setPackageName(mPackageName)
                .setUid(mPackageInfo.applicationInfo.uid)