package io.geeteshk.hyper;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.webkit.WebView;

/**
 * Activity to test projects
 */
public class WebActivity extends AppCompatActivity {

    /**
     * Called when the activity is created
     *
     * @param savedInstanceState restored when onResume is called
     */
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_web);

        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        toolbar.setTitle(getIntent().getStringExtra("name"));
        setSupportActionBar(toolbar);

        if (getSupportActionBar() != null) {
            getSupportActionBar().setDisplayHomeAsUpEnabled(true);
            getSupportActionBar().setDisplayShowHomeEnabled(true);
        }

        WebView webView = (WebView) findViewById(R.id.web_view);
        webView.loadUrl(getIntent().getStringExtra("url"));
    }
}

@@ -725,198 +725,8 @@
 );%0A%0A
-        if (getSupportActionBar() != null) %7B%0A            getSupportActionBar().setDisplayHomeAsUpEnabled(true);%0A            getSupportActionBar().setDisplayShowHomeEnabled(true);%0A        %7D%0A%0A
     

Remove unnecessary properties