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

Commit 1b91c410 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Initialize content resolver in ctor" into sc-v2-dev am: c07b6d26 am: b2526070

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16373383

Change-Id: Id60a72da081a9d44e31890a8e28b98fad9bdbd9c
parents d5dc468c b2526070
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -109,6 +109,7 @@ public final class NavBarHelper implements
            UserTracker userTracker,
            DumpManager dumpManager) {
        mContext = context;
        mContentResolver = mContext.getContentResolver();
        mAccessibilityManager = accessibilityManager;
        mAssistManagerLazy = assistManagerLazy;
        mStatusBarOptionalLazy = statusBarOptionalLazy;
@@ -124,7 +125,6 @@ public final class NavBarHelper implements
    }

    public void init() {
        mContentResolver = mContext.getContentResolver();
        mContentResolver.registerContentObserver(
                Settings.Secure.getUriFor(Settings.Secure.ASSISTANT),
                false /* notifyForDescendants */, mAssistContentObserver, UserHandle.USER_ALL);