Cleaning up History and Download Items
This commit is contained in:
parent
a02ac29057
commit
8a58fe9f8c
@ -11,21 +11,18 @@ import acr.browser.lightning.utils.Preconditions;
|
||||
|
||||
public class HistoryItem implements Comparable<HistoryItem> {
|
||||
|
||||
// private variables
|
||||
@NonNull
|
||||
private String mUrl = "";
|
||||
@NonNull private String mUrl = "";
|
||||
|
||||
@NonNull
|
||||
private String mTitle = "";
|
||||
@NonNull private String mTitle = "";
|
||||
|
||||
@NonNull
|
||||
private String mFolder = "";
|
||||
@NonNull private String mFolder = "";
|
||||
|
||||
@Nullable
|
||||
private Bitmap mBitmap = null;
|
||||
@Nullable private Bitmap mBitmap = null;
|
||||
|
||||
private int mImageId = 0;
|
||||
|
||||
private int mPosition = 0;
|
||||
|
||||
private boolean mIsFolder = false;
|
||||
|
||||
public HistoryItem() {}
|
||||
|
@ -10,15 +10,11 @@ import acr.browser.lightning.utils.Preconditions;
|
||||
|
||||
public class DownloadItem implements Comparable<DownloadItem> {
|
||||
|
||||
// private variables
|
||||
@NonNull
|
||||
private String mUrl = "";
|
||||
@NonNull private String mUrl = "";
|
||||
|
||||
@NonNull
|
||||
private String mTitle = "";
|
||||
@NonNull private String mTitle = "";
|
||||
|
||||
@NonNull
|
||||
private String mContentSize = "";
|
||||
@NonNull private String mContentSize = "";
|
||||
|
||||
public DownloadItem() {}
|
||||
|
||||
@ -83,7 +79,7 @@ public class DownloadItem implements Comparable<DownloadItem> {
|
||||
DownloadItem that = (DownloadItem) object;
|
||||
|
||||
return this.mTitle.equals(that.mTitle) && this.mUrl.equals(that.mUrl)
|
||||
&& this.mContentSize.equals(that.mContentSize);
|
||||
&& this.mContentSize.equals(that.mContentSize);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user