Exposing some private methods to easily customize widgets popup

Change-Id: Ie7bd879200b1f14d472ff03fd64429930651a39f
This commit is contained in:
Sunny Goyal
2018-07-13 11:03:04 -07:00
parent 0b74a7fe5e
commit db6cdb07e8
7 changed files with 29 additions and 19 deletions

View File

@@ -71,7 +71,7 @@ public class WidgetsBottomSheet extends BaseWidgetSheet implements Insettable {
onWidgetsBound();
mLauncher.getDragLayer().addView(this);
getPopupContainer().addView(this);
mIsOpen = false;
animateOpen();
}
@@ -118,7 +118,7 @@ public class WidgetsBottomSheet extends BaseWidgetSheet implements Insettable {
LayoutInflater.from(getContext()).inflate(R.layout.widget_list_divider, parent, true);
}
private WidgetCell addItemCell(ViewGroup parent) {
protected WidgetCell addItemCell(ViewGroup parent) {
WidgetCell widget = (WidgetCell) LayoutInflater.from(getContext()).inflate(
R.layout.widget_cell, parent, false);