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> {
|
public class HistoryItem implements Comparable<HistoryItem> {
|
||||||
|
|
||||||
// private variables
|
@NonNull private String mUrl = "";
|
||||||
@NonNull
|
|
||||||
private String mUrl = "";
|
|
||||||
|
|
||||||
@NonNull
|
@NonNull private String mTitle = "";
|
||||||
private String mTitle = "";
|
|
||||||
|
|
||||||
@NonNull
|
@NonNull private String mFolder = "";
|
||||||
private String mFolder = "";
|
|
||||||
|
|
||||||
@Nullable
|
@Nullable private Bitmap mBitmap = null;
|
||||||
private Bitmap mBitmap = null;
|
|
||||||
|
|
||||||
private int mImageId = 0;
|
private int mImageId = 0;
|
||||||
|
|
||||||
private int mPosition = 0;
|
private int mPosition = 0;
|
||||||
|
|
||||||
private boolean mIsFolder = false;
|
private boolean mIsFolder = false;
|
||||||
|
|
||||||
public HistoryItem() {}
|
public HistoryItem() {}
|
||||||
|
@ -10,15 +10,11 @@ import acr.browser.lightning.utils.Preconditions;
|
|||||||
|
|
||||||
public class DownloadItem implements Comparable<DownloadItem> {
|
public class DownloadItem implements Comparable<DownloadItem> {
|
||||||
|
|
||||||
// private variables
|
@NonNull private String mUrl = "";
|
||||||
@NonNull
|
|
||||||
private String mUrl = "";
|
|
||||||
|
|
||||||
@NonNull
|
@NonNull private String mTitle = "";
|
||||||
private String mTitle = "";
|
|
||||||
|
|
||||||
@NonNull
|
@NonNull private String mContentSize = "";
|
||||||
private String mContentSize = "";
|
|
||||||
|
|
||||||
public DownloadItem() {}
|
public DownloadItem() {}
|
||||||
|
|
||||||
@ -83,7 +79,7 @@ public class DownloadItem implements Comparable<DownloadItem> {
|
|||||||
DownloadItem that = (DownloadItem) object;
|
DownloadItem that = (DownloadItem) object;
|
||||||
|
|
||||||
return this.mTitle.equals(that.mTitle) && this.mUrl.equals(that.mUrl)
|
return this.mTitle.equals(that.mTitle) && this.mUrl.equals(that.mUrl)
|
||||||
&& this.mContentSize.equals(that.mContentSize);
|
&& this.mContentSize.equals(that.mContentSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user