package com.supinfo.jva.geocar;

import android.content.Intent;
import android.content.res.Resources;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class About extends ActionBarActivity {

    private TextView version = null;
    private Button gitButton = null;

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

        version = (TextView) findViewById(R.id.version);
        gitButton = (Button) findViewById(R.id.button_git);

        Resources res = getResources();
        String actualVersion = res.getString(R.string.version, "1.0.0");
        version.setText(actualVersion);

        gitButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                String urlProject = "https://github.com/Carmain/Geocar";
                Intent intent = new Intent(Intent.ACTION_VIEW);
                intent.setData(Uri.parse(urlProject));
                startActivity(intent);
            }
        });

    }
}

@@ -335,83 +335,8 @@
  %7B%0A%0A
-    private TextView version = null;%0A    private Button gitButton = null;%0A%0A
     
@@ -491,24 +491,33 @@
 );%0A%0A        
+TextView 
 version = (T
@@ -553,32 +553,39 @@
 rsion);%0A        
+Button 
 gitButton = (But

Use local vars instead of global