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

Commit f9e3e406 authored by Rajeev Kumar's avatar Rajeev Kumar Committed by android-build-merger
Browse files

Merge "Stop showing disclosure UI when isDisclosureEnabled is false."

am: 6452cc3c

Change-Id: Ie616ed1e05c45a30b5ab20873fa07f963f0d3e49
parents 5833474d 6452cc3c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -195,7 +195,7 @@ public class AssistUtils {
        return applicationInfo.isSystemApp() || applicationInfo.isUpdatedSystemApp();
    }

    private static boolean isDisclosureEnabled(Context context) {
    public static boolean isDisclosureEnabled(Context context) {
        return Settings.Secure.getInt(context.getContentResolver(),
                Settings.Secure.ASSIST_DISCLOSURE_ENABLED, 0) != 0;
    }
+1 −1
Original line number Diff line number Diff line
@@ -343,7 +343,7 @@ public class AssistManager implements ConfigurationChangedReceiver {
        intent.setComponent(assistComponent);
        intent.putExtras(args);

        if (structureEnabled) {
        if (structureEnabled && AssistUtils.isDisclosureEnabled(mContext)) {
            showDisclosure();
        }