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

Commit be9da9f0 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Settings: Fix the thread calling conflict between main thread and Bg thread."

parents ae078375 cef28d37
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -630,7 +630,7 @@ public class WifiSettings extends RestrictedSettingsFragment
     * the strength of network and the security for it.
     */
    @Override
    public void onAccessPointsChanged() {
    public synchronized void onAccessPointsChanged() {
        // Safeguard from some delayed event handling
        if (getActivity() == null) return;
        if (isUiRestricted()) {
@@ -903,7 +903,7 @@ public class WifiSettings extends RestrictedSettingsFragment
    }

    @Override
    public void onAccessPointChanged(AccessPoint accessPoint) {
    public synchronized void onAccessPointChanged(AccessPoint accessPoint) {
        try {
            ((LongPressAccessPointPreference) accessPoint.getTag()).refresh();
        } catch (NullPointerException ig) {}