package io.github.kobakei.anago.viewmodel;

import io.github.kobakei.anago.activity.BaseActivity;
import io.github.kobakei.anago.fragment.BaseFragment;

/**
 * Activity用ビューモデルのベースクラス
 * Created by keisuke on 2016/09/18.
 */

public abstract class ViewModel {

    private final BaseActivity activity;
    private final BaseFragment fragment;

    ViewModel(BaseActivity activity) {
        this.activity = activity;
        this.fragment = null;
    }

    ViewModel(BaseFragment fragment) {
        this.activity = null;
        this.fragment = fragment;
    }

    public BaseFragment getFragment() {
        return fragment;
    }

    public BaseActivity getActivity() {
        return activity;
    }

    public void onResume() {

    }

    public void onPause() {
    }
}

@@ -157,17 +157,8 @@
 %0A * 
-Activity%E7%94%A8
 %E3%83%93%E3%83%A5%E3%83%BC%E3%83%A2
@@ -699,40 +699,254 @@
     
-public void onResume() %7B%0A%0A    %7D%0A
+/**%0A     * Activity / Fragment%E3%81%AEonResume%E3%81%A7%E5%91%BC%E3%81%B0%E3%82%8C%E3%81%BE%E3%81%99%0A     * EventBus%E3%81%AEregister%E3%81%AA%E3%81%A9%E3%81%AF%E3%81%93%E3%81%93%E3%81%A7%E5%91%BC%E3%82%93%E3%81%A7%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%0A     */%0A    public void onResume() %7B%0A        // do nothing%0A    %7D%0A%0A    /**%0A     * Activity / Fragment%E3%81%AEonPause%E3%81%A7%E5%91%BC%E3%81%B0%E3%82%8C%E3%81%BE%E3%81%99%0A     * EventBus%E3%81%AEunregister%E3%81%AA%E3%81%A9%E3%81%AF%E3%81%93%E3%81%93%E3%81%A7%E5%91%BC%E3%82%93%E3%81%A7%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%0A     */
 %0A   
@@ -966,20 +966,42 @@
 onPause() %7B%0A
+        // do nothing%0A
     %7D%0A%7D%0A

Fix comment