@SuppressLint("WrongConstant")
    @LockMode
    public int getDrawerLockMode(@NonNull View drawerView) {
        if (!isDrawerView(drawerView)) {
            throw new IllegalArgumentException("View " + drawerView + " is not a drawer");
        }
        final int drawerGravity = ((LayoutParams) drawerView.getLayoutParams()).gravity;
        return getDrawerLockMode(drawerGravity);
    }
Check the lock mode of the given drawer view.

@param drawerView Drawer view to check lock mode
@return one of {@link #LOCK_MODE_UNLOCKED}, {@link #LOCK_MODE_LOCKED_CLOSED} or
{@link #LOCK_MODE_LOCKED_OPEN}.
app/src/main/java/com/sunnyweather/android/ui/customerUIs/HomeDrawerLayout.java