/* -*- Mode: Java; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: nil; -*-
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

package org.mozilla.focus.menu.browser;

import android.view.View;
import android.widget.TextView;

import org.mozilla.focus.R;

/* package-private */ class MenuItemViewHolder extends BrowserMenuViewHolder {
    /* package-private */ static final int LAYOUT_ID = R.layout.menu_item;

    private final TextView menuItemView;

    /* package-private */ MenuItemViewHolder(View itemView) {
        super(itemView);

        menuItemView = (TextView) itemView;
    }


    /* package-private */ void bind(BrowserMenuAdapter.MenuItem.Default menuItem) {
        menuItemView.setId(menuItem.getId());
        menuItemView.setText(menuItem.getLabel());
        menuItemView.setCompoundDrawablesRelativeWithIntrinsicBounds(menuItem.getDrawableResId(), 0, 0, 0);
    
        final boolean isLoading = browserFragment.getSession().getLoading().getValue();

        if ((menuItem.getId() == R.id.add_to_homescreen || menuItem.getId() == R.id.find_in_page) && isLoading) {
            menuItemView.setTextColor(browserFragment.getResources().getColor(R.color.colorTextInactive));
            menuItemView.setClickable(false);
        } else {
            menuItemView.setOnClickListener(this);
        }
    }
}

@@ -743,17 +743,16 @@
 %0A    %7D%0A%0A
-%0A
     /* p
@@ -993,16 +993,33 @@
 cBounds(
+%0A                
 menuItem
@@ -1042,23 +1042,76 @@
 d(),
- 0, 0, 0);%0A    
+%0A                0,%0A                0,%0A                0%0A        );%0A
 %0A   

Fix trailing whitespace codestyle error