package com.nhpatt.asde.mvp.activities;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.nhpatt.asde.R;
import com.nhpatt.asde.models.Commit;
import com.nhpatt.asde.mvp.presenters.RiskDetailPresenter;
import com.nhpatt.asde.mvp.views.RiskDetailView;

/**
 * @author Javier Gamarra
 */
public class RiskDetailActivity extends AbstractActivity<RiskDetailPresenter>
        implements RiskDetailView {

    private TextView activityNameTextView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.risk_detail);

        bindViews();

        if (null != getIntent())
        {
            Commit commit = (Commit) getIntent().getExtras().get("commit");
            assert commit != null;
            activityNameTextView.setText(commit.getAuthor().getName());
        }

    }

    private void bindViews() {
        activityNameTextView = (TextView) findViewById(R.id.activity_name_textview);
    }

    @Override
    protected RiskDetailPresenter createPresenter() {
        return new RiskDetailPresenter(this);
    }


    @Override
    public void show(String object) {

    }
}

@@ -64,64 +64,8 @@
 le;%0A
-import android.view.View;%0Aimport android.widget.Button;%0A
 impo
@@ -675,24 +675,16 @@
 ntent())
-%0A       
  %7B%0A     

remove useless imports