@SuppressLint("WrongConstant")
    public void setDrawerLockMode(@LockMode int lockMode, @NonNull View drawerView) {
        if (!isDrawerView(drawerView)) {
            throw new IllegalArgumentException("View " + drawerView + " is not a "
                    + "drawer with appropriate layout_gravity");
        }
        final int gravity = ((LayoutParams) drawerView.getLayoutParams()).gravity;
        setDrawerLockMode(lockMode, gravity);
    }
Enable or disable interaction with the given drawer.

<p>This allows the application to restrict the user's ability to open or close
the given drawer. HomeDrawerLayout will still respond to calls to {@link #openDrawer(int)},
{@link #closeDrawer(int)} and friends if a drawer is locked.</p>

<p>Locking a drawer open or closed will implicitly open or close
that drawer as appropriate.</p>

@param lockMode   The new lock mode for the given drawer. One of {@link #LOCK_MODE_UNLOCKED},
                  {@link #LOCK_MODE_LOCKED_CLOSED} or {@link #LOCK_MODE_LOCKED_OPEN}.
@param drawerView The drawer view to change the lock mode for
@see #LOCK_MODE_UNLOCKED
@see #LOCK_MODE_LOCKED_CLOSED
@see #LOCK_MODE_LOCKED_OPEN
app/src/main/java/com/sunnyweather/android/ui/customerUIs/HomeDrawerLayout.java