// Path: app/src/main/java/jp/yokomark/lgtm/app/compose/ui/ComposeActivity.java
// public class ComposeActivity extends DaggerActivity {
//     public static final String TAG = ComposeActivity.class.getSimpleName();
//     public static final String EXTRA_URI = BundleUtils.buildKey(ComposeActivity.class, "EXTRA_URI");
//     @Inject ComposeStateHolder mHolder;
//     @Inject ComposeViewHelper mHelper;
//     @Inject Bus mBus;
// 
//     @Override
//     protected void onCreate(@Nullable Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.activity_compose);
//         mBus.register(this);
//         mHolder.onCreate(getIntent().<Uri>getParcelableExtra(EXTRA_URI), savedInstanceState);
//         mHelper.setUpActionBar();
//         mHelper.setUpComposeView(mHolder.getData());
//     }
// 
//     @Override
//     protected void onSaveInstanceState(@Nonnull Bundle outState) {
//         mHolder.onSaveInstanceState(outState);
//         super.onSaveInstanceState(outState);
//     }
// 
//     @Override
//     protected void onDestroy() {
//         mBus.unregister(this);
//         mHolder.onDestroy();
//         super.onDestroy();
//     }
// 
//     @Override
//     public boolean onCreateOptionsMenu(Menu menu) {
//         getMenuInflater().inflate(R.menu.options_activity_compose, menu);
//         return super.onCreateOptionsMenu(menu);
//     }
// 
//     @Override
//     public boolean onOptionsItemSelected(MenuItem item) {
//         ComposeOptionsMenu menu = ComposeOptionsMenu.valueOf(item);
//         return menu.getHandler().handle(this) || super.onOptionsItemSelected(item);
//     }
// 
//     @Override
//     protected List<Object> getModules() {
//         return Arrays.asList(new ActivityModule(this), new ComposeModule());
//     }
// 
//     @Subscribe
//     public void onSaveSuccess(SaveSuccessEvent event) {
//         mHelper.dismissProgress();
//         mHelper.dispatchShare(event.getUri());
//     }
// }
// 
// Path: app/src/main/java/jp/yokomark/lgtm/app/home/ui/MainActivity.java
// public class MainActivity extends DaggerActivity {
//     @Inject MainActivityHelper mHelper;
//     @Inject MediaStoreCompat mCompat;
//     @Inject TakePicState mPicState;
// 
//     @Override
//     protected void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.activity_main);
//     }
// 
//     @Override
//     protected List<Object> getModules() {
//         return Arrays.asList(new ActivityModule(this), new MainActivityModule());
//     }
// 
//     @Override
//     protected void onRestoreInstanceState(Bundle savedInstanceState) {
//         super.onRestoreInstanceState(savedInstanceState);
//         mPicState.onRestoreInstanceState(savedInstanceState);
//     }
// 
//     @Override
//     protected void onSaveInstanceState(Bundle outState) {
//         mPicState.onSaveInstanceState(outState);
//         super.onSaveInstanceState(outState);
//     }
// 
//     @Override
//     protected void onActivityResult(int requestCode, int resultCode, Intent data) {
//         super.onActivityResult(requestCode, resultCode, data);
//         MainRequest request = MainRequest.valueOf(requestCode);
//         request.getHandler().handle(this, resultCode, data);
//     }
// 
//     @Override
//     public boolean onCreateOptionsMenu(Menu menu) {
//         getMenuInflater().inflate(R.menu.options_activity_main, menu);
//         return super.onCreateOptionsMenu(menu);
//     }
// 
//     @Override
//     public boolean onOptionsItemSelected(MenuItem item) {
//         MainOptionsMenu menu = MainOptionsMenu.valueOf(item);
//         return menu.getHandler().handle(this) || super.onOptionsItemSelected(item);
//     }
// 
//     public void onButtonClick(View view) {
//         MainViewClickEvent event = MainViewClickEvent.valueOf(view);
//         event.getHandler().handle(this);
//     }
// }
// 
// Path: app/src/main/java/jp/yokomark/lgtm/misc/ui/helper/RequestResultHandler.java
// public interface RequestResultHandler<A extends Activity> {
//     public void handle(A activity, int resultCode, Intent data);
// }


import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import com.laevatein.Laevatein;
import java.util.List;
import jp.yokomark.lgtm.app.compose.ui.ComposeActivity;
import jp.yokomark.lgtm.app.home.ui.MainActivity;
import jp.yokomark.lgtm.misc.ui.helper.RequestResultHandler;
package jp.yokomark.lgtm.app.home.ui.helper.result;





/**
 * @author yokomakukeishin
 * @version 1.0.0
 * @since 1.0.0
 */
public class SelectPictureResultHandler implements RequestResultHandler<MainActivity> {
    public static final String TAG = SelectPictureResultHandler.class.getSimpleName();

    @Override
    public void handle(MainActivity activity, int resultCode, Intent data) {
        if (resultCode != Activity.RESULT_OK) {
// Path: app/src/main/java/jp/yokomark/lgtm/app/compose/ui/ComposeActivity.java
// public class ComposeActivity extends DaggerActivity {
//     public static final String TAG = ComposeActivity.class.getSimpleName();
//     public static final String EXTRA_URI = BundleUtils.buildKey(ComposeActivity.class, "EXTRA_URI");
//     @Inject ComposeStateHolder mHolder;
//     @Inject ComposeViewHelper mHelper;
//     @Inject Bus mBus;
// 
//     @Override
//     protected void onCreate(@Nullable Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.activity_compose);
//         mBus.register(this);
//         mHolder.onCreate(getIntent().<Uri>getParcelableExtra(EXTRA_URI), savedInstanceState);
//         mHelper.setUpActionBar();
//         mHelper.setUpComposeView(mHolder.getData());
//     }
// 
//     @Override
//     protected void onSaveInstanceState(@Nonnull Bundle outState) {
//         mHolder.onSaveInstanceState(outState);
//         super.onSaveInstanceState(outState);
//     }
// 
//     @Override
//     protected void onDestroy() {
//         mBus.unregister(this);
//         mHolder.onDestroy();
//         super.onDestroy();
//     }
// 
//     @Override
//     public boolean onCreateOptionsMenu(Menu menu) {
//         getMenuInflater().inflate(R.menu.options_activity_compose, menu);
//         return super.onCreateOptionsMenu(menu);
//     }
// 
//     @Override
//     public boolean onOptionsItemSelected(MenuItem item) {
//         ComposeOptionsMenu menu = ComposeOptionsMenu.valueOf(item);
//         return menu.getHandler().handle(this) || super.onOptionsItemSelected(item);
//     }
// 
//     @Override
//     protected List<Object> getModules() {
//         return Arrays.asList(new ActivityModule(this), new ComposeModule());
//     }
// 
//     @Subscribe
//     public void onSaveSuccess(SaveSuccessEvent event) {
//         mHelper.dismissProgress();
//         mHelper.dispatchShare(event.getUri());
//     }
// }
// 
// Path: app/src/main/java/jp/yokomark/lgtm/app/home/ui/MainActivity.java
// public class MainActivity extends DaggerActivity {
//     @Inject MainActivityHelper mHelper;
//     @Inject MediaStoreCompat mCompat;
//     @Inject TakePicState mPicState;
// 
//     @Override
//     protected void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.activity_main);
//     }
// 
//     @Override
//     protected List<Object> getModules() {
//         return Arrays.asList(new ActivityModule(this), new MainActivityModule());
//     }
// 
//     @Override
//     protected void onRestoreInstanceState(Bundle savedInstanceState) {
//         super.onRestoreInstanceState(savedInstanceState);
//         mPicState.onRestoreInstanceState(savedInstanceState);
//     }
// 
//     @Override
//     protected void onSaveInstanceState(Bundle outState) {
//         mPicState.onSaveInstanceState(outState);
//         super.onSaveInstanceState(outState);
//     }
// 
//     @Override
//     protected void onActivityResult(int requestCode, int resultCode, Intent data) {
//         super.onActivityResult(requestCode, resultCode, data);
//         MainRequest request = MainRequest.valueOf(requestCode);
//         request.getHandler().handle(this, resultCode, data);
//     }
// 
//     @Override
//     public boolean onCreateOptionsMenu(Menu menu) {
//         getMenuInflater().inflate(R.menu.options_activity_main, menu);
//         return super.onCreateOptionsMenu(menu);
//     }
// 
//     @Override
//     public boolean onOptionsItemSelected(MenuItem item) {
//         MainOptionsMenu menu = MainOptionsMenu.valueOf(item);
//         return menu.getHandler().handle(this) || super.onOptionsItemSelected(item);
//     }
// 
//     public void onButtonClick(View view) {
//         MainViewClickEvent event = MainViewClickEvent.valueOf(view);
//         event.getHandler().handle(this);
//     }
// }
// 
// Path: app/src/main/java/jp/yokomark/lgtm/misc/ui/helper/RequestResultHandler.java
// public interface RequestResultHandler<A extends Activity> {
//     public void handle(A activity, int resultCode, Intent data);
// }


// Path: app/src/main/java/jp/yokomark/lgtm/app/home/ui/helper/result/SelectPictureResultHandler.java
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import com.laevatein.Laevatein;
import java.util.List;
import jp.yokomark.lgtm.app.compose.ui.ComposeActivity;
import jp.yokomark.lgtm.app.home.ui.MainActivity;
import jp.yokomark.lgtm.misc.ui.helper.RequestResultHandler;

package jp.yokomark.lgtm.app.home.ui.helper.result;





/**
 * @author yokomakukeishin
 * @version 1.0.0
 * @since 1.0.0
 */
public class SelectPictureResultHandler implements RequestResultHandler<MainActivity> {
    public static final String TAG = SelectPictureResultHandler.class.getSimpleName();

    @Override
    public void handle(MainActivity activity, int resultCode, Intent data) {
        if (resultCode != Activity.RESULT_OK) {
            return;