// Path: app/src/main/java/hrv/band/app/ui/view/activity/web/WebsiteUrls.java
// public static final String GOOGLE_FORMS_HOST_URL = "docs.google.com";
// 
// Path: app/src/main/java/hrv/band/app/ui/view/activity/web/WebsiteUrls.java
// public static final String HRVBAND_HOST_URL = "hrvband.de";
// 
// Path: app/src/main/java/hrv/band/app/ui/view/activity/web/WebsiteUrls.java
// public static final String WEBSITE_URL = "http://" + HRVBAND_HOST_URL;


import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.NavigationView;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBarDrawerToggle;
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 hrv.band.app.R;
import hrv.band.app.ui.presenter.IWebPresenter;
import hrv.band.app.ui.presenter.WebPresenter;
import static hrv.band.app.ui.view.activity.web.WebsiteUrls.GOOGLE_FORMS_HOST_URL;
import static hrv.band.app.ui.view.activity.web.WebsiteUrls.HRVBAND_HOST_URL;
import static hrv.band.app.ui.view.activity.web.WebsiteUrls.WEBSITE_URL;
        int id = item.getItemId();
        if (id == R.id.web_nav_back) {
            finish();
        } else {
            webPresenter.loadUrl(id);
        }
        closeDrawer();
        return true;
    }

    private void closeDrawer() {
        DrawerLayout drawer = findViewById(R.id.drawer_layout);
        drawer.closeDrawer(GravityCompat.START);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.menu_web, menu);
        return true;
    }

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

            case R.id.web_home:
                loadUrl(WEBSITE_URL);
// Path: app/src/main/java/hrv/band/app/ui/view/activity/web/WebsiteUrls.java
// public static final String GOOGLE_FORMS_HOST_URL = "docs.google.com";
// 
// Path: app/src/main/java/hrv/band/app/ui/view/activity/web/WebsiteUrls.java
// public static final String HRVBAND_HOST_URL = "hrvband.de";
// 
// Path: app/src/main/java/hrv/band/app/ui/view/activity/web/WebsiteUrls.java
// public static final String WEBSITE_URL = "http://" + HRVBAND_HOST_URL;


// Path: app/src/main/java/hrv/band/app/ui/view/activity/WebActivity.java
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.NavigationView;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBarDrawerToggle;
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 hrv.band.app.R;
import hrv.band.app.ui.presenter.IWebPresenter;
import hrv.band.app.ui.presenter.WebPresenter;
import static hrv.band.app.ui.view.activity.web.WebsiteUrls.GOOGLE_FORMS_HOST_URL;
import static hrv.band.app.ui.view.activity.web.WebsiteUrls.HRVBAND_HOST_URL;
import static hrv.band.app.ui.view.activity.web.WebsiteUrls.WEBSITE_URL;

        int id = item.getItemId();
        if (id == R.id.web_nav_back) {
            finish();
        } else {
            webPresenter.loadUrl(id);
        }
        closeDrawer();
        return true;
    }

    private void closeDrawer() {
        DrawerLayout drawer = findViewById(R.id.drawer_layout);
        drawer.closeDrawer(GravityCompat.START);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.menu_web, menu);
        return true;
    }

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

            case R.id.web_home:
                loadUrl(WEBSITE_URL);
                return true;