Code example for AccessibilityManager

Methods: isEnabled

0
            onProgressRefresh(scale, fromUser);
        } 
    } 
 
    void onProgressRefresh(float scale, boolean fromUser) {
        if (mAccessibilityManager.isEnabled()) {
            scheduleAccessibilityEventSender(); 
        } 
    } 
 
    private synchronized void refreshProgress(int id, int progress, boolean fromUser) {
        if (mUiThreadId == Thread.currentThread().getId()) {
            doRefreshProgress(id, progress, fromUser, true);
        } else { 
            RefreshProgressRunnable r;
            if (mRefreshProgressRunnable != null) {
                // Use cached RefreshProgressRunnable if available 
                r = mRefreshProgressRunnable;
                // Uncache it 
                mRefreshProgressRunnable = null;
                r.setup(id, progress, fromUser);