// Path: app/src/main/java/com/nilhcem/devfestnantes/ui/BaseActivity.java
// public abstract class BaseActivity<P extends BaseActivityPresenter> extends AppCompatActivity {
// 
//     protected P presenter;
// 
//     protected abstract P newPresenter();
// 
//     @Override
//     protected void onCreate(@Nullable Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         presenter = newPresenter();
//     }
// 
//     @Override
//     protected void onPostCreate(@Nullable Bundle savedInstanceState) {
//         super.onPostCreate(savedInstanceState);
//         presenter.onPostCreate(savedInstanceState);
//     }
// 
//     @Override
//     protected void onResume() {
//         super.onResume();
//         presenter.onResume();
//     }
// 
//     @Override
//     protected void onSaveInstanceState(Bundle outState) {
//         super.onSaveInstanceState(outState);
//         presenter.onSaveInstanceState(outState);
//     }
// 
//     @Override
//     protected void onRestoreInstanceState(Bundle savedInstanceState) {
//         super.onRestoreInstanceState(savedInstanceState);
//         presenter.onRestoreInstanceState(savedInstanceState);
//     }
// 
//     @Override
//     public void setContentView(@LayoutRes int layoutResID) {
//         super.setContentView(layoutResID);
//         ButterKnife.bind(this);
//     }
// 
//     @Override
//     public boolean onOptionsItemSelected(MenuItem item) {
//         if (item.getItemId() == android.R.id.home) {
//             onBackPressed();
//             return true;
//         }
//         return super.onOptionsItemSelected(item);
//     }
// 
//     @Override
//     public void onBackPressed() {
//         if (presenter.onBackPressed()) {
//             return;
//         }
//         super.onBackPressed();
//     }
// 
//     @Override
//     protected void onDestroy() {
//         presenter = null;
//         super.onDestroy();
//     }
// }
// 
// Path: app/src/main/java/com/nilhcem/devfestnantes/ui/BaseActivityPresenter.java
// public abstract class BaseActivityPresenter<V> extends BasePresenter<V> {
// 
//     public BaseActivityPresenter(V view) {
//         super(view);
//     }
// 
//     public void onPostCreate(Bundle savedInstanceState) {
//         // Nothing to do by default
//     }
// 
//     public void onResume() {
//         // Nothing to do by default
//     }
// 
//     @CallSuper
//     public void onSaveInstanceState(Bundle outState) {
//         Icepick.saveInstanceState(this, outState);
//     }
// 
//     @CallSuper
//     public void onRestoreInstanceState(Bundle savedInstanceState) {
//         Icepick.restoreInstanceState(this, savedInstanceState);
//     }
// 
//     public void onNavigationItemSelected(@IdRes int itemId) {
//         // Nothing to do by default
//     }
// 
//     public boolean onBackPressed() {
//         return false;
//     }
// }


import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.content.ContextCompat;
import com.nilhcem.devfestnantes.R;
import com.nilhcem.devfestnantes.ui.BaseActivity;
import com.nilhcem.devfestnantes.ui.BaseActivityPresenter;
import se.emilsjolander.intentbuilder.IntentBuilder;
import uk.co.senab.photoview.PhotoView;
package com.nilhcem.devfestnantes.ui.venue;




@IntentBuilder
public class ZoomableImageActivity extends BaseActivity<ZoomableImageActivity.ZoomableImageActivityPresenter> {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ZoomableImageActivityIntentBuilder.inject(getIntent(), this);
        PhotoView view = new PhotoView(this);

        // No drawable-nodpi venue_rooms file
        view.setImageDrawable(ContextCompat.getDrawable(this, R.drawable.venue_rooms));
        view.setBackgroundColor(ContextCompat.getColor(this, android.R.color.white));
        getSupportActionBar().setTitle(R.string.venue_see_rooms);
        setContentView(view);
    }

    @Override
    protected ZoomableImageActivityPresenter newPresenter() {
        return new ZoomableImageActivityPresenter(this);
    }

// Path: app/src/main/java/com/nilhcem/devfestnantes/ui/BaseActivity.java
// public abstract class BaseActivity<P extends BaseActivityPresenter> extends AppCompatActivity {
// 
//     protected P presenter;
// 
//     protected abstract P newPresenter();
// 
//     @Override
//     protected void onCreate(@Nullable Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         presenter = newPresenter();
//     }
// 
//     @Override
//     protected void onPostCreate(@Nullable Bundle savedInstanceState) {
//         super.onPostCreate(savedInstanceState);
//         presenter.onPostCreate(savedInstanceState);
//     }
// 
//     @Override
//     protected void onResume() {
//         super.onResume();
//         presenter.onResume();
//     }
// 
//     @Override
//     protected void onSaveInstanceState(Bundle outState) {
//         super.onSaveInstanceState(outState);
//         presenter.onSaveInstanceState(outState);
//     }
// 
//     @Override
//     protected void onRestoreInstanceState(Bundle savedInstanceState) {
//         super.onRestoreInstanceState(savedInstanceState);
//         presenter.onRestoreInstanceState(savedInstanceState);
//     }
// 
//     @Override
//     public void setContentView(@LayoutRes int layoutResID) {
//         super.setContentView(layoutResID);
//         ButterKnife.bind(this);
//     }
// 
//     @Override
//     public boolean onOptionsItemSelected(MenuItem item) {
//         if (item.getItemId() == android.R.id.home) {
//             onBackPressed();
//             return true;
//         }
//         return super.onOptionsItemSelected(item);
//     }
// 
//     @Override
//     public void onBackPressed() {
//         if (presenter.onBackPressed()) {
//             return;
//         }
//         super.onBackPressed();
//     }
// 
//     @Override
//     protected void onDestroy() {
//         presenter = null;
//         super.onDestroy();
//     }
// }
// 
// Path: app/src/main/java/com/nilhcem/devfestnantes/ui/BaseActivityPresenter.java
// public abstract class BaseActivityPresenter<V> extends BasePresenter<V> {
// 
//     public BaseActivityPresenter(V view) {
//         super(view);
//     }
// 
//     public void onPostCreate(Bundle savedInstanceState) {
//         // Nothing to do by default
//     }
// 
//     public void onResume() {
//         // Nothing to do by default
//     }
// 
//     @CallSuper
//     public void onSaveInstanceState(Bundle outState) {
//         Icepick.saveInstanceState(this, outState);
//     }
// 
//     @CallSuper
//     public void onRestoreInstanceState(Bundle savedInstanceState) {
//         Icepick.restoreInstanceState(this, savedInstanceState);
//     }
// 
//     public void onNavigationItemSelected(@IdRes int itemId) {
//         // Nothing to do by default
//     }
// 
//     public boolean onBackPressed() {
//         return false;
//     }
// }


// Path: app/src/main/java/com/nilhcem/devfestnantes/ui/venue/ZoomableImageActivity.java
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.content.ContextCompat;
import com.nilhcem.devfestnantes.R;
import com.nilhcem.devfestnantes.ui.BaseActivity;
import com.nilhcem.devfestnantes.ui.BaseActivityPresenter;
import se.emilsjolander.intentbuilder.IntentBuilder;
import uk.co.senab.photoview.PhotoView;

package com.nilhcem.devfestnantes.ui.venue;




@IntentBuilder
public class ZoomableImageActivity extends BaseActivity<ZoomableImageActivity.ZoomableImageActivityPresenter> {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ZoomableImageActivityIntentBuilder.inject(getIntent(), this);
        PhotoView view = new PhotoView(this);

        // No drawable-nodpi venue_rooms file
        view.setImageDrawable(ContextCompat.getDrawable(this, R.drawable.venue_rooms));
        view.setBackgroundColor(ContextCompat.getColor(this, android.R.color.white));
        getSupportActionBar().setTitle(R.string.venue_see_rooms);
        setContentView(view);
    }

    @Override
    protected ZoomableImageActivityPresenter newPresenter() {
        return new ZoomableImageActivityPresenter(this);
    }

    static class ZoomableImageActivityPresenter extends BaseActivityPresenter<ZoomableImageActivity> {