Loading policy/src/com/android/internal/policy/impl/keyguard/KeyguardWidgetPager.java +24 −0 Original line number Diff line number Diff line Loading @@ -183,6 +183,22 @@ public class KeyguardWidgetPager extends PagedView implements PagedView.PageSwit } } private void updateWidgetFramesImportantForAccessibility() { final int pageCount = getPageCount(); for (int i = 0; i < pageCount; i++) { KeyguardWidgetFrame frame = getWidgetPageAt(i); updateWidgetFrameImportantForAccessibility(frame); } } private void updateWidgetFrameImportantForAccessibility(KeyguardWidgetFrame frame) { if (frame.getContentAlpha() <= 0) { frame.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_NO); } else { frame.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_YES); } } private void userActivity() { if (mCallbacks != null) { mCallbacks.onUserActivityTimeoutChanged(); Loading Loading @@ -308,6 +324,7 @@ public class KeyguardWidgetPager extends PagedView implements PagedView.PageSwit content.getContentDescription()); frame.setContentDescription(contentDescription); } updateWidgetFrameImportantForAccessibility(frame); } /** Loading Loading @@ -544,6 +561,12 @@ public class KeyguardWidgetPager extends PagedView implements PagedView.PageSwit } } @Override void setCurrentPage(int currentPage) { super.setCurrentPage(currentPage); updateWidgetFramesImportantForAccessibility(); } @Override public void onAttachedToWindow() { super.onAttachedToWindow(); Loading Loading @@ -650,6 +673,7 @@ public class KeyguardWidgetPager extends PagedView implements PagedView.PageSwit if (!show) { disablePageLayers(); } updateWidgetFramesImportantForAccessibility(); } }); mChildrenOutlineFadeAnimation.start(); Loading Loading
policy/src/com/android/internal/policy/impl/keyguard/KeyguardWidgetPager.java +24 −0 Original line number Diff line number Diff line Loading @@ -183,6 +183,22 @@ public class KeyguardWidgetPager extends PagedView implements PagedView.PageSwit } } private void updateWidgetFramesImportantForAccessibility() { final int pageCount = getPageCount(); for (int i = 0; i < pageCount; i++) { KeyguardWidgetFrame frame = getWidgetPageAt(i); updateWidgetFrameImportantForAccessibility(frame); } } private void updateWidgetFrameImportantForAccessibility(KeyguardWidgetFrame frame) { if (frame.getContentAlpha() <= 0) { frame.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_NO); } else { frame.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_YES); } } private void userActivity() { if (mCallbacks != null) { mCallbacks.onUserActivityTimeoutChanged(); Loading Loading @@ -308,6 +324,7 @@ public class KeyguardWidgetPager extends PagedView implements PagedView.PageSwit content.getContentDescription()); frame.setContentDescription(contentDescription); } updateWidgetFrameImportantForAccessibility(frame); } /** Loading Loading @@ -544,6 +561,12 @@ public class KeyguardWidgetPager extends PagedView implements PagedView.PageSwit } } @Override void setCurrentPage(int currentPage) { super.setCurrentPage(currentPage); updateWidgetFramesImportantForAccessibility(); } @Override public void onAttachedToWindow() { super.onAttachedToWindow(); Loading Loading @@ -650,6 +673,7 @@ public class KeyguardWidgetPager extends PagedView implements PagedView.PageSwit if (!show) { disablePageLayers(); } updateWidgetFramesImportantForAccessibility(); } }); mChildrenOutlineFadeAnimation.start(); Loading