package com.vikashkothary.life.ui.creation;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;

import com.vikashkothary.life.R;
import com.vikashkothary.life.ui.base.BaseActivity;
import com.vikashkothary.life.ui.base.BaseFragment;
import com.vikashkothary.life.util.DialogFactory;

import butterknife.BindView;
import butterknife.ButterKnife;

public class CreationActivity extends BaseActivity {

    @BindView(R.id.toolbar)
    Toolbar mToolbar;

    private BaseFragment mFragment;

    public static void startCreation(Context context) {
        Intent intent = new Intent(context, CreationActivity.class);
        context.startActivity(intent);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        activityComponent().inject(this);
        setContentView(R.layout.activity_base);
        ButterKnife.bind(this);

        setSupportActionBar(mToolbar);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
        getSupportActionBar().setHomeAsUpIndicator(R.drawable.ic_close_white_24dp);

        mFragment = CreationFragment.newInstance();
        mFragment.attachFragment(this);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.options_main, menu);
        return true;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
            case R.id.action_save:
                if (mFragment instanceof CreationFragment) {
                    ((CreationFragment) mFragment).saveReminder();
                    finish();
                    return true;
                }
                return false;
            case R.id.action_info:
                DialogFactory.createSimpleOkErrorDialog(this, "Creation", "Create a reminder").show();
                return true;
            default:
                return super.onOptionsItemSelected(item);
        }
    }

}

@@ -1432,11 +1432,15 @@
 ons_
-mai
+creatio
 n, m

Fix CreationActivity option menu to correct one