package com.udacity.gradle.imageactivity;

import android.content.Intent;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;


public class ImageActivity extends ActionBarActivity {

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


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.menu_image, menu);
        return true;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        // Handle action bar item clicks here. The action bar will
        // automatically handle clicks on the Home/Up button, so long
        // as you specify a parent activity in AndroidManifest.xml.
        int id = item.getItemId();

        //noinspection SimplifiableIfStatement
        if (id == R.id.action_settings) {
            return true;
        }

        return super.onOptionsItemSelected(item);
    }

    public void launchLibraryActivity(View view){
        Intent myIntent = new Intent(this, ImageActivity.class);
        startActivity(myIntent);
    }
}

@@ -55,22 +55,17 @@
 oid.
-content.Intent
+os.Bundle
 ;%0Aim
@@ -115,34 +115,8 @@
 ty;%0A
-import android.os.Bundle;%0A
 impo
@@ -171,34 +171,8 @@
 em;%0A
-import android.view.View;%0A
 %0A%0Apu
@@ -1129,162 +1129,7 @@
    %7D
-%0A%0A    public void launchLibraryActivity(View view)%7B%0A        Intent myIntent = new Intent(this, ImageActivity.class);%0A        startActivity(myIntent);%0A    %7D
 %0A%7D%0A

remove launchLibraryActivity from imageactivity module