Update app grid options after changing grid
Forces a reload of grid options after setting so that the new options
are cached for next time the picker is launched.
Fixes: 274929417
Test: manually verified that new choice is shown selected
Change-Id: Ib21767a434891fba79b4c691ec488df9b861d73b
diff --git a/src/com/android/customization/picker/grid/GridFragment.java b/src/com/android/customization/picker/grid/GridFragment.java
index b0b1107..00ae21b 100644
--- a/src/com/android/customization/picker/grid/GridFragment.java
+++ b/src/com/android/customization/picker/grid/GridFragment.java
@@ -82,6 +82,7 @@
private final Callback mApplyGridCallback = new Callback() {
@Override
public void onSuccess() {
+ mGridManager.fetchOptions(unused -> {}, true);
Toast.makeText(getContext(), R.string.applied_grid_msg, Toast.LENGTH_SHORT).show();
getActivity().overridePendingTransition(R.anim.fade_in, R.anim.fade_out);
getActivity().finish();