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

Commit f14e6751 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Reduce jank in User Settings

Don't recreate the list on resume.
Cache the default circled icon.

Bug: 8802380
Change-Id: I46520b591fc3ffd5e51a1c7dda86e811c03a76a2
parent 503783c4
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -201,15 +201,10 @@ public class UserSettings extends SettingsPreferenceFragment
        loadProfile();
        setHasOptionsMenu(true);
        IntentFilter filter = new IntentFilter(Intent.ACTION_USER_REMOVED);
        filter.addAction(Intent.ACTION_USER_ADDED);
        filter.addAction(Intent.ACTION_USER_INFO_CHANGED);
        getActivity().registerReceiverAsUser(mUserChangeReceiver, UserHandle.ALL, filter, null,
                mHandler);
    }

    @Override
    public void onResume() {
        super.onResume();
        loadProfile();
        updateUserList();
    }