// Path: 2016-06-15_hot_and_cold/app/src/main/java/com/gdgand/rxjava/rxjavasample/hotandcold/utils/SubscriptionUtils.java
// public class SubscriptionUtils {
//     /**
//      * Automatically adds to / removes from specified {@link CompositeSubscription} when subscribe / unsubscribe is called.
//      * Useful when subscribing observable repeatedly, as you do not need to manipulate CompositeSubscription manually.
//      */
//     public static <T> Observable.Operator<T, T> composite(CompositeSubscription subscriptions) {
//         return subscriber -> {
// 			subscriptions.add(subscriber);
// 			subscriber.add(Subscriptions.create(() -> subscriptions.remove(subscriber)));
// 			return subscriber;
// 		};
//     }
// }
// 
// Path: 2016-06-15_hot_and_cold/app/src/main/java/com/gdgand/rxjava/rxjavasample/hotandcold/views/progress/ProgressIndicatorProvider.java
// public class ProgressIndicatorProvider {
// 
// 	private Activity activity;
// 
// 	public ProgressIndicatorProvider(Activity activity) {
// 		this.activity = activity;
// 	}
// 
// 	public ProgressDialog provide() {
// 		return provide(activity.getString(R.string.message_progress));
// 	}
// 
// 	public ProgressDialog provide(String message) {
// 		ProgressDialog progressDialog = new ProgressDialog(activity);
// 		progressDialog.setCancelable(false);
// 		progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
// 		progressDialog.setMessage(message);
// 		return progressDialog;
// 	}
// 
// }


import android.app.ProgressDialog;
import android.widget.Toast;
import com.gdgand.rxjava.rxjavasample.hotandcold.utils.SubscriptionUtils;
import com.gdgand.rxjava.rxjavasample.hotandcold.views.progress.ProgressIndicatorProvider;
import com.trello.rxlifecycle.components.RxActivity;
import rx.Observable;
import rx.functions.Action0;
import rx.subscriptions.CompositeSubscription;
import javax.inject.Inject;
package com.gdgand.rxjava.rxjavasample.hotandcold.presentation.mvp;





public abstract class BaseMvpActivity extends RxActivity implements BaseMvpView {

	@Inject
// Path: 2016-06-15_hot_and_cold/app/src/main/java/com/gdgand/rxjava/rxjavasample/hotandcold/utils/SubscriptionUtils.java
// public class SubscriptionUtils {
//     /**
//      * Automatically adds to / removes from specified {@link CompositeSubscription} when subscribe / unsubscribe is called.
//      * Useful when subscribing observable repeatedly, as you do not need to manipulate CompositeSubscription manually.
//      */
//     public static <T> Observable.Operator<T, T> composite(CompositeSubscription subscriptions) {
//         return subscriber -> {
// 			subscriptions.add(subscriber);
// 			subscriber.add(Subscriptions.create(() -> subscriptions.remove(subscriber)));
// 			return subscriber;
// 		};
//     }
// }
// 
// Path: 2016-06-15_hot_and_cold/app/src/main/java/com/gdgand/rxjava/rxjavasample/hotandcold/views/progress/ProgressIndicatorProvider.java
// public class ProgressIndicatorProvider {
// 
// 	private Activity activity;
// 
// 	public ProgressIndicatorProvider(Activity activity) {
// 		this.activity = activity;
// 	}
// 
// 	public ProgressDialog provide() {
// 		return provide(activity.getString(R.string.message_progress));
// 	}
// 
// 	public ProgressDialog provide(String message) {
// 		ProgressDialog progressDialog = new ProgressDialog(activity);
// 		progressDialog.setCancelable(false);
// 		progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
// 		progressDialog.setMessage(message);
// 		return progressDialog;
// 	}
// 
// }


// Path: 2016-06-15_hot_and_cold/app/src/main/java/com/gdgand/rxjava/rxjavasample/hotandcold/presentation/mvp/BaseMvpActivity.java
import android.app.ProgressDialog;
import android.widget.Toast;
import com.gdgand.rxjava.rxjavasample.hotandcold.utils.SubscriptionUtils;
import com.gdgand.rxjava.rxjavasample.hotandcold.views.progress.ProgressIndicatorProvider;
import com.trello.rxlifecycle.components.RxActivity;
import rx.Observable;
import rx.functions.Action0;
import rx.subscriptions.CompositeSubscription;
import javax.inject.Inject;

package com.gdgand.rxjava.rxjavasample.hotandcold.presentation.mvp;





public abstract class BaseMvpActivity extends RxActivity implements BaseMvpView {

	@Inject
	ProgressIndicatorProvider progressIndicatorProvider;