|
|
@ -210,6 +210,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
private String type;
|
|
|
|
private String type;
|
|
|
|
private boolean found;
|
|
|
|
private boolean found;
|
|
|
|
private String searched;
|
|
|
|
private String searched;
|
|
|
|
|
|
|
|
private boolean searchedPartial;
|
|
|
|
private ViewType viewType;
|
|
|
|
private ViewType viewType;
|
|
|
|
private boolean compact;
|
|
|
|
private boolean compact;
|
|
|
|
private int zoom;
|
|
|
|
private int zoom;
|
|
|
@ -3328,7 +3329,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
HtmlHelper.autoLink(document);
|
|
|
|
HtmlHelper.autoLink(document);
|
|
|
|
|
|
|
|
|
|
|
|
if (message.ui_found && found && !TextUtils.isEmpty(searched))
|
|
|
|
if (message.ui_found && found && !TextUtils.isEmpty(searched))
|
|
|
|
HtmlHelper.highlightSearched(context, document, searched);
|
|
|
|
HtmlHelper.highlightSearched(context, document, searched, searchedPartial);
|
|
|
|
|
|
|
|
|
|
|
|
boolean overview_mode = prefs.getBoolean("overview_mode", false);
|
|
|
|
boolean overview_mode = prefs.getBoolean("overview_mode", false);
|
|
|
|
HtmlHelper.setViewport(document, overview_mode);
|
|
|
|
HtmlHelper.setViewport(document, overview_mode);
|
|
|
@ -3357,7 +3358,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
HtmlHelper.autoLink(document);
|
|
|
|
HtmlHelper.autoLink(document);
|
|
|
|
|
|
|
|
|
|
|
|
if (message.ui_found && found && !TextUtils.isEmpty(searched))
|
|
|
|
if (message.ui_found && found && !TextUtils.isEmpty(searched))
|
|
|
|
HtmlHelper.highlightSearched(context, document, searched);
|
|
|
|
HtmlHelper.highlightSearched(context, document, searched, searchedPartial);
|
|
|
|
|
|
|
|
|
|
|
|
// Cleanup message
|
|
|
|
// Cleanup message
|
|
|
|
document = HtmlHelper.sanitizeView(context, document, show_images);
|
|
|
|
document = HtmlHelper.sanitizeView(context, document, show_images);
|
|
|
@ -4686,7 +4687,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
.putExtra("lpos", getAdapterPosition())
|
|
|
|
.putExtra("lpos", getAdapterPosition())
|
|
|
|
.putExtra("filter_archive", filter_archive)
|
|
|
|
.putExtra("filter_archive", filter_archive)
|
|
|
|
.putExtra("found", viewType == ViewType.SEARCH)
|
|
|
|
.putExtra("found", viewType == ViewType.SEARCH)
|
|
|
|
.putExtra("searched", searched);
|
|
|
|
.putExtra("searched", searched)
|
|
|
|
|
|
|
|
.putExtra("searchedPartial", searchedPartial);
|
|
|
|
|
|
|
|
|
|
|
|
boolean doubletap = prefs.getBoolean("doubletap", false);
|
|
|
|
boolean doubletap = prefs.getBoolean("doubletap", false);
|
|
|
|
|
|
|
|
|
|
|
@ -8176,7 +8178,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
AdapterMessage(Fragment parentFragment,
|
|
|
|
AdapterMessage(Fragment parentFragment,
|
|
|
|
String type, boolean found, String searched, ViewType viewType,
|
|
|
|
String type, boolean found, String searched, boolean searchedPartial, ViewType viewType,
|
|
|
|
boolean compact, int zoom, boolean large_buttons, String sort, boolean ascending,
|
|
|
|
boolean compact, int zoom, boolean large_buttons, String sort, boolean ascending,
|
|
|
|
boolean filter_duplicates, boolean filter_trash,
|
|
|
|
boolean filter_duplicates, boolean filter_trash,
|
|
|
|
final IProperties properties) {
|
|
|
|
final IProperties properties) {
|
|
|
@ -8184,6 +8186,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
this.type = type;
|
|
|
|
this.type = type;
|
|
|
|
this.found = found;
|
|
|
|
this.found = found;
|
|
|
|
this.searched = searched;
|
|
|
|
this.searched = searched;
|
|
|
|
|
|
|
|
this.searchedPartial = searchedPartial;
|
|
|
|
this.viewType = viewType;
|
|
|
|
this.viewType = viewType;
|
|
|
|
this.compact = compact;
|
|
|
|
this.compact = compact;
|
|
|
|
this.zoom = zoom;
|
|
|
|
this.zoom = zoom;
|
|
|
|