]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/java/com/stoutner/privacybrowser/definitions/History.java
Fix crashing when a dialog displays while Privacy Browser is not in the foreground...
[PrivacyBrowserAndroid.git] / app / src / main / java / com / stoutner / privacybrowser / definitions / History.java
index f37ee7c797daff4c574c335b4d9107eb2c95261a..1b0e44817e373e287995f8cb961e9f067875717c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2016-2017 Soren Stoutner <soren@stoutner.com>.
+ * Copyright © 2016-2017,2021 Soren Stoutner <soren@stoutner.com>.
  *
  * This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
  *
@@ -21,15 +21,15 @@ package com.stoutner.privacybrowser.definitions;
 
 import android.graphics.Bitmap;
 
-// Create a `History` object.
+// Create a History object.
 public class History {
-    // Create the `History` package-local variables.
-    public final Bitmap entryFavoriteIcon;
-    public final String entryUrl;
+    // Declare the class variables.
+    public final Bitmap favoriteIcon;
+    public final String url;
 
-    public History(Bitmap entryFavoriteIcon, String entryUrl){
-        // Populate the package-local variables.
-        this.entryFavoriteIcon = entryFavoriteIcon;
-        this.entryUrl = entryUrl;
+    public History(Bitmap favoriteIcon, String url){
+        // Populate the class variables.
+        this.favoriteIcon = favoriteIcon;
+        this.url = url;
     }
 }
\ No newline at end of file