Merge "[Settings] Enable access from non-UI thread" into rvc-dev am: 068eb89251 am: 3ce8cab000 am: 23c89aced8

Change-Id: I179e9c57c9672684b2e1d772d4c64b4cb6dd4d2e
This commit is contained in:
Bonian Chen
2020-05-04 11:29:28 +00:00
committed by Automerger Merge Worker
2 changed files with 2 additions and 1 deletions

View File

@@ -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;

View File

@@ -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>();