Loading src/com/android/calculator2/CalculatorPadViewPager.java +6 −2 Original line number Diff line number Diff line Loading @@ -58,7 +58,11 @@ public class CalculatorPadViewPager extends ViewPager { @Override public void onPageSelected(int position) { for (int i = getChildCount() - 1; i >= 0; --i) { getChildAt(i).setImportantForAccessibility(i == position final View child = getChildAt(i); // Prevent clicks and accessibility focus from going through to descendants of // other pages which are covered by the current page. child.setClickable(i == position); child.setImportantForAccessibility(i == position ? IMPORTANT_FOR_ACCESSIBILITY_AUTO : IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS); } Loading Loading
src/com/android/calculator2/CalculatorPadViewPager.java +6 −2 Original line number Diff line number Diff line Loading @@ -58,7 +58,11 @@ public class CalculatorPadViewPager extends ViewPager { @Override public void onPageSelected(int position) { for (int i = getChildCount() - 1; i >= 0; --i) { getChildAt(i).setImportantForAccessibility(i == position final View child = getChildAt(i); // Prevent clicks and accessibility focus from going through to descendants of // other pages which are covered by the current page. child.setClickable(i == position); child.setImportantForAccessibility(i == position ? IMPORTANT_FOR_ACCESSIBILITY_AUTO : IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS); } Loading