<commit_before>package com.aldoborrero.tinderjs.ui.widgets;

import android.content.Context;
import android.util.AttributeSet;

import com.aldoborrero.tinderjs.utils.Dimens;

public class DrawerContainerFrameLayout extends ScrimInsetsFrameLayout {

    private int actionBarSize;

    public DrawerContainerFrameLayout(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public DrawerContainerFrameLayout(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
        this.actionBarSize = Dimens.getActionBarSize(context);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
        // See http://www.google.com/design/spec/layout/structure.html#structure-side-nav
        setMinimumWidth(Dimens.getScreenWidth(getContext()) - actionBarSize);
    }
<commit_msg>Changed method to use setMeasuredDimension (better than the other one).<commit_after>package com.aldoborrero.tinderjs.ui.widgets;

import android.content.Context;
import android.util.AttributeSet;

import com.aldoborrero.tinderjs.utils.Dimens;

public class DrawerContainerFrameLayout extends ScrimInsetsFrameLayout {

    private int actionBarSize;

    public DrawerContainerFrameLayout(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public DrawerContainerFrameLayout(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
        this.actionBarSize = Dimens.getActionBarSize(context);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
        // See http://www.google.com/design/spec/layout/structure.html#structure-side-nav
        int width = Dimens.getScreenWidth(getContext()) - actionBarSize;
        setMeasuredDimension(width, getMeasuredHeight());
    }

{'fraction_non_alphanumeric': 0.08756919979869149, 'fraction_numerical': 0.0010065425264217413, 'mean_word_length': 4.287234042553192, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2897019', 'n_tokens_mistral': 559, 'n_tokens_neox': 557, 'n_words': 111}