]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/java/com/stoutner/privacybrowser/Webview.java
Add copyright and GPLv3+ licensing information. Create an About AlertDialog.
[PrivacyBrowserAndroid.git] / app / src / main / java / com / stoutner / privacybrowser / Webview.java
index 9c51b446d8d7c88df530bc03ef4029c034a47464..dcda534bb04f2f08046e6e5dff8c84c552960729 100644 (file)
@@ -1,3 +1,22 @@
+/**
+ * Copyright 2015 Soren Stoutner
+ *
+ * This file is part of Privacy Browser.
+ *
+ * Privacy Browser is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Privacy Browser is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Privacy Browser.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
 package com.stoutner.privacybrowser;
 
 import android.annotation.SuppressLint;
@@ -329,6 +348,13 @@ public class Webview extends AppCompatActivity implements CreateHomeScreenShortc
 
                 startActivity(downloadManangerIntent);
                 break;
+
+            case R.id.about:
+                // Show the AboutDialog AlertDialog and name this instance aboutDialog.
+                AppCompatDialogFragment aboutDialog = new AboutDialog();
+                aboutDialog.show(getSupportFragmentManager(), "aboutDialog");
+
+                break;
         }
 
         return super.onOptionsItemSelected(menuItem);