package com.bookbase.app.mainscreen;

import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.widget.TextView;

import com.bookbase.app.R;
import com.bookbase.app.library.BooksFragment;

import butterknife.BindView;
import butterknife.ButterKnife;

public class HomeScreen extends AppCompatActivity {

    private static Context context;

    @BindView(R.id.navigation_drawer) DrawerLayout drawer;
    @BindView(R.id.toolbar) Toolbar toolbar;
    @BindView(R.id.toolbar_title) TextView toolbarTitle;

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);
        context = getApplicationContext();
        
        // Setup toolbar.
        setSupportActionBar(toolbar);
        getSupportActionBar().setDisplayShowTitleEnabled(false);

        // Insert fragment.
        FragmentManager fragmentManager = getSupportFragmentManager();
        fragmentManager.beginTransaction()
                .setCustomAnimations(R.anim.fade_in, R.anim.fade_out)
                .replace(R.id.content_frame, BooksFragment.newInstance())
                .commit();

    }

    public static Context getContext(){
        return context;
    }
}
@@ -274,16 +274,46 @@
 oolbar;%0A
+import android.view.MenuItem;%0A
 import a
@@ -1425,16 +1425,282 @@
 %0A    %7D%0A%0A
+    @Override%0A    public boolean onOptionsItemSelected(MenuItem item) %7B%0A        switch(item.getItemId()) %7B%0A            case android.R.id.home:%0A                onBackPressed();%0A                break;%0A        %7D%0A        return super.onOptionsItemSelected(item);%0A    %7D%0A%0A
     publ

Fix #4