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

Commit e3f4b5dc authored by chihhangchuang's avatar chihhangchuang
Browse files

Get rid of EnumSet for BottomActionBar and caller

Also refactor for BottomActionBar

Test: Manually
Bug: 151287328
Change-Id: I8cb4ca45584d554f95d55fc365c31903e51e6b74
parent 8e91f9aa
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -66,7 +66,6 @@ import com.android.wallpaper.widget.PreviewPager;
import com.bumptech.glide.Glide;
import com.bumptech.glide.request.RequestOptions;

import java.util.EnumSet;
import java.util.List;

/**
@@ -173,7 +172,7 @@ public class GridFragment extends AppbarFragment {
    @Override
    protected void onBottomActionBarReady(BottomActionBar bottomActionBar) {
        mBottomActionBar = bottomActionBar;
        mBottomActionBar.showActionsOnly(EnumSet.of(CANCEL, APPLY));
        mBottomActionBar.showActionsOnly(CANCEL, APPLY);
        mBottomActionBar.setActionClickListener(CANCEL, unused -> getActivity().onBackPressed());
        mBottomActionBar.setActionClickListener(APPLY, unused -> {
            mBottomActionBar.disableActions();