Skip to content

Commit

Permalink
Add unresolved icons
Browse files Browse the repository at this point in the history
Adds favicons for results that are displayed that cannot be resolved by
the PWS.
  • Loading branch information
hayesjordan committed Aug 23, 2016
1 parent b5a0433 commit 92e0f9c
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,14 @@ public View getView(int i, View view, ViewGroup viewGroup) {
} else {
setText(view, R.id.url, pwsResult.getSiteUrl());
}
if (Utils.isResolvableDevice(pwPair.getUrlDevice())) {
((ImageView) view.findViewById(R.id.icon)).setImageBitmap(
Utils.getBitmapIcon(mPwCollection, pwsResult));
} else {
((ImageView) view.findViewById(R.id.icon))
.setImageResource(R.drawable.unresolved_result_icon);
}
setText(view, R.id.description, pwsResult.getDescription());
((ImageView) view.findViewById(R.id.icon)).setImageBitmap(
Utils.getBitmapIcon(mPwCollection, pwsResult));
final String siteUrl = pwsResult.getSiteUrl();

if (Utils.isFavorite(siteUrl)) {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 92e0f9c

Please sign in to comment.