package com.biotronisis.pettplant.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.ActionBar;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
//import android.support.v7.appcompat.BuildConfig;

import com.biotronisis.pettplant.BuildConfig;
import com.biotronisis.pettplant.R;
//import com.biotronisis.pettplant.plant.processor.PlantState;

public class AboutActivity extends AbstractBaseActivity {

    private static final String TAG = "AboutActivity";

    private TextView versionNumberTV;

    @Override
    public String getActivityName() {
        return TAG;
    }

    @Override
    public String getHelpKey() {
        return "about";
    }

    public static Intent createIntent(Context context) {
        Intent intent = new Intent(context, AboutActivity.class);
//      intent.putExtra(EXTRA_PLANT_STATE, plantState);
        return intent;
    }

    @Override
    protected void onCreate(Bundle savedInstanceSate) {
        super.onCreate(savedInstanceSate);
        setContentView(R.layout.activity_about);

        versionNumberTV = (TextView) findViewById(R.id.versionNumber);

//      int versionCode = BuildConfig.VERSION_CODE;
        String versionName = BuildConfig.VERSION_NAME;
        // Get the version number from the system
        versionNumberTV.setText(versionName);
//      versionNumberTV.setText("test");

        ActionBar actionBar = getSupportActionBar();
        actionBar.setDisplayHomeAsUpEnabled(true);
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
            case android.R.id.home:
                onBackPressed();
                return true;
            default:
                return super.onOptionsItemSelected(item);
        }
    }

}

@@ -217,130 +217,23 @@
 oid.
-view.View;%0Aimport android.widget.Button;%0Aimport android.widget.TextView;%0A//import android.support.v7.appcompat.BuildConfig
+widget.TextView
 ;%0A%0Ai
@@ -316,71 +316,8 @@
 t.R;
-%0A//import com.biotronisis.pettplant.plant.processor.PlantState;
 %0A%0Apu
@@ -433,47 +433,8 @@
 %22;%0A%0A
-    private TextView versionNumberTV;%0A%0A
     
@@ -655,23 +655,14 @@
     
-Intent intent =
+return
  new
@@ -704,87 +704,8 @@
 s);%0A
-//      intent.putExtra(EXTRA_PLANT_STATE, plantState);%0A        return intent;%0A
     
@@ -870,32 +870,41 @@
 bout);%0A%0A        
+TextView 
 versionNumberTV 
@@ -908,19 +908,8 @@
 TV =
- (TextView)
  fin
@@ -944,115 +944,8 @@
 );%0A%0A
-//      int versionCode = BuildConfig.VERSION_CODE;%0A        String versionName = BuildConfig.VERSION_NAME;%0A
     
@@ -1026,60 +1026,32 @@
 ext(
-versionName);%0A//      versionNumberTV.setText(%22test%22
+BuildConfig.VERSION_NAME
 );%0A%0A

Delete some unused imports. Change versionNumberTV to a local variable. Refactor Intent statement. Delete no longer needed explicit cast. Delete unused versionCode reference. Refactor versionNameTV setText method call.