package com.navrit.dosenet;

import android.app.ProgressDialog;
import android.os.Bundle;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
import android.webkit.WebView;
import android.webkit.WebViewClient;

public class InformationActivity extends AppCompatActivity{
    private ProgressDialog progressBar;
    private ActionBar actionbar;

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

        Toolbar toolbar = (Toolbar) findViewById(R.id.tool_bar);
        setSupportActionBar(toolbar);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);

        WebView myWebView = (WebView) findViewById(R.id.webview);
        myWebView.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY);

        // Takes ageeeees to load - l
        //progressBar = ProgressDialog.show(this, "Berkeley RadWatch website", "Loading...");

        myWebView.setWebViewClient(new WebViewClient() {
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
                view.loadUrl(url);
                return true;
            }

            public void onPageFinished(WebView view, String url) {
                /*if (progressBar.isShowing()) {
                    progressBar.dismiss();
                }*/
            }
        });

        myWebView.loadUrl("https://radwatch.berkeley.edu/dosenet/about");
    }

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

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        // Handle app bar item clicks here. The app bar
        // automatically handles clicks on the Home/Up button, so long
        // as you specify a parent activity in AndroidManifest.xml.
        int id = item.getItemId();
        if (id == R.id.action_settings) {
            return true;
        }
        return super.onOptionsItemSelected(item);
    }

}

@@ -41,93 +41,17 @@
 oid.
-app.ProgressDialog;%0Aimport android.os.Bundle;%0Aimport android.support.v7.app.ActionBar
+os.Bundle
 ;%0Aim
@@ -327,81 +327,8 @@
 ity%7B
-%0A    private ProgressDialog progressBar;%0A    private ActionBar actionbar;
 %0A%0A  
@@ -807,141 +807,8 @@
 );%0A%0A
-        // Takes ageeeees to load - l%0A        //progressBar = ProgressDialog.show(this, %22Berkeley RadWatch website%22, %22Loading...%22);%0A%0A
     
@@ -1090,120 +1090,8 @@
 ) %7B%0A
-                /*if (progressBar.isShowing()) %7B%0A                    progressBar.dismiss();%0A                %7D*/%0A
     
@@ -1272,436 +1272,99 @@
     
-// Inflate the menu; this adds items to the action bar if it is present.%0A        //getMenuInflater().inflate(R.menu.main_menu, menu);%0A        return true;%0A    %7D%0A%0A    @Override%0A    public boolean onOptionsItemSelected(MenuItem item) %7B%0A        // Handle app bar item clicks here. The app bar%0A        // automatically handles clicks on the Home/Up button, so long%0A        // as you specify a parent activity in AndroidManifest.xml.
+return true;%0A    %7D%0A%0A    @Override%0A    public boolean onOptionsItemSelected(MenuItem item) %7B
 %0A   

Clean up