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

Commit 5e650fba authored by chihhangchuang's avatar chihhangchuang
Browse files

Cleanup for BottomActionBar

- Remove the duplicated API, we don't need two same APIs.
- Remove the duplicated back key binding, since it's done in BottomActionBarFragment.

Test: Manually
Bug: 155157385
Change-Id: I682ebe67f5b7187a1434960d553063b8c6f9d3f6
parent 27954786
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -137,7 +137,6 @@ public class GridFullPreviewFragment extends AppbarFragment {

    @Override
    protected void onBottomActionBarReady(BottomActionBar bottomActionBar) {
        bottomActionBar.bindBackButtonToSystemBackKey(getActivity());
        bottomActionBar.showActionsOnly(APPLY);
        bottomActionBar.setActionClickListener(APPLY, v -> finishActivityWithResultOk());
        bottomActionBar.show();
+0 −1
Original line number Diff line number Diff line
@@ -165,7 +165,6 @@ public class ThemeFragment extends AppbarFragment {
    @Override
    protected void onBottomActionBarReady(BottomActionBar bottomActionBar) {
        mBottomActionBar = bottomActionBar;
        mBottomActionBar.bindBackButtonToSystemBackKey(getActivity());
        mBottomActionBar.showActionsOnly(APPLY);
        mBottomActionBar.setActionClickListener(APPLY, v -> applyTheme());
    }