]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/java/com/stoutner/privacybrowser/HistoryArrayAdapter.java
Update the Permission and the Privacy Policy tabs. Add a Clear History button.
[PrivacyBrowserAndroid.git] / app / src / main / java / com / stoutner / privacybrowser / HistoryArrayAdapter.java
index 414f5fc4bb1b3cad0f4d78365e7546c4cfa94d3f..6b7f056196fc56f68e16b4f51af8f51645a2fb37 100644 (file)
@@ -20,8 +20,8 @@
 package com.stoutner.privacybrowser;
 
 import android.content.Context;
+import android.graphics.Typeface;
 import android.support.annotation.NonNull;
-import android.support.v4.content.ContextCompat;
 import android.view.LayoutInflater;
 import android.view.View;
 import android.view.ViewGroup;
@@ -67,11 +67,11 @@ class HistoryArrayAdapter extends ArrayAdapter<History> {
         favoriteIconImageView.setImageBitmap(history.entryFavoriteIcon);
         urlTextView.setText(history.entryUrl);
 
-        // Set the URL text for `currentPage` to be grey.
+        // Set the URL text for `currentPage` to be bold.
         if (position == currentPage) {
-            urlTextView.setTextColor(ContextCompat.getColor(getContext(), R.color.grey_500));
-        } else {
-            urlTextView.setTextColor(ContextCompat.getColor(getContext(), R.color.black));
+            urlTextView.setTypeface(Typeface.DEFAULT_BOLD);
+        } else {  // Set the default typeface for all the other entries.
+            urlTextView.setTypeface(Typeface.DEFAULT);
         }
 
         // Return the modified `convertView`.