Merge "Stop showing disclosure UI when isDisclosureEnabled is false." am: 6452cc3cc1 am: f9e3e40676 am: 2123aad7ab
am: df003a7ba1
Change-Id: I463fa34afc551e61b7367525acc1a180d0d7376b
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -339,7 +339,7 @@ public class AssistManager implements ConfigurationChangedReceiver {
|
||||
intent.setComponent(assistComponent);
|
||||
intent.putExtras(args);
|
||||
|
||||
if (structureEnabled) {
|
||||
if (structureEnabled && AssistUtils.isDisclosureEnabled(mContext)) {
|
||||
showDisclosure();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user