// Path: sample/src/main/java/com/metova/privvy/sample/MainActivity.java
// public class MainActivity extends AppCompatActivity implements PrivvyHost {
// 
//     public HostComponent hostComponent;
// 
//     private PrivvyHostDelegate hostDelegate;
// 
//     @Override
//     protected void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
// 
//         hostComponent = SampleApplication.component.newHost()
//                 .hostModule(new HostModule(this))
//                 .build();
// 
//         hostDelegate = new PrivvyHostDelegate(this);
// 
//         setContentView(R.layout.main_activity);
// 
//         initialize(NumberComponent.ROUTE_DATA, ButtonComponent.ROUTE_DATA);
//     }
// 
//     @Override
//     public void initialize(RouteData... routeData) {
//         hostDelegate.initialize(routeData);
//     }
// 
//     @Override
//     public void replace(RouteData oldComponent, RouteData newComponent) {
//         hostDelegate.replace(oldComponent, newComponent);
//     }
// 
//     @Override
//     public void goTo(RouteData newComponent) {
//         hostDelegate.goTo(newComponent);
//     }
// }


import com.metova.privvy.sample.MainActivity;
import com.metova.privvy.sample.R;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import javax.inject.Inject;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnLongClick;
package com.metova.privvy.sample.ui.floatingnumber.number;





public class NumberFragment extends Fragment implements NumberContract.View {

    @Inject
    NumberComponent mNumberComponent;

    @BindView(R.id.number_text)
    TextView number;

    private NumberContract.Presenter presenter;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
// Path: sample/src/main/java/com/metova/privvy/sample/MainActivity.java
// public class MainActivity extends AppCompatActivity implements PrivvyHost {
// 
//     public HostComponent hostComponent;
// 
//     private PrivvyHostDelegate hostDelegate;
// 
//     @Override
//     protected void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
// 
//         hostComponent = SampleApplication.component.newHost()
//                 .hostModule(new HostModule(this))
//                 .build();
// 
//         hostDelegate = new PrivvyHostDelegate(this);
// 
//         setContentView(R.layout.main_activity);
// 
//         initialize(NumberComponent.ROUTE_DATA, ButtonComponent.ROUTE_DATA);
//     }
// 
//     @Override
//     public void initialize(RouteData... routeData) {
//         hostDelegate.initialize(routeData);
//     }
// 
//     @Override
//     public void replace(RouteData oldComponent, RouteData newComponent) {
//         hostDelegate.replace(oldComponent, newComponent);
//     }
// 
//     @Override
//     public void goTo(RouteData newComponent) {
//         hostDelegate.goTo(newComponent);
//     }
// }


// Path: sample/src/main/java/com/metova/privvy/sample/ui/floatingnumber/number/NumberFragment.java
import com.metova.privvy.sample.MainActivity;
import com.metova.privvy.sample.R;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import javax.inject.Inject;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnLongClick;

package com.metova.privvy.sample.ui.floatingnumber.number;





public class NumberFragment extends Fragment implements NumberContract.View {

    @Inject
    NumberComponent mNumberComponent;

    @BindView(R.id.number_text)
    TextView number;

    private NumberContract.Presenter presenter;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ((MainActivity) getActivity()).hostComponent.newPrivvyComponent().inject(this);