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

Commit 8896a0d2 authored by Betty Chang's avatar Betty Chang Committed by Android (Google) Code Review
Browse files

Merge "Disable EntityHeaderController animation for item move down issue" into sc-dev

parents 9faa566e 5a23ca7c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -63,6 +63,7 @@ import androidx.preference.Preference;
import androidx.preference.PreferenceCategory;
import androidx.preference.PreferenceFragmentCompat;
import androidx.preference.PreferenceScreen;
import androidx.recyclerview.widget.RecyclerView;

import com.android.net.module.util.Inet4AddressUtils;
import com.android.settings.R;
@@ -513,6 +514,12 @@ public class WifiDetailPreferenceController2 extends AbstractPreferenceControlle

    @Override
    public void onResume() {
        // Disable the animation of the EntityHeaderController
        final RecyclerView recyclerView = mFragment.getListView();
        if (recyclerView != null) {
            recyclerView.setItemAnimator(null);
        }

        // Ensure mNetwork is set before any callbacks above are delivered, since our
        // NetworkCallback only looks at changes to mNetwork.
        updateNetworkInfo();