Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a69a03c8 authored by Annie Chin's avatar Annie Chin Committed by Android (Google) Code Review
Browse files

Merge "Set accessibility traversal for fab. Remove AccessibilityDelegate." into ub-deskclock-army

parents 8db79824 744a6928
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -69,10 +69,11 @@
        android:layout_marginBottom="@dimen/footer_button_layout_margin" >
        <ImageButton
            android:id="@+id/menu_button"
            android:contentDescription="@string/button_menu"
            style="?android:attr/actionOverflowButtonStyle"
            android:layout_gravity="end|center_vertical"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />
            android:layout_height="wrap_content"
            android:accessibilityTraversalAfter="@+id/fab"
            android:contentDescription="@string/button_menu" />
    </FrameLayout>
</FrameLayout>
+3 −2
Original line number Diff line number Diff line
@@ -31,10 +31,11 @@
        android:layout_marginBottom="@dimen/footer_button_layout_margin" >
        <ImageButton
            android:id="@+id/menu_button"
            android:contentDescription="@string/button_menu"
            style="?android:attr/actionOverflowButtonStyle"
            android:layout_gravity="end|center_vertical"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />
            android:layout_height="wrap_content"
            android:accessibilityTraversalAfter="@+id/fab"
            android:contentDescription="@string/button_menu" />
    </FrameLayout>
</FrameLayout>
+3 −0
Original line number Diff line number Diff line
@@ -124,6 +124,9 @@ public class DeskClock extends BaseActivity implements
            mViewPager = (ViewPager) findViewById(R.id.desk_clock_pager);
            // Keep all four tabs to minimize jank.
            mViewPager.setOffscreenPageLimit(3);
            // Set Accessibility Delegate to null so ViewPager doesn't intercept movements and
            // prevent the fab from being selected.
            mViewPager.setAccessibilityDelegate(null);
            mTabsAdapter = new TabsAdapter(this, mViewPager);
            createTabs(mSelectedTab);
        }