X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserAndroid.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2Fadapters%2FHistoryArrayAdapter.java;h=9eb81f84fad523bbf26ba7f9f9aaf52db26e4d2f;hp=5150fb322c72fc5c16fc60cea40a1999b3069dc8;hb=f0e5c878e1fda7007d674ea12104d957585d5964;hpb=ba40295dffd761ccdc95d3b46ca7acbad1f00d5e diff --git a/app/src/main/java/com/stoutner/privacybrowser/adapters/HistoryArrayAdapter.java b/app/src/main/java/com/stoutner/privacybrowser/adapters/HistoryArrayAdapter.java index 5150fb32..9eb81f84 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/adapters/HistoryArrayAdapter.java +++ b/app/src/main/java/com/stoutner/privacybrowser/adapters/HistoryArrayAdapter.java @@ -1,20 +1,20 @@ /* - * Copyright © 2016-2019 Soren Stoutner . + * Copyright © 2016-2019,2021-2022 Soren Stoutner . * - * This file is part of Privacy Browser . + * This file is part of Privacy Browser Android . * - * Privacy Browser is free software: you can redistribute it and/or modify + * Privacy Browser Android 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, + * Privacy Browser Android 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 . + * along with Privacy Browser Android. If not, see . */ package com.stoutner.privacybrowser.adapters; @@ -31,7 +31,7 @@ import android.widget.TextView; import androidx.annotation.NonNull; import com.stoutner.privacybrowser.R; -import com.stoutner.privacybrowser.definitions.History; +import com.stoutner.privacybrowser.dataclasses.History; import java.util.ArrayList; @@ -68,8 +68,8 @@ public class HistoryArrayAdapter extends ArrayAdapter { assert history != null; // Set `favoriteIconImageView` and `urlTextView`. - favoriteIconImageView.setImageBitmap(history.entryFavoriteIcon); - urlTextView.setText(history.entryUrl); + favoriteIconImageView.setImageBitmap(history.favoriteIcon); + urlTextView.setText(history.url); // Set the URL text for `currentPage` to be bold. if (position == currentPage) {