package com.moyinoluwa.makeupsearch.presentation.search;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.Toast;

import com.moyinoluwa.makeupsearch.R;

public class MakeUpSearchActivity extends AppCompatActivity {

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

        String message = getIntent().getStringExtra("product_selected") + " from " +  getIntent()
                .getStringExtra("brand_selected");

        Toast.makeText(this, message, Toast.LENGTH_LONG).show();
    }
}

@@ -198,70 +198,396 @@
 .R;%0A
-%0Apublic class MakeUpSearchActivity extends AppCompatActivity %7B
+import com.moyinoluwa.makeupsearch.data.remote.model.MakeUp;%0Aimport com.moyinoluwa.makeupsearch.injection.Injection;%0A%0Aimport java.util.List;%0A%0Aimport rx.android.schedulers.AndroidSchedulers;%0Aimport rx.schedulers.Schedulers;%0A%0Apublic class MakeUpSearchActivity extends AppCompatActivity implements MakeUpSearchContract.View %7B%0A    private MakeUpSearchContract.Presenter makeupSearchPresenter;
 %0A%0A  
@@ -842,17 +842,16 @@
 from %22 +
- 
  getInte
@@ -972,16 +972,601 @@
 show();%0A
+%0A        makeupSearchPresenter = new MakeUpSearchPresenter(Injection.provideUserRepo(), Schedulers.io(),%0A                AndroidSchedulers.mainThread());%0A        makeupSearchPresenter.attachView(this);%0A%0A    %7D%0A%0A    @Override%0A    protected void onDestroy() %7B%0A        super.onDestroy();%0A        makeupSearchPresenter.detachView();%0A    %7D%0A%0A    @Override%0A    public void showSearchResults(List%3CMakeUp%3E makeUpList) %7B%0A%0A    %7D%0A%0A    @Override%0A    public void showError(String message) %7B%0A%0A    %7D%0A%0A    @Override%0A    public void showLoading() %7B%0A%0A    %7D%0A%0A    @Override%0A    public void hideLoading() %7B%0A%0A
     %7D%0A%7D%0A

Implement the search view