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

Commit df003a7b 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 am: f9e3e406

am: 2123aad7

Change-Id: I286356883be0a88252a4ca7468f2413c73df97c7
parents 2d7c2ddf 2123aad7
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -195,7 +195,7 @@ public class AssistUtils {
        return applicationInfo.isSystemApp() || applicationInfo.isUpdatedSystemApp();
        return applicationInfo.isSystemApp() || applicationInfo.isUpdatedSystemApp();
    }
    }


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


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