Java Code Examples for android.view.accessibility.AccessibilityManager#removeAccessibilityStateChangeListener()
The following examples show how to use
android.view.accessibility.AccessibilityManager#removeAccessibilityStateChangeListener() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ChromeActivity.java From delion with Apache License 2.0 | 4 votes |
/** * This cannot be overridden in order to preserve destruction order. Override * {@link #onDestroyInternal()} instead to perform clean up tasks. */ @SuppressLint("NewApi") @Override protected final void onDestroy() { if (mReaderModeManager != null) { mReaderModeManager.destroy(); mReaderModeManager = null; } if (mContextualSearchManager != null) { mContextualSearchManager.destroy(); mContextualSearchManager = null; } if (mTabModelSelectorTabObserver != null) { mTabModelSelectorTabObserver.destroy(); mTabModelSelectorTabObserver = null; } if (mCompositorViewHolder != null) { if (mCompositorViewHolder.getLayoutManager() != null) { mCompositorViewHolder.getLayoutManager().removeSceneChangeObserver(this); } mCompositorViewHolder.shutDown(); mCompositorViewHolder = null; } onDestroyInternal(); if (mToolbarManager != null) { mToolbarManager.destroy(); mToolbarManager = null; } TabModelSelector selector = getTabModelSelector(); if (selector != null) selector.destroy(); if (mWindowAndroid != null) { mWindowAndroid.destroy(); mWindowAndroid = null; } getChromeApplication().removePolicyChangeListener(this); if (mTabContentManager != null) { mTabContentManager.destroy(); mTabContentManager = null; } AccessibilityManager manager = (AccessibilityManager) getBaseContext().getSystemService(Context.ACCESSIBILITY_SERVICE); manager.removeAccessibilityStateChangeListener(this); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { manager.removeTouchExplorationStateChangeListener(mTouchExplorationStateChangeListener); } super.onDestroy(); }
Example 2
Source File: ChromeActivity.java From AndroidChromium with Apache License 2.0 | 4 votes |
/** * This cannot be overridden in order to preserve destruction order. Override * {@link #onDestroyInternal()} instead to perform clean up tasks. */ @SuppressLint("NewApi") @Override protected final void onDestroy() { if (mReaderModeManager != null) { mReaderModeManager.destroy(); mReaderModeManager = null; } if (mContextualSearchManager != null) { mContextualSearchManager.destroy(); mContextualSearchManager = null; } if (mTabModelSelectorTabObserver != null) { mTabModelSelectorTabObserver.destroy(); mTabModelSelectorTabObserver = null; } if (mCompositorViewHolder != null) { if (mCompositorViewHolder.getLayoutManager() != null) { mCompositorViewHolder.getLayoutManager().removeSceneChangeObserver(this); } mCompositorViewHolder.shutDown(); mCompositorViewHolder = null; } onDestroyInternal(); if (mToolbarManager != null) { mToolbarManager.destroy(); mToolbarManager = null; } if (mTabModelsInitialized) { TabModelSelector selector = getTabModelSelector(); if (selector != null) selector.destroy(); } if (mWindowAndroid != null) { mWindowAndroid.destroy(); mWindowAndroid = null; } CombinedPolicyProvider.get().removePolicyChangeListener(this); if (mTabContentManager != null) { mTabContentManager.destroy(); mTabContentManager = null; } AccessibilityManager manager = (AccessibilityManager) getBaseContext().getSystemService(Context.ACCESSIBILITY_SERVICE); manager.removeAccessibilityStateChangeListener(this); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { manager.removeTouchExplorationStateChangeListener(mTouchExplorationStateChangeListener); } if (mBlimpClientContextDelegate != null) { mBlimpClientContextDelegate.destroy(); mBlimpClientContextDelegate = null; } super.onDestroy(); }
Example 3
Source File: ChromeActivity.java From 365browser with Apache License 2.0 | 4 votes |
/** * This cannot be overridden in order to preserve destruction order. Override * {@link #onDestroyInternal()} instead to perform clean up tasks. */ @SuppressLint("NewApi") @Override protected final void onDestroy() { if (mReaderModeManager != null) { mReaderModeManager.destroy(); mReaderModeManager = null; } if (mContextualSearchManager != null) { mContextualSearchManager.destroy(); mContextualSearchManager = null; } if (mTabModelSelectorTabObserver != null) { mTabModelSelectorTabObserver.destroy(); mTabModelSelectorTabObserver = null; } if (mCompositorViewHolder != null) { if (mCompositorViewHolder.getLayoutManager() != null) { mCompositorViewHolder.getLayoutManager().removeSceneChangeObserver(this); } mCompositorViewHolder.shutDown(); mCompositorViewHolder = null; } onDestroyInternal(); if (mToolbarManager != null) { mToolbarManager.destroy(); mToolbarManager = null; } if (mTabModelsInitialized) { TabModelSelector selector = getTabModelSelector(); if (selector != null) selector.destroy(); } if (mDidAddPolicyChangeListener) { CombinedPolicyProvider.get().removePolicyChangeListener(this); mDidAddPolicyChangeListener = false; } if (mTabContentManager != null) { mTabContentManager.destroy(); mTabContentManager = null; } AccessibilityManager manager = (AccessibilityManager) getBaseContext().getSystemService(Context.ACCESSIBILITY_SERVICE); manager.removeAccessibilityStateChangeListener(this); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { manager.removeTouchExplorationStateChangeListener(mTouchExplorationStateChangeListener); } super.onDestroy(); }
Example 4
Source File: i.java From MiBandDecompiled with Apache License 2.0 | 4 votes |
public static boolean b(AccessibilityManager accessibilitymanager, Object obj) { return accessibilitymanager.removeAccessibilityStateChangeListener((android.view.accessibility.AccessibilityManager.AccessibilityStateChangeListener)obj); }
Example 5
Source File: AccessibilityManagerCompatIcs.java From CodenameOne with GNU General Public License v2.0 | 4 votes |
public static boolean removeAccessibilityStateChangeListener(AccessibilityManager manager, Object listener) { return manager.removeAccessibilityStateChangeListener( (AccessibilityStateChangeListener)listener); }
Example 6
Source File: AccessibilityManagerCompatIcs.java From adt-leanback-support with Apache License 2.0 | 4 votes |
public static boolean removeAccessibilityStateChangeListener(AccessibilityManager manager, Object listener) { return manager.removeAccessibilityStateChangeListener( (AccessibilityStateChangeListener)listener); }
Example 7
Source File: AccessibilityManagerCompatIcs.java From V.FlyoutTest with MIT License | 4 votes |
public static boolean removeAccessibilityStateChangeListener(AccessibilityManager manager, Object listener) { return manager.removeAccessibilityStateChangeListener( (AccessibilityStateChangeListener)listener); }
Example 8
Source File: AccessibilityManagerCompatIcs.java From guideshow with MIT License | 4 votes |
public static boolean removeAccessibilityStateChangeListener(AccessibilityManager manager, Object listener) { return manager.removeAccessibilityStateChangeListener( (AccessibilityStateChangeListener)listener); }