@@ -174,6 +174,7 @@ public OCFileListAdapter(
174
174
mStorageManager = new FileDataStorageManager (user , activity .getContentResolver ());
175
175
}
176
176
177
+ //noinspection deprecation
177
178
userId = AccountManager
178
179
.get (activity )
179
180
.getUserData (this .user .toPlatformAccount (),
@@ -197,6 +198,7 @@ public OCFileListAdapter(
197
198
setHasStableIds (true );
198
199
199
200
// initialise thumbnails cache on background thread
201
+ //noinspection deprecation
200
202
new ThumbnailsCacheManager .InitDiskCacheTask ().execute ();
201
203
}
202
204
@@ -991,6 +993,7 @@ private void parseVirtuals(List<Object> objects, SearchType searchType) {
991
993
992
994
OCFile parentFolder = mStorageManager .getFileById (ocFile .getParentId ());
993
995
if (parentFolder != null && (ocFile .isEncrypted () || parentFolder .isEncrypted ())) {
996
+ //noinspection deprecation
994
997
Object object = RefreshFolderOperation .getDecryptedFolderMetadata (
995
998
true ,
996
999
parentFolder ,
@@ -1028,6 +1031,7 @@ private void parseVirtuals(List<Object> objects, SearchType searchType) {
1028
1031
mStorageManager ,
1029
1032
user ,
1030
1033
activity );
1034
+ //noinspection deprecation
1031
1035
refreshFolderOperation .execute (user , activity );
1032
1036
}
1033
1037
}
@@ -1067,7 +1071,7 @@ private void updateList(List<OCFile> newList) {
1067
1071
diff .dispatchUpdatesTo (this );
1068
1072
}
1069
1073
1070
- public void setSortOrder (@ Nullable OCFile folder , FileSortOrder sortOrder ) {
1074
+ public void setSortOrder (@ Nullable OCFile folder , @ NonNull FileSortOrder sortOrder ) {
1071
1075
preferences .setSortOrder (folder , sortOrder );
1072
1076
1073
1077
final var newList = sortOrder .sortCloudFiles (mFiles );
@@ -1076,6 +1080,7 @@ public void setSortOrder(@Nullable OCFile folder, FileSortOrder sortOrder) {
1076
1080
this .sortOrder = sortOrder ;
1077
1081
}
1078
1082
1083
+ @ NonNull
1079
1084
public Set <OCFile > getCheckedItems () {
1080
1085
return ocFileListDelegate .getCheckedItems ();
1081
1086
}
@@ -1110,6 +1115,10 @@ public void resetLastTimestamp() {
1110
1115
lastTimestamp = -1 ;
1111
1116
}
1112
1117
1118
+ public long getLastTimestamp () {
1119
+ return lastTimestamp ;
1120
+ }
1121
+
1113
1122
@ Override
1114
1123
public void onViewRecycled (@ NonNull RecyclerView .ViewHolder holder ) {
1115
1124
super .onViewRecycled (holder );
@@ -1199,7 +1208,7 @@ public void setShowMetadata(boolean bool) {
1199
1208
1200
1209
@ NonNull
1201
1210
@ Override
1202
- public String getPopupText (View view , int position ) {
1211
+ public String getPopupText (@ NonNull View view , int position ) {
1203
1212
OCFile file = getItem (position );
1204
1213
1205
1214
if (file == null || sortOrder == null ) {
0 commit comments