public boolean isDrawerOpen(@NonNull View drawer) {
        if (!isDrawerView(drawer)) {
            throw new IllegalArgumentException("View " + drawer + " is not a drawer");
        }
        LayoutParams drawerLp = (LayoutParams) drawer.getLayoutParams();
        return (drawerLp.openState & LayoutParams.FLAG_IS_OPENED) == 1;
    }
Check if the given drawer view is currently in an open state.
To be considered "open" the drawer must have settled into its fully
visible state. To check for partial visibility use
{@link #isDrawerVisible(android.view.View)}.

@param drawer Drawer view to check
@return true if the given drawer view is in an open state
@see #isDrawerVisible(android.view.View)
app/src/main/java/com/sunnyweather/android/ui/customerUIs/HomeDrawerLayout.java