package circlebinder.common.app;

import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.MenuItem;

import net.ichigotake.common.os.RestoreBundle;

/**
 * 全てのアクティビティの基底クラス
 */
public abstract class BaseActivity extends ActionBarActivity {

    private RestoreBundle restoreBundle;

    protected RestoreBundle getRestoreBundle(Bundle savedInstanceState) {
        if (restoreBundle == null) {
            restoreBundle = new RestoreBundle(getIntent(), savedInstanceState);
        }
        return restoreBundle;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        return UpNavigation.onOptionsItemSelected(this, item) || super.onOptionsItemSelected(item);
    }

}

@@ -643,58 +643,8 @@
 turn
- UpNavigation.onOptionsItemSelected(this, item) %7C%7C
  sup

set activity navigation as representational class