// Path: app/src/main/java/com/mortarnav/ToolbarOwner.java
// @AutoInjector(MainActivity.class)
// @DaggerScope(MainActivity.class)
// public class ToolbarOwner extends Presenter<Toolbar> {
// 
//     @Inject
//     public ToolbarOwner() {
//     }
// 
//     public Animator animateHide() {
//         if (!hasView()) return null;
//         if (getView().getVisibility() == View.GONE) {
//             return null;
//         }
//         return ObjectAnimator.ofFloat(getView(), View.Y, 0, -getView().getHeight());
//     }
// 
//     public Animator animateShow() {
//         if (!hasView()) return null;
//         if (getView().getVisibility() == View.VISIBLE) {
//             return null;
//         }
//         return ObjectAnimator.ofFloat(getView(), View.Y, -getView().getHeight(), 0);
//     }
// 
//     public void hide() {
//         if (!hasView()) return;
//         getView().setVisibility(View.GONE);
//     }
// 
//     public void show() {
//         if (!hasView()) return;
//         getView().setVisibility(View.VISIBLE);
//     }
// 
//     public void setTitle(String title) {
//         if (!hasView()) return;
//         getView().setTitle(title);
//     }
// 
//     @Override
//     protected BundleService extractBundleService(Toolbar view) {
//         return BundleService.getBundleService(view.getContext());
//     }
// 
// 
// }
// 
// Path: commons/src/main/java/architect/commons/view/PresentedLinearLayout.java
// public abstract class PresentedLinearLayout<T extends ViewPresenter> extends LinearLayout
//         implements HasPresenter<T> {
// 
//     @Inject
//     protected T presenter;
// 
//     public PresentedLinearLayout(Context context) {
//         super(context);
//         init(context, null, -1);
//     }
// 
//     public PresentedLinearLayout(Context context, AttributeSet attrs) {
//         super(context, attrs);
//         init(context, attrs, -1);
//     }
// 
//     public PresentedLinearLayout(Context context, AttributeSet attrs, int defStyleAttr) {
//         super(context, attrs, defStyleAttr);
//         init(context, attrs, defStyleAttr);
//     }
// 
//     protected void init(Context context, AttributeSet attrs, int defStyleAttr) {
// 
//     }
// 
//     @Override
//     protected void onAttachedToWindow() {
//         super.onAttachedToWindow();
//         presenter.takeView(this);
//     }
// 
//     @Override
//     protected void onDetachedFromWindow() {
//         presenter.dropView(this);
//         super.onDetachedFromWindow();
//     }
// 
//     @Override
//     public T getPresenter() {
//         return presenter;
//     }
// }
// 
// Path: architect/src/main/java/architect/view/HandlesViewTransition.java
// public interface HandlesViewTransition {
// 
//     /**
//      * Will receive the following view transition
//      *
//      * Hook that allows to add additional animations to the view transition animator set
//      * Do not start the animator set yourself
//      *
//      * The animator set can be null, if the view is presented without animation
//      * It happens at least during config changes (rotation)
//      */
//     void onViewTransition(AnimatorSet set);
// }


import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.AnimatorSet;
import android.content.Context;
import android.view.View;
import com.mortarnav.R;
import com.mortarnav.ToolbarOwner;
import com.mortarnav.presenter.MyPopup2Presenter;
import com.mortarnav.presenter.stackable.MyPopup2StackableComponent;
import javax.inject.Inject;
import architect.commons.view.PresentedLinearLayout;
import architect.robot.DaggerService;
import architect.view.HandlesViewTransition;
import autodagger.AutoInjector;
import butterknife.ButterKnife;
import butterknife.OnClick;
package com.mortarnav.view;





/**
 * @author Lukasz Piliszczuk - lukasz.pili@gmail.com
 */
@AutoInjector(MyPopup2Presenter.class)
public class MyPopup2View extends PresentedLinearLayout<MyPopup2Presenter> implements HandlesViewTransition {

    @Inject
// Path: app/src/main/java/com/mortarnav/ToolbarOwner.java
// @AutoInjector(MainActivity.class)
// @DaggerScope(MainActivity.class)
// public class ToolbarOwner extends Presenter<Toolbar> {
// 
//     @Inject
//     public ToolbarOwner() {
//     }
// 
//     public Animator animateHide() {
//         if (!hasView()) return null;
//         if (getView().getVisibility() == View.GONE) {
//             return null;
//         }
//         return ObjectAnimator.ofFloat(getView(), View.Y, 0, -getView().getHeight());
//     }
// 
//     public Animator animateShow() {
//         if (!hasView()) return null;
//         if (getView().getVisibility() == View.VISIBLE) {
//             return null;
//         }
//         return ObjectAnimator.ofFloat(getView(), View.Y, -getView().getHeight(), 0);
//     }
// 
//     public void hide() {
//         if (!hasView()) return;
//         getView().setVisibility(View.GONE);
//     }
// 
//     public void show() {
//         if (!hasView()) return;
//         getView().setVisibility(View.VISIBLE);
//     }
// 
//     public void setTitle(String title) {
//         if (!hasView()) return;
//         getView().setTitle(title);
//     }
// 
//     @Override
//     protected BundleService extractBundleService(Toolbar view) {
//         return BundleService.getBundleService(view.getContext());
//     }
// 
// 
// }
// 
// Path: commons/src/main/java/architect/commons/view/PresentedLinearLayout.java
// public abstract class PresentedLinearLayout<T extends ViewPresenter> extends LinearLayout
//         implements HasPresenter<T> {
// 
//     @Inject
//     protected T presenter;
// 
//     public PresentedLinearLayout(Context context) {
//         super(context);
//         init(context, null, -1);
//     }
// 
//     public PresentedLinearLayout(Context context, AttributeSet attrs) {
//         super(context, attrs);
//         init(context, attrs, -1);
//     }
// 
//     public PresentedLinearLayout(Context context, AttributeSet attrs, int defStyleAttr) {
//         super(context, attrs, defStyleAttr);
//         init(context, attrs, defStyleAttr);
//     }
// 
//     protected void init(Context context, AttributeSet attrs, int defStyleAttr) {
// 
//     }
// 
//     @Override
//     protected void onAttachedToWindow() {
//         super.onAttachedToWindow();
//         presenter.takeView(this);
//     }
// 
//     @Override
//     protected void onDetachedFromWindow() {
//         presenter.dropView(this);
//         super.onDetachedFromWindow();
//     }
// 
//     @Override
//     public T getPresenter() {
//         return presenter;
//     }
// }
// 
// Path: architect/src/main/java/architect/view/HandlesViewTransition.java
// public interface HandlesViewTransition {
// 
//     /**
//      * Will receive the following view transition
//      *
//      * Hook that allows to add additional animations to the view transition animator set
//      * Do not start the animator set yourself
//      *
//      * The animator set can be null, if the view is presented without animation
//      * It happens at least during config changes (rotation)
//      */
//     void onViewTransition(AnimatorSet set);
// }


// Path: app/src/main/java/com/mortarnav/view/MyPopup2View.java
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.AnimatorSet;
import android.content.Context;
import android.view.View;
import com.mortarnav.R;
import com.mortarnav.ToolbarOwner;
import com.mortarnav.presenter.MyPopup2Presenter;
import com.mortarnav.presenter.stackable.MyPopup2StackableComponent;
import javax.inject.Inject;
import architect.commons.view.PresentedLinearLayout;
import architect.robot.DaggerService;
import architect.view.HandlesViewTransition;
import autodagger.AutoInjector;
import butterknife.ButterKnife;
import butterknife.OnClick;

package com.mortarnav.view;





/**
 * @author Lukasz Piliszczuk - lukasz.pili@gmail.com
 */
@AutoInjector(MyPopup2Presenter.class)
public class MyPopup2View extends PresentedLinearLayout<MyPopup2Presenter> implements HandlesViewTransition {

    @Inject
    protected ToolbarOwner toolbarOwner;