Get rid of EnumSet for BottomActionBar and caller
Also refactor for BottomActionBar
Test: Manually
Bug: 151287328
Change-Id: I8cb4ca45584d554f95d55fc365c31903e51e6b74
diff --git a/src/com/android/customization/picker/grid/GridFragment.java b/src/com/android/customization/picker/grid/GridFragment.java
index fb5af3f..6e63a10 100644
--- a/src/com/android/customization/picker/grid/GridFragment.java
+++ b/src/com/android/customization/picker/grid/GridFragment.java
@@ -66,7 +66,6 @@
import com.bumptech.glide.Glide;
import com.bumptech.glide.request.RequestOptions;
-import java.util.EnumSet;
import java.util.List;
/**
@@ -173,7 +172,7 @@
@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();