Merge "[Settings] Enable access from non-UI thread" am: 9ec200f85c
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1390817 Change-Id: I0c69063cb7e4e0e689c00cfeeea56d63fc878568
This commit is contained in:
@@ -73,6 +73,7 @@ public abstract class ActiveSubsciptionsListener
|
|||||||
* @param context {@code Context} of this listener
|
* @param context {@code Context} of this listener
|
||||||
*/
|
*/
|
||||||
public ActiveSubsciptionsListener(Looper looper, Context context) {
|
public ActiveSubsciptionsListener(Looper looper, Context context) {
|
||||||
|
super(looper);
|
||||||
mLooper = looper;
|
mLooper = looper;
|
||||||
mContext = context;
|
mContext = context;
|
||||||
|
|
||||||
|
@@ -72,7 +72,7 @@ public class ProxySubscriptionManager implements LifecycleObserver {
|
|||||||
private static ProxySubscriptionManager sSingleton;
|
private static ProxySubscriptionManager sSingleton;
|
||||||
|
|
||||||
private ProxySubscriptionManager(Context context) {
|
private ProxySubscriptionManager(Context context) {
|
||||||
final Looper looper = Looper.getMainLooper();
|
final Looper looper = context.getMainLooper();
|
||||||
|
|
||||||
mActiveSubscriptionsListeners =
|
mActiveSubscriptionsListeners =
|
||||||
new ArrayList<OnActiveSubscriptionChangedListener>();
|
new ArrayList<OnActiveSubscriptionChangedListener>();
|
||||||
|
Reference in New Issue
Block a user