diff options
| author | 2017-09-29 22:51:09 +0000 | |
|---|---|---|
| committer | 2017-09-29 22:51:09 +0000 | |
| commit | a5739f199e9fd0a9a14e4442cd481ccb7d2cd21c (patch) | |
| tree | 986046c2d6bdd447796e68a8d5e3bd13a43cd183 | |
| parent | f850cd8f8dcf273818de43585bcf3fd67befdd17 (diff) | |
| parent | 264e263f57e819a016fe9b5186c0570481516a28 (diff) | |
Merge "Disable long-press home Orb animation." into oc-mr1-dev am: d81e99a963
am: 264e263f57
Change-Id: Ie6a160d0d87c558d3e29e9b6c775f72cb2b587fe
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/assist/AssistManager.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/assist/AssistManager.java b/packages/SystemUI/src/com/android/systemui/assist/AssistManager.java index c5eebccbaa72..8a8bafaf9853 100644 --- a/packages/SystemUI/src/com/android/systemui/assist/AssistManager.java +++ b/packages/SystemUI/src/com/android/systemui/assist/AssistManager.java @@ -61,6 +61,7 @@ public class AssistManager implements ConfigurationChangedReceiver { private AssistOrbContainer mView; private final DeviceProvisionedController mDeviceProvisionedController; protected final AssistUtils mAssistUtils; + private final boolean mShouldEnableOrb; private IVoiceInteractionSessionShowCallback mShowCallback = new IVoiceInteractionSessionShowCallback.Stub() { @@ -96,6 +97,7 @@ public class AssistManager implements ConfigurationChangedReceiver { | ActivityInfo.CONFIG_LOCALE | ActivityInfo.CONFIG_UI_MODE | ActivityInfo.CONFIG_SCREEN_LAYOUT | ActivityInfo.CONFIG_ASSETS_PATHS); onConfigurationChanged(context.getResources().getConfiguration()); + mShouldEnableOrb = !ActivityManager.isLowRamDeviceStatic(); } protected void registerVoiceInteractionSessionListener() { @@ -179,7 +181,9 @@ public class AssistManager implements ConfigurationChangedReceiver { private void showOrb(@NonNull ComponentName assistComponent, boolean isService) { maybeSwapSearchIcon(assistComponent, isService); - mView.show(true /* show */, true /* animate */); + if (mShouldEnableOrb) { + mView.show(true /* show */, true /* animate */); + } } private void startAssistInternal(Bundle args, @NonNull ComponentName assistComponent, |