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

Commit 80edde75 authored by Bonian Chen's avatar Bonian Chen
Browse files

[Settings] Enable access from non-UI thread

To support query from settings intelligent, these listeners need to
support accessing from non-UI thread.

Bug: 149543756
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=ActiveSubsciptionsListenerTest
Merged-In: I768f41f76d0223634be2b728d33fa0cfcc69fe69
Change-Id: I5d076d95410a2d904f8ebb1d82df90dd6aa52099
parent 3e545f2b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -73,6 +73,7 @@ public abstract class ActiveSubsciptionsListener
     * @param context {@code Context} of this listener
     */
    public ActiveSubsciptionsListener(Looper looper, Context context) {
        super(looper);
        mLooper = looper;
        mContext = context;

+1 −1
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ public class ProxySubscriptionManager implements LifecycleObserver {
    private static ProxySubscriptionManager sSingleton;

    private ProxySubscriptionManager(Context context) {
        final Looper looper = Looper.getMainLooper();
        final Looper looper = context.getMainLooper();

        mActiveSubscriptionsListeners =
                new ArrayList<OnActiveSubscriptionChangedListener>();