// Path: app/src/main/java/com/williammora/openfeed/activities/UserActivity.java
// public class UserActivity extends OpenFeedActivity implements UserFragment.UserFragmentListener {
// 
//     public static final String EXTRA_USER = "EXTRA_USER";
//     public static final String SAVED_USER = "SAVED_USER";
//     public static final String SAVED_SCREEN_NAME = "SAVED_SCREEN_NAME";
// 
//     private User mUser;
//     private String mScreenName;
// 
//     @Override
//     protected void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.activity_user);
//         if (savedInstanceState == null) {
//             getFragmentManager().beginTransaction()
//                     .add(R.id.container, new UserFragment())
//                     .commit();
//             Intent intent = getIntent();
//             mUser = (User) intent.getSerializableExtra(EXTRA_USER);
//             if (mUser == null) {
//                 Uri uri = getIntent().getData();
//                 if (uri.getHost().equals(getString(R.string.twitter_users_host))) {
//                     mScreenName = uri.getLastPathSegment();
//                 }
//             }
//         }
//     }
// 
//     @Override
//     protected void onSaveInstanceState(Bundle outState) {
//         outState.putSerializable(SAVED_USER, mUser);
//         outState.putString(SAVED_SCREEN_NAME, mScreenName);
//         super.onSaveInstanceState(outState);
//     }
// 
//     @Override
//     protected void onRestoreInstanceState(Bundle savedInstanceState) {
//         super.onRestoreInstanceState(savedInstanceState);
//         mUser = (User) savedInstanceState.getSerializable(SAVED_USER);
//         mScreenName = savedInstanceState.getString(SAVED_SCREEN_NAME, "");
//     }
// 
//     @Override
//     public boolean onOptionsItemSelected(MenuItem item) {
//         // Handle action bar item clicks here. The action bar will
//         // automatically handle clicks on the Home/Up button, so long
//         // as you specify a parent activity in AndroidManifest.xml.
//         switch (item.getItemId()) {
//             case android.R.id.home:
//                 finish();
//                 return true;
//         }
//         return super.onOptionsItemSelected(item);
//     }
// 
//     @Override
//     public User getUser() {
//         return mUser;
//     }
// 
//     @Override
//     public String getUserScreenName() {
//         return mScreenName;
//     }
// 
//     @Subscribe
//     public void onUserEvent(TwitterEvents.UserEvent event) {
//         User user = event.getResult();
//         setTitle(user.getName());
//         mUser = user;
//     }
// }


import android.content.Intent;
import android.view.View;
import com.williammora.openfeed.activities.UserActivity;
import twitter4j.User;
package com.williammora.openfeed.listeners;




public class OnUserClickListener implements View.OnClickListener {

    private User mUser;

    public OnUserClickListener(User user) {
        mUser = user;
    }

    @Override
    public void onClick(View view) {
        Intent intent = new Intent();
// Path: app/src/main/java/com/williammora/openfeed/activities/UserActivity.java
// public class UserActivity extends OpenFeedActivity implements UserFragment.UserFragmentListener {
// 
//     public static final String EXTRA_USER = "EXTRA_USER";
//     public static final String SAVED_USER = "SAVED_USER";
//     public static final String SAVED_SCREEN_NAME = "SAVED_SCREEN_NAME";
// 
//     private User mUser;
//     private String mScreenName;
// 
//     @Override
//     protected void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.activity_user);
//         if (savedInstanceState == null) {
//             getFragmentManager().beginTransaction()
//                     .add(R.id.container, new UserFragment())
//                     .commit();
//             Intent intent = getIntent();
//             mUser = (User) intent.getSerializableExtra(EXTRA_USER);
//             if (mUser == null) {
//                 Uri uri = getIntent().getData();
//                 if (uri.getHost().equals(getString(R.string.twitter_users_host))) {
//                     mScreenName = uri.getLastPathSegment();
//                 }
//             }
//         }
//     }
// 
//     @Override
//     protected void onSaveInstanceState(Bundle outState) {
//         outState.putSerializable(SAVED_USER, mUser);
//         outState.putString(SAVED_SCREEN_NAME, mScreenName);
//         super.onSaveInstanceState(outState);
//     }
// 
//     @Override
//     protected void onRestoreInstanceState(Bundle savedInstanceState) {
//         super.onRestoreInstanceState(savedInstanceState);
//         mUser = (User) savedInstanceState.getSerializable(SAVED_USER);
//         mScreenName = savedInstanceState.getString(SAVED_SCREEN_NAME, "");
//     }
// 
//     @Override
//     public boolean onOptionsItemSelected(MenuItem item) {
//         // Handle action bar item clicks here. The action bar will
//         // automatically handle clicks on the Home/Up button, so long
//         // as you specify a parent activity in AndroidManifest.xml.
//         switch (item.getItemId()) {
//             case android.R.id.home:
//                 finish();
//                 return true;
//         }
//         return super.onOptionsItemSelected(item);
//     }
// 
//     @Override
//     public User getUser() {
//         return mUser;
//     }
// 
//     @Override
//     public String getUserScreenName() {
//         return mScreenName;
//     }
// 
//     @Subscribe
//     public void onUserEvent(TwitterEvents.UserEvent event) {
//         User user = event.getResult();
//         setTitle(user.getName());
//         mUser = user;
//     }
// }


// Path: app/src/main/java/com/williammora/openfeed/listeners/OnUserClickListener.java
import android.content.Intent;
import android.view.View;
import com.williammora.openfeed.activities.UserActivity;
import twitter4j.User;

package com.williammora.openfeed.listeners;




public class OnUserClickListener implements View.OnClickListener {

    private User mUser;

    public OnUserClickListener(User user) {
        mUser = user;
    }

    @Override
    public void onClick(View view) {
        Intent intent = new Intent();
        intent.setClass(view.getContext(), UserActivity.class);