Loading core/java/android/view/ViewRootImpl.java +3 −3 Original line number Diff line number Diff line Loading @@ -417,7 +417,8 @@ public final class ViewRootImpl implements ViewParent, private boolean mUseBLASTAdapter; private boolean mForceDisableBLAST; private boolean mFastScrollSoundEffectsEnabled; /** lazily-initialized in getAudioManager() */ private boolean mFastScrollSoundEffectsEnabled = false; /** * Signals that compatibility booleans have been initialized according to Loading Loading @@ -1028,8 +1029,6 @@ public final class ViewRootImpl implements ViewParent, loadSystemProperties(); mImeFocusController = new ImeFocusController(this); AudioManager audioManager = mContext.getSystemService(AudioManager.class); mFastScrollSoundEffectsEnabled = audioManager.areNavigationRepeatSoundEffectsEnabled(); mScrollCaptureRequestTimeout = SCROLL_CAPTURE_REQUEST_TIMEOUT_MILLIS; mOnBackInvokedDispatcher = new WindowOnBackInvokedDispatcher(context); Loading Loading @@ -8340,6 +8339,7 @@ public final class ViewRootImpl implements ViewParent, } if (mAudioManager == null) { mAudioManager = (AudioManager) mView.getContext().getSystemService(Context.AUDIO_SERVICE); mFastScrollSoundEffectsEnabled = mAudioManager.areNavigationRepeatSoundEffectsEnabled(); } return mAudioManager; } Loading Loading
core/java/android/view/ViewRootImpl.java +3 −3 Original line number Diff line number Diff line Loading @@ -417,7 +417,8 @@ public final class ViewRootImpl implements ViewParent, private boolean mUseBLASTAdapter; private boolean mForceDisableBLAST; private boolean mFastScrollSoundEffectsEnabled; /** lazily-initialized in getAudioManager() */ private boolean mFastScrollSoundEffectsEnabled = false; /** * Signals that compatibility booleans have been initialized according to Loading Loading @@ -1028,8 +1029,6 @@ public final class ViewRootImpl implements ViewParent, loadSystemProperties(); mImeFocusController = new ImeFocusController(this); AudioManager audioManager = mContext.getSystemService(AudioManager.class); mFastScrollSoundEffectsEnabled = audioManager.areNavigationRepeatSoundEffectsEnabled(); mScrollCaptureRequestTimeout = SCROLL_CAPTURE_REQUEST_TIMEOUT_MILLIS; mOnBackInvokedDispatcher = new WindowOnBackInvokedDispatcher(context); Loading Loading @@ -8340,6 +8339,7 @@ public final class ViewRootImpl implements ViewParent, } if (mAudioManager == null) { mAudioManager = (AudioManager) mView.getContext().getSystemService(Context.AUDIO_SERVICE); mFastScrollSoundEffectsEnabled = mAudioManager.areNavigationRepeatSoundEffectsEnabled(); } return mAudioManager; } Loading