resolve merge conflicts of aad998c0b4 to pi-dev-plus-aosp

Bug: None
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Icf172daeb848f746c81acd25a4406decc00ed875
Merged-In: Ib32dafbd3c6fcbe11186dc8ecab6b09c9b734067
This commit is contained in:
Dan Sandler
2018-10-17 18:56:22 -04:00
committed by Daniel Sandler
3 changed files with 12 additions and 0 deletions

View File

@@ -152,6 +152,12 @@ public class AssistUtils {
return ComponentName.unflattenFromString(setting);
}
final String defaultSetting = mContext.getResources().getString(
R.string.config_defaultAssistantComponentName);
if (defaultSetting != null) {
return ComponentName.unflattenFromString(defaultSetting);
}
// Fallback to keep backward compatible behavior when there is no user setting.
if (activeServiceSupportsAssistGesture()) {
return getActiveServiceComponentName();