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

Commit cef28d37 authored by Libo Jin's avatar Libo Jin
Browse files

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

Change-Id: I857bcc3ce1efc3ce2180cb09e6b34623e53e2ab2
CRs-Fixed: 1083472
parent 16919ca1
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) {}