/**
 * Copyright (C) 2014 android10.org. All rights reserved.
 * @author Fernando Cejas (the android10 coder)
 */
package com.fernandocejas.android10.sample.presentation.view.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import com.fernandocejas.android10.sample.presentation.R;
import com.fernandocejas.android10.sample.presentation.model.UserModel;
import com.fernandocejas.android10.sample.presentation.navigation.Navigator;
import com.fernandocejas.android10.sample.presentation.view.fragment.UserListFragment;

/**
 * Activity that shows a list of Users.
 */
public class UserListActivity extends BaseActivity implements UserListFragment.UserListListener {

  public static Intent getCallingIntent(Context context) {
    return new Intent(context, UserListActivity.class);
  }

  @Override protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
    setContentView(R.layout.activity_user_list);

    this.initialize();
  }

  @Override public void onUserClicked(UserModel userModel) {
    this.navigator.navigateToUserDetails(this, userModel.getUserId());
  }

  /**
   * Initializes activity's private members.
   */
  private void initialize() {
    //This initialization should be avoided by using a dependency injection framework.
    //But this is an example and for testing purpose.
    this.navigator = new Navigator();
  }
}

@@ -430,85 +430,8 @@
 el;%0A
-import com.fernandocejas.android10.sample.presentation.navigation.Navigator;%0A
 impo
@@ -1003,32 +1003,8 @@
 st);
-%0A%0A    this.initialize();
 %0A  %7D
@@ -1144,278 +1144,7 @@
 %0A  %7D
-%0A%0A  /**%0A   * Initializes activity's private members.%0A   */%0A  private void initialize() %7B%0A    //This initialization should be avoided by using a dependency injection framework.%0A    //But this is an example and for testing purpose.%0A    this.navigator = new Navigator();%0A  %7D
 %0A%7D%0A

Remove unused initialization code from user list activity.