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

Commit c883ee5e authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Small improvements for issue #5225666

Sort disabled apps to the bottom of the list to make them easier to
find together.

Also change the order of the tabs because with the new layout anything
after the third tab is buried so put all apps at the end so the running
tab is more visible.

Change-Id: Id022fdbf366505cf0da3fb9a6270c3f2e2704d51
parent 427a7ba1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -153,6 +153,9 @@ public class ApplicationsState {
        private final Collator sCollator = Collator.getInstance();
        @Override
        public int compare(AppEntry object1, AppEntry object2) {
            if (object1.info.enabled != object2.info.enabled) {
                return object1.info.enabled ? -1 : 1;
            }
            return sCollator.compare(object1.label, object2.label);
        }
    };
+4 −4
Original line number Diff line number Diff line
@@ -628,10 +628,6 @@ public class ManageApplications extends Fragment implements
                .setIndicator(getActivity().getString(R.string.filter_apps_third_party),
                        getActivity().getResources().getDrawable(R.drawable.ic_tab_download))
                .setContent(this));
        tabHost.addTab(tabHost.newTabSpec(TAB_ALL)
                .setIndicator(getActivity().getString(R.string.filter_apps_all),
                        getActivity().getResources().getDrawable(R.drawable.ic_tab_all))
                .setContent(this));
        if (!Environment.isExternalStorageEmulated()) {
            tabHost.addTab(tabHost.newTabSpec(TAB_SDCARD)
                    .setIndicator(getActivity().getString(R.string.filter_apps_onsdcard),
@@ -642,6 +638,10 @@ public class ManageApplications extends Fragment implements
                .setIndicator(getActivity().getString(R.string.filter_apps_running),
                        getActivity().getResources().getDrawable(R.drawable.ic_tab_running))
                .setContent(this));
        tabHost.addTab(tabHost.newTabSpec(TAB_ALL)
                .setIndicator(getActivity().getString(R.string.filter_apps_all),
                        getActivity().getResources().getDrawable(R.drawable.ic_tab_all))
                .setContent(this));
        tabHost.setCurrentTabByTag(mDefaultTab);
        tabHost.setOnTabChangedListener(this);