package com.averi.worldscribe.activities;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.averi.worldscribe.R;

public class SnippetActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_snippet);
    }
}

@@ -36,16 +36,47 @@
 ities;%0A%0A
+import android.content.Intent;%0A
 import a
@@ -146,39 +146,136 @@
 le;%0A
-%0Aimport com.averi.worldscribe.R
+import android.support.v7.widget.Toolbar;%0A%0Aimport com.averi.worldscribe.R;%0Aimport com.averi.worldscribe.utilities.AppPreferences
 ;%0A%0Ap
@@ -496,16 +496,604 @@
 nippet);
+%0A%0A        Intent intent = getIntent();%0A        String snippetName = intent.getStringExtra(AppPreferences.SNIPPET_NAME);%0A        setAppBarTitle(snippetName);%0A    %7D%0A%0A    /**%0A     * Setup the app bar and set its title to be the Snippet's name.%0A     * @param snippetName The name of the Snippet displayed in this Activity.%0A     */%0A    private void setAppBarTitle(String snippetName) %7B%0A        Toolbar myToolbar = (Toolbar) findViewById(R.id.my_toolbar);%0A        setSupportActionBar(myToolbar);%0A        assert getSupportActionBar() != null;%0A        getSupportActionBar().setTitle(snippetName);
 %0A    %7D%0A%7D

Set up app bar in SnippetActivity