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

Commit 8b750a02 authored by Bonian Chen's avatar Bonian Chen
Browse files

[Settings] Code refactor

Moving instances in the same place within source code.

Bug: 141833767
Test: build pass
Change-Id: I350604a64a56151195f52d38bd258e34c76e40c5
parent 8689f20c
Loading
Loading
Loading
Loading
+20 −20
Original line number Diff line number Diff line
@@ -46,6 +46,26 @@ public abstract class ActiveSubsciptionsListener
    private static final String TAG = "ActiveSubsciptions";
    private static final boolean DEBUG = false;

    private Looper mLooper;
    private Context mContext;

    private static final int STATE_NOT_LISTENING = 0;
    private static final int STATE_STOPPING      = 1;
    private static final int STATE_PREPARING     = 2;
    private static final int STATE_LISTENING     = 3;
    private static final int STATE_DATA_CACHED   = 4;

    private AtomicInteger mCacheState;
    private SubscriptionManager mSubscriptionManager;

    private IntentFilter mSubscriptionChangeIntentFilter;
    private BroadcastReceiver mSubscriptionChangeReceiver;

    private static final int MAX_SUBSCRIPTION_UNKNOWN = -1;

    private AtomicInteger mMaxActiveSubscriptionInfos;
    private List<SubscriptionInfo> mCachedActiveSubscriptionInfo;

    /**
     * Constructor
     *
@@ -93,26 +113,6 @@ public abstract class ActiveSubsciptionsListener
        };
    }

    private Looper mLooper;
    private Context mContext;

    private static final int STATE_NOT_LISTENING = 0;
    private static final int STATE_STOPPING      = 1;
    private static final int STATE_PREPARING     = 2;
    private static final int STATE_LISTENING     = 3;
    private static final int STATE_DATA_CACHED   = 4;

    private AtomicInteger mCacheState;
    private SubscriptionManager mSubscriptionManager;

    private IntentFilter mSubscriptionChangeIntentFilter;
    private BroadcastReceiver mSubscriptionChangeReceiver;

    private static final int MAX_SUBSCRIPTION_UNKNOWN = -1;

    private AtomicInteger mMaxActiveSubscriptionInfos;
    private List<SubscriptionInfo> mCachedActiveSubscriptionInfo;

    /**
     * Active subscriptions got changed
     */